cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

[ Question ] Flows - Email update

Hello,

 

I am new to flows but am extreamly intested in getting my hands dirty!

I've been trying to make a list have a review date (xx.xx.xxxx) then sending a email to owner when that date has occoured. 

 

Anyone have any documentation or just a photo to show the workflow?

Many thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: [ Question ] Review date flow

Hi Packlimo,

 

I assume that you want to send an email to someone when a review date is equal to today’s date.


Say you are using the SharePoint list, and you have a Date column(date only) in the list.


Then you could consider to create a flow likes below to send the owner an email when the date has occurred.


I add a Condition in the flow to check if the date is equal to today’s date.


The function I am using in the Condition is: 

@equals(items('Apply_to_each')?['Date'], formatDateTime(utcnow(),'yyyy-MM-dd'))


PS: You should know the date format in your list first, then format today’s date to the same format using formatDateTime function

 

More details about formatDateTime function, please check it at here:
https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

 

3.PNG

 

Please try it on your side and feel free reply if you need more help.


Best regards,
Mabel Mao

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

9 REPLIES 9
Highlighted
Community Support
Community Support

Re: [ Question ] Review date flow

Hi Packlimo,

 

I assume that you want to send an email to someone when a review date is equal to today’s date.


Say you are using the SharePoint list, and you have a Date column(date only) in the list.


Then you could consider to create a flow likes below to send the owner an email when the date has occurred.


I add a Condition in the flow to check if the date is equal to today’s date.


The function I am using in the Condition is: 

@equals(items('Apply_to_each')?['Date'], formatDateTime(utcnow(),'yyyy-MM-dd'))


PS: You should know the date format in your list first, then format today’s date to the same format using formatDateTime function

 

More details about formatDateTime function, please check it at here:
https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

 

3.PNG

 

Please try it on your side and feel free reply if you need more help.


Best regards,
Mabel Mao

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Frequent Visitor

Re: [ Question ] Flows - Email update

Hi @v-yamao-msft i've followed these instructions as per image below - BUT

 

But condition returns false, even thought I do have a document in the library that has a notification date of today.

 

Can you give me any insight?

 

Condition = @equals(items('Apply_to_each')?['Notification'], formatDateTime(utcnow(),'dd/mm/yyyy'))

 

flow.png

 

 

Thanks.

 

 

Highlighted
Dual Super User III
Dual Super User III

Re: [ Question ] Flows - Email update

Hi!

I usually recommend to add a Compose action block before evaluating a condition, and assign it the dynamic content to be evaluated (in your case the Notification column). This way, after flow execution you can go to "Run history" and inspect the content of the element that is evaluated in the condition; in order to make sure it matches your expectations

Hope this helps

 


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Highlighted
Frequent Visitor

Re: [ Question ] Flows - Email update

HI @efialttes thanks for the reply.

 

I have tried that - but still retunrs false.

Everything is matching - no problems there.

I'm still wondering about international times - should i be added UTC+10 possibly?

 

Thanks in advance

 

Jess

Highlighted
Dual Super User III
Dual Super User III

Re: [ Question ] Flows - Email update

Hi!

That's why I usually recommend to inspect the values that are evaluated in the condition. Sometimes you are unsure if the format arriving is the expected one, that's the best way IMO to proceed.

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Highlighted
Frequent Visitor

Re: [ Question ] Flows - Email update

I agree- and have checked the formatting it is UTC - i have copied the format across -

any other recommendations???

Thanks in advance.

Highlighted
Dual Super User III
Dual Super User III

Re: [ Question ] Flows - Email update

Hi!

Can you share a screenshot with the outputs of the Compose action block? You can take it from any of the entries in Run History (I mean, any execution after you updated your Flow with the Compose action block)

 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Highlighted
Frequent Visitor

Re: [ Question ] Flows - Email update

Screen shot of output from comppose:

compose.png

 

So have added formatting to match

@equals(item('Apply_to_each'')?[Notification_Date],formatDateTime(utcnow(),'YYYY-mm-ddT13:00:00Z'))

 

Now getting errors - thanks again - but i just cant see where i'm going wrong!

 

 

Highlighted
Dual Super User III
Dual Super User III

Re: [ Question ] Flows - Email update

Hi!

 

From the expression you have already shared, I am assuming all the dates on your "Notification Date" column include 'T13:00:00Z' as time reference. If so, I would try with the following:

@equals(items('Apply_to_each'')?[Notification_Date],concat(formatDateTime(utcnow(),'YYYY-MM-dd'),'T13:00:00Z'))

 

In order to select the right date format, this link is extremely useful

https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings

 

Hope this helps

 

 

 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (6,875)