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
Memorable Member
Memorable Member

See if moving the condition check resolves the issue:

ekarim2020_0-1627667541929.png

 

View solution in original post

2 REPLIES 2
ekarim2020
Memorable Member
Memorable Member

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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (882)