Power automate if body is empty

Loading

Requirement: how to create a Power Automate if the body is empty

Create a Manually trigger a flow. Next take an compose action as an empty array. Add another action initialize variable

Name: Body is empty

Type: Boolean

Value: true

Now click on the Next step and select condition control, then provide the below information:

value : true

operator: is equal to

value: empty(outputs('Compose'))

If the above condition is true, then click on add an action and select set variable action and select a variable name, and set the value as true.

And if the above condition is false, then click on add an action and select set variable action and select the variable name, and set the value as false.

Now click on save, and run the flow manually. And the block is empty so it returns true.

Leave a Reply

Your email address will not be published. Required fields are marked *