Azure Logic App服务总线消息内容 [英] Azure Logic App service bus message content

查看:82
本文介绍了Azure Logic App服务总线消息内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个由服务总线触发的逻辑应用程序.消息内容不可用,因为它只是随机字符.我怀疑也许需要对其进行解析,但是目前尚不清楚该怎么做.

I have logic app that is triggered by a service bus. The message content is not usable as it is just random characters. I suspect that perhaps it needs to be parsed but it is not clear how to do this.

我有以下内容: 没有足够的声誉来添加图像-但是来自Azure的屏幕截图

 "Insert_Entity": {
            "inputs": {
                "body": {
                    "PartitionKey": "deviceID",
                    "RowKey": "@variables('curDate')",
                    "content": "@triggerBody()?['ContentData']"
                },

当我查看从"@triggerBody()?['ContentData']"获得的内容"数据时,它看起来像这样:

When I look at the data that I am getting for the "content" coming from the "@triggerBody()?['ContentData']" it looks like this:

"W3sidHlwZSI6ImxvZyJ9LF...."由于长度为100个字符,我删除了其中的大部分内容.

"W3sidHlwZSI6ImxvZyJ9LF...." I deleted most of this as it 100's of characters long.

我怀疑需要对此进行解析或查看实际的消息正文.我已经检查了一下,但不知道在哪里插入这样的代码:在逻辑应用程序中从服务总线获取内容

I suspect that this needs to be parsed or something to look at the actual message body. I have checked this out but don't know where to insert code like this: Getting content from service bus in logic apps

能否请您解释一下如何查看邮件正文.

Can you please explain how to see the message body.

推荐答案

能否请您解释一下如何查看邮件正文.

Can you please explain how to see the message body.

您提到的字符串W3sidHlwZSI6ImxvZyJ9LF....是base64string.如果要查看消息正文,则需要将base64string转换为string

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

我们可以使用base64ToString(triggerBody()?['ContentData'])详细信息来做到这一点,请参阅屏幕截图.

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

身体信息:

这篇关于Azure Logic App服务总线消息内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆