Expand my Community achievements bar.

SOLVED

Convert JSON to XML and vice versa

Avatar

Level 2

Team,

 

We have a requirement to convert a JSON to XML programmatically. Can we achieve this through a JS workflow activity with/without any libraries ? Please let me know.

 

TIA!

1 Accepted Solution

Avatar

Correct answer by
Employee

Yes, it is possible in JS. You may use this solution: https://stackoverflow.com/questions/48788722/json-to-xml-using-javascript

In Campaign, you can create a JS file having required function and use that in the workflow JS activity via loadLibrary(). Hope this helps!

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

Yes, it is possible in JS. You may use this solution: https://stackoverflow.com/questions/48788722/json-to-xml-using-javascript

In Campaign, you can create a JS file having required function and use that in the workflow JS activity via loadLibrary(). Hope this helps!