Hi All,
I have requirement which i need to convert below mentioned JSON format to..
{ "requestId": "221a0000-faff-00e3-ac11-dbe6ebd00d00", "sourceSystemName": "ABCD", "requestDateTime": "2023-08-23T15:03:31.919Z", "requestInitiator": "App Name", "context": "/fetchData", "data": { "kind": "fetchDataRequest", "items": [ { "item": { "key": "ID", "value": [ "1234567890" ] } }, { "item": { "key": "CRITERIA", "value": [ "EMPLOYEEDETAILS", "INCLUDEIDDETAILS" ] } } ] } }
.. this string format:
"{ ""requestId"": ""221a0000-faff-00e3-ac11-dbe6ebd00d00"", ""sourceSystemName"": ""ABCD"", ""requestDateTime"": ""2023-08-23T15:03:31.919Z"", ""requestInitiator"": ""App Name"", ""context"": ""/fetchData"", ""data"": { ""kind"": ""fetchDataRequest"", ""items"": [ { ""item"": { ""key"": ""ID"", ""value"": [ ""1234567890"" ] } }, { ""item"": { ""key"": ""CRITERIA"", ""value"": [ ""EMPLOYEEDETAILS"", ""INCLUDEIDDETAILS"" ] } } ] } }"
How to achieve this? After converting i need to pass in Request Body of integration to get data.
Regards,Sandeep
Discussion posts and replies are publicly visible
Not sure why you want to double the quotes, but couldn't you just use the substitute function?
docs.appian.com/.../fnc_text_substitute.htm
Hi Drouin,
I need to convert as String with double the quotes which i need to to pass in Request body for getting Coverage data.
If possible share here any sample example for substitue function, so that i will try to configure for the above JSON.