I need a flow to trigger when an item is created but only send an email during certain business hours... example from 18:00 current day till 08:00 next morning. How can I do this?
Michael
Solved! Go to Solution.
Hi @Deyo,
Has your problem been solved?
Do you want to trigger Flow when there is a new item created, but only when the time is in the business hours--send an email notification?
I have a idea here, and maybe it could be a method.
Store "18,19,20,21,22,23,23,00,01,02,03,04,05,06,07" in an Compose-input. Because of the hourly part, you don't need to put "08" into this string.
Get the value of the Hour part of "Created"( Item creation time) or utcNow(), determine if it is included in this array.
If Compose-Output contains this value, the message is sent.
Image reference:
Please take a try and also look forward to your approach.
Best Regards,
Barry
TEST
Hi @Deyo,
Has your problem been solved?
Do you want to trigger Flow when there is a new item created, but only when the time is in the business hours--send an email notification?
I have a idea here, and maybe it could be a method.
Store "18,19,20,21,22,23,23,00,01,02,03,04,05,06,07" in an Compose-input. Because of the hourly part, you don't need to put "08" into this string.
Get the value of the Hour part of "Created"( Item creation time) or utcNow(), determine if it is included in this array.
If Compose-Output contains this value, the message is sent.
Image reference:
Please take a try and also look forward to your approach.
Best Regards,
Barry
This worked great... just working through the adjustment of time zone versus UTC time. Thank you so much!
alternatively you could use the flow management connector to
1. have a flow that turns on your 'after hours' flow at the appropriate time
2. have the 'after hours' flow that does what it is supposed to do regardless of time because it should only be enabled after hours
3. have a flow that turns OFF your 'after hours' flow at the appropriate time
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.
User | Count |
---|---|
32 | |
15 | |
14 | |
13 | |
7 |
User | Count |
---|---|
39 | |
23 | |
14 | |
10 | |
7 |