cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JamesBaldwin
New Member

Create calendar event from assigned task

We're trying to use the Tasks app in Teams to organize a lot of what we do, and members of the team want Outlook calendar events created automatically when a task is assigned to them. I've got a screenshot of the issue below, but the crux of the issue is the date formatting:

 

Flow save failed with code 'OpenApiOperationParameterValidationFailed' and message 'Input parameter 'item' validation failed in workflow operation 'Create_event_(V4)': The parameter with value '"@triggerOutputs()?['body/startDateTime']"' in path 'item/start' with type/format 'String/date-time' is not convertible to type/format 'String/date-no-tz'.'
 
In the end, I'd actually like to create a 1 hour event for 9am-10am on the due date, but at the moment I can't get it to save and run at all, pulling the date string from the Planner event. Any help?
Thanks!
1 REPLY 1
Pstork1
Dual Super User III
Dual Super User III

The DateTime values you are supplying are probably in UTC mode.  They need to be converted to TimeZone independent format.  You can do that with the following format.  just substitute your input values for the UTCNow() in the fuction below.

formatDateTime(utcNow(),'yyyy-MM-ddTHH:mm:ss.fffffff')


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
PA 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

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (54,543)