Use complex data transform functions to serialize Complex Object data pills into an XML format.

Complex data functions require a Complex Object input data pill. Make sure to use the correct input data pill type when applying complex data transform functions. If a complex data transform function is applied to an improper data type, the data is not transformed at runtime and the input value is returned instead. For more information on confirming your flow runtime values, see Test a flow.

To XML

Serializes the input Complex Object to XML.

Input data pill Output data pill
Complex Object XML - XML document formatted as a String
Figure 1. Example
  • Input: { "article_id": KB3843202, "article_description": "How do I reset my Active Directory password?" }
  • Output: <article_id>KB3843202</article_id> <article_description>How do I reset my Active Directory password?</article_description>

In this example, an action makes a REST call to a third-party knowledge base and retrieves KB article IDs and descriptions. The To XML transform function changes the response body's JSON text into XML format before it is integrated into the system's knowledge base.

Figure 1. Data transformed from JSON text to XML format
Knowledge base article data is transformed from JSON text to XML format.