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

@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
Super User

@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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Top Solution Authors
Users online (1,980)