cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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
ScottShearer
Super User III
Super User III

@Anonymous:

 

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
ScottShearer
Super User III
Super User III

@Anonymous:

 

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (2,215)