cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
AdamBradbury198
Level: Powered On

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (7,067)