Logic app flow showing body is type 'Null'

Mukesh Adhikari (AU) 1 Reputation point
2022-08-16T04:47:45.263+00:00

231255-image.png

confirmed the Output has JSON in the body

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
{count} votes

2 answers

Sort by: Most helpful
  1. David Broggy 6,776 Reputation points MVP Volunteer Moderator
    2022-08-17T04:15:35.96+00:00

    Hi there,

    The output has a body but does the body have an appropriate array that matched the foreach?

    You can't pass a non-array field to the foreach function.

    1 person found this answer helpful.
    0 comments No comments

  2. MayankBargali-MSFT 70,986 Reputation points Moderator
    2022-08-18T05:10:51.097+00:00

    @Mukesh Adhikari (AU) Thanks for reaching out. As per the error message your triggerOutput i.e. the trigger that you are using in your logic app workflow has the output body, but it doesn't have any value i.e. it is coming as null. If this is the expected output from your trigger output that the body has the null value, then you can handle this in your workflow.
    Before your foreach action you can leverage the condition action to verify if the body is not null. If it is not null, then under if true you can specify the foreach statement and rest of your workflow.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.