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

If Sharepoint List is Empty Condition

Hi.

 

I am trying to create a flow that will send an email with a list IF the list is not empyt.

i manage to create the CSV file, save the file in a location, and send an email. but the problem is that it sends the email even when there is no line items.

I tried When i manage to get something working the problem is that either it adds an "Apply each" so it works for when the list is empty, but then when there are multiple entries it sends 1 email per line on the list?

 

any thoughts please?

 

thank you

 

1 ACCEPTED SOLUTION

Accepted Solutions
edgonzales
Super User
Super User

@MarinaV 

Hi there.  For your condition, after your Get Items action, you can either use the expression checking to see if empty(<Get Items Output>) = true,   OR use length(<Get Items Output>) = 0

 

Either of those should work.  (Replace <Get Items Output> with the actual dynamic value for that step.

 

Keep us posted.

-Ed

 

If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

View solution in original post

2 REPLIES 2
edgonzales
Super User
Super User

@MarinaV 

Hi there.  For your condition, after your Get Items action, you can either use the expression checking to see if empty(<Get Items Output>) = true,   OR use length(<Get Items Output>) = 0

 

Either of those should work.  (Replace <Get Items Output> with the actual dynamic value for that step.

 

Keep us posted.

-Ed

 

If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

Thank you Very much!!! it worked 🙂

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.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (5,234)