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 / Book event in outlook ...
Power Apps
Answered

Book event in outlook calendar

(0) ShareShare
ReportReport
Posted on by 2,297

When trying to post an event into an Outlook calendar, with the following code:

 

 

 

Office365Outlook.V4CalendarPostItem(
 _myCalendarName, // calendar
 GalleryReason.Selected.Title, // subject
 _startTime, // start
 _endTime, // end
 "(UTC) Coordinated Universal Time", // time zone
 {RequiredAttendees: _myBoss.Mail, //
 Body: TextInput1.Text, 
 // Location: _selectedRoom.Name, 
 Importance: "Normal", 
 ShowAs: "Busy", 
 IsAllDay: false, //CheckboxAllDay_1.Value,
 isReminderOn: false,
 ResponseRequested: true}
);

 

 

 

The event:

  • is always booked as All day, even when it is not
  • always ends one day before _endTime
  • does not request a response from _myBosss.Mail
  • the importance is always set to "Low"

 

Can anyone please explain what am I doing wrong?

 

Thank you

Categories:
I have the same question (0)
  • WebPortal Profile Picture
    2,297 on at

    It seems the problem is solved by using lower caps for the optional parameters.

     

    So, don't use:

     

    IsAllDay

     

     

    But:

     

    isAllDay

     

     

    And the same for the other parameters.

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @WebPortal

    Glad that you have resolved your problem.

    Here is the complete parameters for the Office365Outlook.V4CalendarPostItem() function. You could see that all the parameters reference use the lower caps.

    Office365Outlook.V4CalendarPostItem(
    table,
    subject,
    start,
    end,
    timeZone,
    {
    requiredAttendees:Text,
    optionalAttendees:Text,
    resourceAttendees:Text,
    body:Text,
    location:Text,
    importance:Text,
    isAllDay:Boolean,
    recurrence:Text,
    recurrenceEnd:Text,
    numberOfOccurences:Number,
    reminderMinutesBeforeStart:Number,
    isReminderOn:Boolean,
    showAs:Text,
    responseRequested:Boolean,
    sensitivity:Text
    }
    )

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 339 Most Valuable Professional

#2
11manish Profile Picture

11manish 180

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard