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

Condition after getrow in excel

Hi,

I have a flow that uses getrow to get a value from an Excel file and would like to add a condition based on the result status (Found, NotFound).

How can I setup my condition to deal with it?

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

Hi @dgoguet ,

 

Could you provide more details about the logic you want to configure in Condition?

Or you could provide a screenshot of the Flow configuration so that we can provide further suggestions for improvement.

 

I guess you want to determine if Get a row action can execute successfully and get corresponding row.

What you need may be to configure "Configure run after", which will display Not found error when Get a row action does not get any value.

 

You could add a parallel branch, when Get a row action fails, it means that expected row is not obtained.

Image reference:

1.PNG

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-bacao-msft
Community Support
Community Support

Hi @dgoguet ,

 

Could you provide more details about the logic you want to configure in Condition?

Or you could provide a screenshot of the Flow configuration so that we can provide further suggestions for improvement.

 

I guess you want to determine if Get a row action can execute successfully and get corresponding row.

What you need may be to configure "Configure run after", which will display Not found error when Get a row action does not get any value.

 

You could add a parallel branch, when Get a row action fails, it means that expected row is not obtained.

Image reference:

1.PNG

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Thanks,

That's exactly what I was looking for!

my "get a row" works perfectly when the record is found but fails when the record is not on the Excel file (which is perfectly possible and fine). I was trying to deal with it when I came to your answer.

 

I set up the "configure run after":

SergiPino_1-1602779722072.png

 but I continue having the same error when the item is not found on the Excel file:

 

SergiPino_0-1602779674737.png

 

 

what I'm doing wrong?

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.

Users online (1,902)