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

Calendar Format from Teams Meeting Creating Error

I'm creating a flow based on the Outlook Calendar 365 trigger "When a new event is created (V2)" with the condition that the event is being created by a Microsoft Teams Channel invite from our Student Data Sync created teams. All these Teams are pre-pended with Section_ in the email address they send from.

 

In the Create Event (v4) trigger, initially I had the Start time and End time using the default dynamic content tags (Start Time and End Time) but was getting this error:

 

The parameter with value '"@triggerOutputs()?['body/Start']"' in path 'item/start' with type/format 'String/date-time' is not convertible to type/format 'String/date-no-tz'.'.

 

Did a little digging and found this solution that seemed to suggest that this error could be solved by using an expression instead:

 

https://powerusers.microsoft.com/t5/Building-Flows/Template-by-Microsoft-Flow-Community-does-not-sav...

 

So instead of the tokens I put in the requisite convertToUtc expression:

 

convertToUtc(triggerOutputs()?['body/start'], 'Eastern Standard Time')

and

convertToUtc(triggerOutputs()?['body/End'], 'Eastern Standard Time')

 

But I'm still getting an error:

 

Unable to process template language expressions in action 'Create_event_(V4)' inputs at line '1' and column '27383': 'The template language function 'convertToUtc' expects its second parameter to be a time zone matching the time zone indicated by the timestamp. The provided value '(UTC-05:00) Eastern Time (US & Canada)' is not valid or does not match the timestamp '2020-05-26T20:30:00.0000000+00:00'. Please see https://aka.ms/logicexpressions#ConvertToUtc for usage details.'.

 

The Teams invite is coming from an instance of Teams set up in the Eastern Time zone. Any ideas what I might be missing here:

 

image of flowimage of flow

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

 

Hi @mrjarbenne ,

 

The convertToUtc() function is used to convert the GMT standard time zone to UTC. The Eastern Standard Time you filled is utc time zone, which is incorrect. https://docs.microsoft.com/en-gb/azure/logic-apps/workflow-definition-language-functions-reference#c...

 

You can directly try to use Convert time zone to convert the time zone.

179.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support
Community Support

 

Hi @mrjarbenne ,

 

The convertToUtc() function is used to convert the GMT standard time zone to UTC. The Eastern Standard Time you filled is utc time zone, which is incorrect. https://docs.microsoft.com/en-gb/azure/logic-apps/workflow-definition-language-functions-reference#c...

 

You can directly try to use Convert time zone to convert the time zone.

179.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Thanks for the reply. I should also add to this conversation that the When a New Event is Added (V3) doesn't have the same issues with the Start Time and End Time dynamic content tokens as V2 did.

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (8,266)