Hello all,
I'm currently struggling a bit with the following:
In my condition I would like to have the following condition:
If "DayOfWeek equals Wednesday" (= 3 I assume?) then "enter the $true part of the condition".
Not sure if this information is needed, but I'm on GMT +1 time zone.
I've been trying a few options, but none of them seem to work.
I tried to make a variable using "Compose" with expressions:
- DayOfTheWeek()
- DayOfTheWeek(UtcNow())
- DayOfTheWeek(ConvertFromUtc(UtcNow(),'GMT+1')
- ...
To then use that variable in my condition.
Can anyone assist me with this? I assume this should be a pretty simple one to do, but just can't seem to figure it out...
Kind regards,
Nicolai
Solved! Go to Solution.
Hi @NicolaiS
The expression is called
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogHi @NicolaiS
The expression is called
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogHi @NicolaiS how are you doing today?
Please, take a look on this sample on the use of the function dayOfWeek
I think tahat you you can test the output of the variable on a condition to do you process.
Also, follow a documentation for date and time functions https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#d...
Thanks to use our community and let me know if you have doubts about the solution provided
Regards
Rodrigo Hentz
Microsoft Support Engineer
Yes, that was a typo on my end, sorry.
I've been using DayOfWeek, not DayOfTheWeek.
For some strange reason, I've been trying DayOfWeek(UctNow(()), but the syntax wouldn't accept the "UtcNow()" in the expression when clicking "Update".
However, just tried it again, tested the flow and got the correct number for this current day.
No idea what went wrong last time, as this was the first expression I tried here.
Thanks for the help.
User | Count |
---|---|
93 | |
45 | |
21 | |
18 | |
17 |
User | Count |
---|---|
144 | |
50 | |
42 | |
40 | |
31 |