web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Date Time Calendar Inv...
Power Automate
Answered

Date Time Calendar Invite using wrong times

(0) ShareShare
ReportReport
Posted on by 78

Hi,

I have a really simple flow that when a meeting room is booked when a user fills in a SharePoint item, it sends a calendar invitation to the users added in the SharePoint item.

But if the meeting is in the afternoon, (1600 - 1700 GMT) then the calendar invite will be set for 0400 - 0500 GMT.

I've tried playing with multiple time wrappings in formula's but none seem to work and the error message I get from Power Automate is:

Flow save failed with code 'OpenApiOperationParameterValidationFailed' and message 'Input parameter 'item' validation failed in workflow operation 'Create_event_(V4)': The parameter with value '"@triggerBody()?['ArrivalDate']"' in path 'item/start' with type/format 'String/date-time' is not convertible to type/format 'String/date-no-tz'.'.
Categories:
I have the same question (0)
  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @StyleMyDoo 

     

    You need to adjust the time zone using fx expression. In the expression, we will use convertFromUtc function.

    Below is the example with 2 columns 'StartTime' & 'EndTime' for creating event in SharePoint list:

    ManishSolanki_0-1707305421183.png

    convertFromUtc(triggerBody()?['StartTime'],'India Standard Time')

    pls replace the actual column name & target time zone as per the need in the above expression. You need to write separate expression for both start & end time while creating event.

     

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

     

  • StyleMyDoo Profile Picture
    78 on at

    Hi,

    thanks for the tip's, when I set the Column Name and Target time zone I get this error message after re-running the flow:

    InvalidTemplate. Unable to process template language expressions in action 'Create_event_(V4)' inputs at line '0' and column '0': 'In the template language function 'convertFromUtc', the value provided for the time zone id 'Greenwich Mean Time' was not valid. '.

    I've tried this with both setting the target time zone as 'GMT' and 'Greenwich Mean Time'

    Should the column be the name be the data entry date/time the user inputs into sharepoint? e.g. my columns are 'ArrivalDate' and 'EndDate'

  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @StyleMyDoo 

     

    Pls try the below expressions:

     

    Start time:

    convertFromUtc(triggerBody()?['ArrivalDate'],'UTC+12')

    End time:

    convertFromUtc(triggerBody()?['EndDate'],'UTC+12')

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • StyleMyDoo Profile Picture
    78 on at

    Hi, @ManishSolanki 

    thanks for that, the flow now completes, but the issue with +12 on every calendar invite is now that every meeting from the morning would now be showing in the evening (0900 meeting now becomes 2100 meeting)

    It's a time zone issue that I think is what needs fixing, not sure why GMT/Greenwich Mean Time doesn't work properly with the flow.

    StyleMyDoo_0-1707307804789.png

     

  • Verified answer
    ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @StyleMyDoo 

     

    Pls try these expressions:

     

    Start Time:

    formatDateTime(triggerBody()?['ArrivalDate'])

    End Time:

    formatDateTime(triggerBody()?['EndDate'])

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • StyleMyDoo Profile Picture
    78 on at

    Hi @ManishSolanki 

    Thanks for the new lines, we are now able to generate the meeting invitations with the correct times xD

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard