cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DamjanZ
Frequent Visitor

check the property in an if statement

Hi All,
I don't know how to check the value of property=Id. Can you please assist?


I would like to check if output of body, property 'Id' is not blank.

 

This is the output XML where object=body includes property=Id, where value of id property is "979ff8259d4a57d8b2e356d29997aa7f"

DamjanZ_0-1639668744415.png

 

In the cloud flow I did this:

DamjanZ_1-1639668956137.png

 

2 REPLIES 2
AlisterT
Advocate II
Advocate II

?['body']?['Id'] as the left argument to your if statement

Hi AlisterT,

 

I managed to correct the if statement like this: 

outputs('Gets_Employee_Data')?['body']?[0]?['Id']
this works as expected.

complete flow is this:
DamjanZ_0-1640013792571.png

 



Thanks for your assistance.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (4,818)