Hi I am trying to build a flow with a condition that will send email if the condition is met.
However, my SP list has multiple rows and I need it to send the email only after checking all rows and all rows met the condition stated.
Solved! Go to Solution.
Hi @naokichia
Do you want to filter out items whose value of column 'PO Ship-...' is equal to 'Chaiwan - Hong Kong' and whose value of column 'Purch’s P...' is empty and then send them in an email?
What data type are your two columns in sharepoint?
Assume I have a list like this.
I set up a flow, you can take a try with the following screenshots.
Add Filter array action and switch to advanced mode by clicking 'Edit in advanced mode'.
@and(equals(item()?['POShip_x002d_route'], 'Chaiwan - Hong Kong'),equals(item()?['Purchs'], null))
Note: Where 'POShip_x002d_route' and 'Purchs' are the internal names of column 'PO Ship-route' and column 'Purch's' respectively.
You can find column internal name via List settings -> Click on the column name -> It’s at the end of the URL on the Edit column page, after ‘Field=’.
Add Select action and configure it.(The name placed in item() is the internal name of the column.)
Save and test the flow.
After flow runs, items that meet the filter conditions will be filtered out and send an email.
Hope the content above may help you.
Best Regards
Could you show your flow?
Hi @VictorIvanidze this is my flow, but currently it is sending multiple emails, I like it to send only one mail once it scans the whole list.
Hi @naokichia
Do you want to filter out items whose value of column 'PO Ship-...' is equal to 'Chaiwan - Hong Kong' and whose value of column 'Purch’s P...' is empty and then send them in an email?
What data type are your two columns in sharepoint?
Assume I have a list like this.
I set up a flow, you can take a try with the following screenshots.
Add Filter array action and switch to advanced mode by clicking 'Edit in advanced mode'.
@and(equals(item()?['POShip_x002d_route'], 'Chaiwan - Hong Kong'),equals(item()?['Purchs'], null))
Note: Where 'POShip_x002d_route' and 'Purchs' are the internal names of column 'PO Ship-route' and column 'Purch's' respectively.
You can find column internal name via List settings -> Click on the column name -> It’s at the end of the URL on the Edit column page, after ‘Field=’.
Add Select action and configure it.(The name placed in item() is the internal name of the column.)
Save and test the flow.
After flow runs, items that meet the filter conditions will be filtered out and send an email.
Hope the content above may help you.
Best Regards
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.
User | Count |
---|---|
25 | |
24 | |
23 | |
23 | |
19 |
User | Count |
---|---|
58 | |
40 | |
40 | |
29 | |
24 |