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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Connecting Outlook Cal...
Power Automate
Suggested Answer

Connecting Outlook Calendar to Google Calendar - Errors

(0) ShareShare
ReportReport
Posted on by 2
Hi,
 
I'm running in circles to synchronize the Outlook Calendar with Google Calendar.
 
The Flow has been created with V3 event, My outlook calendar is cjosen and ok. Then I've to create the Google calendar event and I'm getting crazy on how to fix either setup the start time / end time with fx Triggers , then complains about formats and the latest error is :
"InvalidTemplate. Unable to process template language expressions in action 'Criar_um_evento' inputs at line '0' and column '0': 'The template language function 'formatDateTime' expects its first parameter to be of type string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#formatdatetime for usage details.'."
 
This was supposed to be a very simple automation though I'm getting made to fix and all the co-pilot hints are not fixing.
 
Who did already this synchro and can give me a hand ?
 
Many thanks
Luis F
PowerAutomate_error.jpg
Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,136 Most Valuable Professional on at
    The current problem is that whatever dynamic content value you are using inside the FormatDateTime() function is null. Check the value of the field you are using. Its evidently blank or not a datetime value at all.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • Suggested answer
    Riyaz_riz11 Profile Picture
    4,048 Super User 2026 Season 1 on at
    Hi,
     

    Step 1: Use correct dynamic fields

    When you pick Outlook event trigger fields, you should see:

    • Start timeStart → usually an object with a dateTime property

    • End timeEnd → same

    Do not use the raw Start if it’s an object.

    Step 2: Safely extract and format the datetime

    Instead of:

    formatDateTime(triggerOutputs()?['body/start'], 'yyyy-MM-ddTHH:mm:ss')

     Use:

    formatDateTime(triggerOutputs()?['body/start']?['dateTime'], 'yyyy-MM-ddTHH:mm:ss')
     

    formatDateTime(triggerOutputs()?['body/end']?['dateTime'], 'yyyy-MM-ddTHH:mm:ss')

    This accesses the dateTime field inside the object.

    Step 3: Handle possible nulls

    To be safe (in case of null), you can wrap with a coalesce:

    formatDateTime(coalesce(triggerOutputs()?['body/start']?['dateTime'], utcNow()), 'yyyy-MM-ddTHH:mm:ss')

    This means:

    • If start.dateTime is null, use utcNow().

     

    If I have answered your question, please mark it as the preferred solution ✅ . If you like my response, please give it a Thumbs Up 👍.
    Regards,
    Riyaz

  • LF-06071531-0 Profile Picture
    2 on at
    I used   hint but 
     
    "Unable to process template language expressions in action 'Criar_um_evento' inputs at line '0' and column '0': 'The template language expression 'formatDateTime(coalesce(triggerOutputs()?['body/start']?['dateTime'], utcNow()), 'yyyy-MM-ddTHH:mm:ss')' cannot be evaluated because property 'dateTime' cannot be selected. Property selection is not supported on values of type 'String'. Please see https://aka.ms/logicexpressions for usage details.'."
     
    Still running in circles !!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 607

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard