Examples: Sending an XML Request
Examples: Sending an XML Request
Examples: Sending an XML Request
Scenario: An API returns data in XML format, which Moveworks automatically parses into JSON. You need to modify one of the objects in that API by constructing and sending an XML request payload.
You receive a JSON payload like:
You want to generate this XML to send as a payload to a subsequent call
Using DSL you can construct your payload as needed into a single string to send as an XML body.
Create a Script Action (standalone or inside a Compound Action) and configure:
side_dishes: data.side_dishesPython code: JSON → XML (stdlib-only)
Paste the following into the Script Action code field.