I need to build a flow to send a reminder before a week of an Expiration date (date coloumn in a sharepoint list). Flow to be run daily but the reminder to be send on the same item every 1 week till the expiration date renewed.
I did already the simple scenario as below:
1. Recurrence
2. Get items
3. Apply to each --> Condition (ticks(item()?['ExpirationDate']) is less than ticks(utcNow())
but it doesnt satisfy my scenario, any help?
Solved! Go to Solution.
Hi @Rehab_Hassan10 ,
Please try to use the following method to achieve your needs.
Expression reference:
formatDateTime(item()['ExpirationDate'],'yyyy-MM-dd')
addDays(utcNow(),7,'yyyy-MM-dd')
Image reference:
Best Regards,
Condition (ticks(addDays(utcNow(),7)) is greater than or equal to ticks(item()?['ExpirationDate'])
This will start sending the expiration email 7 days before the expiration date
Regards,
Reza Dorrani
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
it keeps sending me email for every entry
i suggesting you to using filter array,
@lessOrEquals(formatDateTime(addDays(item()?['set with your date field'], -7), 'MM/dd/yyyy'), utcNow('MM/dd/yyyy'))
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Rehab_Hassan10 ,
Please try to use the following method to achieve your needs.
Expression reference:
formatDateTime(item()['ExpirationDate'],'yyyy-MM-dd')
addDays(utcNow(),7,'yyyy-MM-dd')
Image reference:
Best Regards,
But condition will become a false. what i can write in filter query of GetItems Action
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
45 | |
43 | |
36 | |
35 | |
26 |
User | Count |
---|---|
48 | |
38 | |
32 | |
32 | |
31 |