Announcements
I have a statement like that:
JSONStrContentOfRequest := '{"name":"'+name+'","age":"' + age + '"}';
If there's a way I can write it without doing concatenation, like if we were in Javascript, we write with Template literals `` like this:
`{"name":"${name}","age":"${age}"}`;
Hi, As far as I know, this method is not supported in AL, you can refer to Inge's suggestion and use Json object. Erik's video below makes it easy to understand.
https://www.youtube.com/watch?v=so7_bOxp9V4
https://www.youtube.com/watch?v=BpLJy6HwXyo
Hope this helps.
Thanks.
ZHU
Did you study the AL data type of Json object?
André Arnaud de Cal...
294,110
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator