JSON PUT() not working in AL [solved]

txerifftxeriff Member Posts: 500
edited 2020-04-23 in NAV Three Tier
Hi All,

I hope some1 can help.

I have the following json that works on postman:
5vt75ka3jv3z.png

However, I tried all I could in my extension, but I can´t make it work. I always get same error message. I had a look to each variable. Im creating a JSON string all together in a text variable.

xlt0xrtmq43b.png

Server response:
ry7vzxglv23b.png


By the way, GET () works great by doing:
Client.Get(RequestURL, ResponseMessage);

thanks for your help.


Edit:

Sorry, after spending afternoon and today, I´ve realised it was a missing ' " ' in my json string.

I thought it could be I was missing "stringfy" (or go into json serialisation objects, which I didn´t want to).
https://onlinetexttools.com/json-stringify-text
Sign In or Register to comment.