
Consider specifying a DeserializeRootElementName. The root object must have a single property in order to create a valid XML document. The provided value cannot be converted to XML: ‘JSON root object has multiple properties. Which will result in the below error ‘ The template language function ‘xml’ parameter is not valid. Or if we format and look at it, the Name and the Newsletters is the same Root level –



So starting off with JSON data, you’ll need a String based JSON data.Let’s look at an example where we have a sample JSON which we will convert to XML in Power Automate using xml() function and we’ll revert the same operation using xml() function in Power Automate itself. In this very simple post, let’s look at how you can convert JSON to XML and XML back to JSON while working in Power Automate.įirst, let’s look at converting JSON to XML and then, XML to JSON from the same result of the first conversion.
