Azure Logic App service bus message content

流过昼夜 提交于 2019-12-05 08:24:47

Can you please explain how to see the message body.

The string W3sidHlwZSI6ImxvZyJ9LF.... you mentioned is base64string. If we want to see the message body we need to convert the base64string to string

We could do that with base64ToString(triggerBody()?['ContentData']) details please refer to the screenshot.

Body info:

After getting the value as Tom Sun solution, i had had to extract the json part of the result to be able to parse it, Logic App Expression :

substring(
variables('result'),sub(indexOf(variables('result'),'{'),1),
sub(lastIndexOf(variables('result'),'}'),indexOf(variables('result'),'{'))
)

Then use Parse JSON function to parse the result using the schema :

{
    "properties": {
        "data": {
            "type": "string" // Change As Required
        },
        "dataVersion": {
            "type": "string"
        },
        "eventTime": {
            "type": "string"
        },
        "eventType": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "metadataVersion": {
            "type": "string"
        },
        "subject": {
            "type": "string"
        },
        "topic": {
            "type": "string"
        }
    },
    "type": "object"
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!