0

In Azure logic app how to convert xml to json or json to xml based on the requirement.

The data is dynamic i,e they can be in any format. And xpath expression is required to get the required node.

1
  • 2
    Can you update the question to describe your actual problem? You correctly identify the xml() and json() functions which answer your question. Commented Mar 29, 2018 at 14:49

1 Answer 1

1

The functions that you said are the correct ones, here is an example to get an xpath value from an input converted in xml:

  "Initialize_variable": {
            "inputs": {
                "variables": [
                    {
                        "name": "xpathValue",
                        "type": "String",
                        "value": "@xpath(xml(body('Get_blob_content_using_path')), 'string(/*[local-name()=\"Part\" and namespace-uri()=\"\"])')"
                    }
                ]
            },
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.