I'm trying to create an Azure Logic App that broadly does the following:
Use a HTTP call to a REST service, the REST service will return JSON with Ids. This is working fine, the resulting JSON looks a bit like this:
"workItems" : [ { "id": 118, }, { "id": 119, }, etc ]I need to extract all the Ids, and put them into a comma separated string, e.g.
118, 119, etc.The comma separated string will then be used as part of another HTTP REST call.
However I'm struggling at point 2. I cant see where I can write some script or code (without building a custom logic app component) to do this transformation.
At the moment I've tried using the BizTalk Apps to convert the JSON to XML, then use XPath, then hopefully get that back into a string at some point - but this whole process seems overly complicated.
I realise I could write a custom app, but if I did that then I might as well just do all the work in the custom app as well. Be nice to use the native features of Azure if possible.
I'm afraid I might be missing something obvious. Suggestions would be appreciated.