cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RodrigoT
Microsoft
Microsoft

Condition not working when the output from Get items is empty.

Hi everyone,

After doing some research, I've saw the recommendation to use the following condition to evaluate if the result of an external query is empty or not: 

length(body('Get_items')?['value'])

 

When the value from my Get items query exists, the entire flow works fine, only when the condition is null, is not evaluated.

 

Here is my actual flow:

RodrigoT_0-1627653379809.png

 

Any idea on what might be missing here?

1 ACCEPTED SOLUTION

Accepted Solutions
ekarim2020
Community Champion
Community Champion

See if moving the condition check resolves the issue:

ekarim2020_0-1627667541929.png

 

View solution in original post

2 REPLIES 2
ekarim2020
Community Champion
Community Champion

See if moving the condition check resolves the issue:

ekarim2020_0-1627667541929.png

 

View solution in original post

RodrigoT
Microsoft
Microsoft

Thanks for your contribution @ekarim2020 . It did the trick for me. Still curious to see why wasn't working properly with the other config...

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,087)