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

Flow to create Outlook calendar meeting 90 days after an 'Implementation date'

I am working on a management of change process using SharePoint and Microsoft Flow.

 

I am trying to build a manually triggered flow, so that once triggered, Flow will create an Outlook meeting request for a date 90 days after the 'Implementation Date' that is set for the list item clicked on to trigger the Flow.

 

I am trying to use a Compose for the Adddays,

then using the Output to then Set the Variable for the date.

I am then using the Variable as the Date Time for the Outlook meeting.

 

But it keeps on giving an error, saying it doesn't recognise the date.

BadRequest

Status Code 400

 

I've tried various ways of using the Adddays, but I don't think I am doing it right.

 

adddays1.pngadddays2.pngadddays3.pngadddays4.pngadddays5.png

 

Does anyone know how to add 90 days to a date that is in a field in a SharePoint list, then use that review date to set a Outlook meeting?

 

Thanks,

 

Adam

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Flow to create Outlook calendar meeting 90 days after an 'Implementation date'

@AdamBradbury198:

 

The following expression worked for me for the start time:

addDays(formatDateTime(body('Get_item')?['Implementation_x0020_Date'],' yyyy-MM-ddT13:30'),30)
 
I didn't see the need to use a Compose action - I used this expression directly in the Create event start and end time fields.
CreateEvent.jpg 
 
Also, you may want to think about accounting for your time zone when setting the time.
 
If this solves your issue, please mark your question as Solved.
 
Scott
 
 
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

1 REPLY 1
Super User
Super User

Re: Flow to create Outlook calendar meeting 90 days after an 'Implementation date'

@AdamBradbury198:

 

The following expression worked for me for the start time:

addDays(formatDateTime(body('Get_item')?['Implementation_x0020_Date'],' yyyy-MM-ddT13:30'),30)
 
I didn't see the need to use a Compose action - I used this expression directly in the Create event start and end time fields.
CreateEvent.jpg 
 
Also, you may want to think about accounting for your time zone when setting the time.
 
If this solves your issue, please mark your question as Solved.
 
Scott
 
 
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

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 (6,981)