Question
3
Replies
41
Views
Transplace
Posted: February 9, 2021
Last activity: February 12, 2021
Convert REST Call Json(response) to XML File - Pega RPA
Hello, Below is the process flow we are looking to automate in Pega RPA.
1. Rest Api call to Source system
2. Received JSON response (json array)
3. Loop over Json array
4. Convert each Json object to XML
5. Write XML file in target location
Looking for a suggestion on the step 3, 4, 5. kindly please assist.
@GowthamalingamJ4389 Can you provide an example of your JSON response? I can probably create a sample solution for you with that. Basically, I would use the JSONUtils to work with the JSON. I would guess that the content is already XML, so you could use the static method from the MSCORLIB.dll for File.WriteAllText() to write the text to a file.