Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
Unanswered

Flow retrieving events from Eventhub

(0) ShareShare
ReportReport
Posted on by

Hi, 

 

I want to read a set of events (json format) from the eventhub.  

 

One flow which I built is able to get the data in string and am able to parse it further. The second flow is only providing the header details, not the body. Is there any settings that we need to do while invoking the Eventhubs trigger. 

 

 

  • ShekarS Profile Picture
    4 on at
    Re: Flow retrieving events from Eventhub

    I am using the same trigger mechanism on the availability of an event in the event hub, I keep getting the following error 

     

    The response is not in a JSON format. Any help how to resolve this.

     

    Screenshot 2023-04-05 at 11.36.56.pngScreenshot 2023-04-05 at 11.40.01.png

  • v-lin-msft Profile Picture
    728 on at
    Re: Flow retrieving events from Eventhub

    Hi @Anonymous,

     

    The picture you shared is invalid, you can add screenshots by clicking the button of "Photos":Annotation 2019-06-26 163509.png

    Actually, if you put the content of event into the Compose will not happen that Apply to each automatically getting applied. You can also share the screenshots of flow configuration.

     

    Best Regards,

    Community Support Team _ Lin Tu

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Community Power Platform Member Profile Picture
    on at
    Re: Flow retrieving events from Eventhub

    Hi @v-lin-msft

     

    Thanks for your response. 

     

    However the problem which I am facing is that when I add a compose action after the event hubs trigger, Apply each is automatically getting applied.  The real issue is that when I run the flow the compose event is not getting an input from the previous step ( the event hub trigger step) . The error is as following.

     

     

     
    ExpressionEvaluationFailed. The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@body('When_events_are_available_in_Event_Hub')' is of type 'Null'. The result must be a valid array.
     
     
    Response
    0s
    Skipped
     
  • v-lin-msft Profile Picture
    728 on at
    Re: Flow retrieving events from Eventhub

    Hi @sunithomas,

     

    You could add the action ”When events are available in Event Hub” to get the content of the event.

    If so, you are able to parse it further for your purpose that gets header detail or body of the event.Annotation 2019-06-26 135648.pngBest Regards,

    Community Support Team _ Lin Tu

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics