Forum Discussion

codinenthusiast's avatar
codinenthusiast
Regular Visitor
1 year ago
Solved

Power Automate Flow to Send Emails Based on Condition from SharePoint List

Hi,

I am trying to create a Power Automate flow to automate email notifications based on certain conditions in a SharePoint list. The goal is to send emails to specific senders if a file has not been uploaded and a planned handover date is approaching within two weeks.

Here is my SharePoint list structure:

Project Train Uploaded     Sender               PlannedHandover

a12/3/2025[email protected] 
a1 [email protected] 
a1 [email protected] 
a1  3/3/2025
b22 [email protected] 
b22 [email protected] 
b224/5/2025[email protected] 
b22  2/3/2025
c32 [email protected] 
c32 [email protected] 
c32 [email protected] 
c32  5/3/2025

 

  • I need to send email notifications to the "Sender(s)" if the "Uploaded" field is empty and the "PlannedHandover" date is approaching within two weeks.
  • The Planned Handover date applies to the rows above until a new date is encountered. For example, the 3/3/2025 date in row 4 applies to rows 1 to 3, and the next "PlannedHandover" date (in row 😎 applies to rows 5 to 7, and so on.


    Here is my flow screenshots.

     



Any help would be appreciated. Thanks!


  • Anonymous's avatar
    Anonymous
    1 year ago

    Thanks for the reply from lbendlin , please allow me to add some more information:
    Hi  codinenthusiast ,

    Thank you for providing a detailed description of your issue and the screenshots. You should write the conditions in the OData filter of SharePoint GetItems, instead of using several conditions for further for each judgment, and then appending to an array to generate the email list for sending emails

     

    You can specifically refer to this blog:

    www.spguides.com

     

    Best Regards,

    Liu Yang

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

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Thanks for the reply from lbendlin , please allow me to add some more information:
    Hi  codinenthusiast ,

    Thank you for providing a detailed description of your issue and the screenshots. You should write the conditions in the OData filter of SharePoint GetItems, instead of using several conditions for further for each judgment, and then appending to an array to generate the email list for sending emails

     

    You can specifically refer to this blog:

    www.spguides.com

     

    Best Regards,

    Liu Yang

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