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 Apps / Office365.CalendarPost...
Power Apps
Unanswered

Office365.CalendarPostItem date format

(0) ShareShare
ReportReport
Posted on by 353

I seem to be having trouble with adding events to outlook from a sharepoint calendar/list. 

 

My SP list is in a gallery. I have a button on each gallery item to add that event to outlook. initially I tried;

Office365Outlook.V4CalendarPostItem(LookUp(Office365Outlook.CalendarGetTablesV2().value,name="Calendar").id,
ThisItem.Title,
ThisItem.'Start Time',
ThisItem.'End Time',
"(UTC) Coordinated Universal Time")

but get the error 400: string was not recognised as a valid date time. 

I found another post suggesting the start and end dates should be formatted different, so tried this;

Select(Parent);


Office365Outlook.V4CalendarPostItem(LookUp(Office365Outlook.CalendarGetTablesV2().value,name="Calendar").id,
ThisItem.Title,
DateValue(Text(ThisItem.'Start Time'))+Time(Value(Left(ThisItem.'Start Time',2)),Value(Right(ThisItem.'Start Time',2)),0),
DateValue(Text(ThisItem.'End Time'))+Time(Value(Left(ThisItem.'End Time',2)),Value(Right(ThisItem.'End Time',2)),0),
"(UTC) Coordinated Universal Time")

unfortunately I get the same error. 

Below I have added two text boxes showing the date format from the second attempt. 

nick9one1_0-1702552604499.png

 

can anyone help?

 

Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @nick9one1 ,

     

    Please try:

    Office365Outlook.V4CalendarPostItem(LookUp(Office365Outlook.CalendarGetTablesV2().value,name="Calendar").id,
    ThisItem.Title,
    DateTimeValue(ThisItem.'Start Time'),
    DateTimeValue(ThisItem.'End Time'),
    "(UTC) Coordinated Universal Time")

     

    Best Regards,

    Bof

  • nick9one1 Profile Picture
    353 on at

    same error

     

    nick9one1_0-1702644807255.png

     

  • johnxt Profile Picture
    on at

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard