简体   繁体   中英

Logic Apps - Data Operations Parse JSON not parsing Content from Event Hub

I am trying to create a logic app that connects to event hub and sends an email whenever an event is added to the event hub.

I was able to get it working when connecting EH to outlook connectors. I want to be able to parse the data and extract certain fields from the event content. I look up online to use Parse JSON from the Data Operations action but it seems not to be able to parse the content在此处输入图片说明

I tried using Body as the input and it succeeds but the event fields are empty, indicating me that it not getting the event data.

Any ideas?

I have a test and reproduce your problem, suppose your content-type is application/octet-stream , if yes the content will be encoded with base64, then the Parse_JSON input content should be decodeBase64(triggerBody()?['ContentData']) .

在此处输入图片说明

在此处输入图片说明

Also you could change the content type to application/json or text/plain , it will just work.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM