Hello all
Hope you can help please.
I've created a similar Flow and need some help, I need Sharepoint to Send an email to alert -60 days before Next Review Date.
The email comes through with the correct details, but it just comes back with all documents in that field rather than 60 days before.
Can this also be set global over all sites or per folder?
String being used when on advanced: @not(equals(items('Apply_to_each')?['Next_x0020_Review_x0020_Date'], formatDateTime(adddays(utcnow(), -3), 'yyyy-MM-dd')))
Hi @acharge37,
If you want to send an email 60 days before the Next Review Date of each file, please refer to screenshot below to create the flow:
Note:
1. Choose the frequency to every day in the "Recurrence" action.
2. The expression in the Condition as below:
@equals(formatDateTime(addDays(utcNow(), 60), 'yyyy-MM-dd'), formatDateTime(items('Apply_to_each')?['Next_x0020_Review_x0020_Date'], 'yyyy-MM-dd'))
Best regards,
Alice
Hello Alice
Thanks for your help, I have changed the string as advised but now I get this error,
Could you advise please?
Thank you
Hi @acharge37,
Could you please share more details about the error message in your run failed flow?
Does your flow run failed with error message as below:
If yes, that means you have some items with a null value in the Next Review Date column, and you could add a Condition 2 to check if the Next Review Date column is null, the screenshot of the flow should as below:
The expression in the Condition 2 as below:
@not(empty(items('Apply_to_each')?['Next_x0020_Review_x0020_Date']))
The flow would run successfully as below:
Best regards,
Alice
Hello Alice Thanks for the below, but I'm now confused, please could you advise the complete flow with the two different conditions and where they go.
Condition 1 - @equals(formatDateTime(addDays(utcNow(), 60), 'yyyy-MM-dd'), formatDateTime(items('Apply_to_each')?['Next_x0020_Review_x0020_Date'], 'yyyy-MM-dd'))
Condition 2 - @not(empty(items('Apply_to_each')?['Next_x0020_Review_x0020_Date']))
This is my whole flow below, are you able to take a screen shot of your working flow plesae, really apprciate this help as my testing today hasnt workined
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Did you know that you could restore a deleted flow? Check out this helpful article.
User | Count |
---|---|
32 | |
32 | |
24 | |
24 | |
20 |
User | Count |
---|---|
60 | |
57 | |
43 | |
37 | |
28 |