cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
patrick1992
Frequent Visitor

How do I set a reminder for Outlook Event from a Flow

 

I am taking data from a Create New Contracts in Dynamics 365 and adding it to yhe Outlook Calendar.

 

The way I want it to work is:

 

- a user creates a new contract in Dynamics 365

- the Contract End Date creates an Event in Outlook calendar

- the user gets an email notification a week before the event

 

In the Caledar app, there is a way to create Email reminders from New Events, is there a way to use that in Flows?

 

I have a flow creating the event, but I want to know how to make a flow that will send an email notification a week before the event.

 

Any ideas?

Thanks in advance.

 

2 REPLIES 2
Community Support
Community Support

Re: How do I set a reminder for Outlook Event from a Flow

Hi patrick1992,

 

According to your scenario, to send an email notification a week before the event, I assume that this flow configuration could be a reference for you:
3.PNG


More details about the flow configuration:


In the Compose action, use the function formateDateTime and adddays to format the StartTime of the event to a week before the event(date only).


The function is configured as: 

formatDateTime(adddays(triggerBody()?['Start'],-7),'yyyy-MM-dd')

 More details about the function, please check this documentation about Workflow definition language:

https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

 

 In the Condition, if the output from the Compose action is equal to today’s date, send an email.


Note, I also use formateDateTime function to format the utcnow() to date only.

 

Then when a new event is created, if the condition meets, an email would be sent.

 

Please modify the flow according to your needs. Please 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.
patrick1992
Frequent Visitor

Re: How do I set a reminder for Outlook Event from a Flow

But won't this only scheck once if the due date is in 7 days? That would mean I only get Email notifications if it is, while I'm trying to get Calander to send email reminders.

 

Also can you explain triggerBody()?['Start']

 

Thanks in advance.

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: 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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (7,920)