Hi,
How do I get my flow to send an email if a date is approaching in two weeks? This is what I currently have but its not working. Is there an error in the condition or the variable?
Variable initialized:
Condition:
Date is Less than or equal to formatDateTime(addDays(utcNow(),14),'yyyy-MM-dd')
Thanks in advance.
Hi @Anonymous
Both dates needs to be formatted to yyyy-MM-dd.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogHi @Anonymous,
formatDatetime gives you output in string whereas if you are comparing output of this with actual datetime field it wont work . You need to format your date time field to the same format before putting your logic there.
Thanks
Hi @ManishJain and @abm. Thank you for your responses.
I fixed the formats of the dates. Is the condition correct or should this be changed too?
Hi @Anonymous
Could you provide an example? The issue for your current condition is checking the date which is todays date always going to be less than 14 days ahead.
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogThe first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
72 | |
26 | |
19 | |
15 | |
15 |
User | Count |
---|---|
145 | |
44 | |
44 | |
33 | |
31 |