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 / add an event in outloo...
Power Apps
Answered

add an event in outlook calendar

(0) ShareShare
ReportReport
Posted on by 242

I finally got it to work, the meeting is created in my outlook Calendar!

Now i want to increase the end time with the duration field value (txt field and stored in varDuration)

duration.PNG

i have the follow code that works only now the end time is the same as the start time:

 

 

 

 

 

Set(
 varUserCalendarId,
 LookUp(
 Office365Outlook.CalendarGetTablesV2().value,
 name = "Calendar"
 ).id
);
Office365Outlook.V4CalendarPostItem(
 varUserCalendarId,
/*subject of the meeting*/
 Afspraakoms,
/*The time the meeting starts*/
 Text(
 DateTimeValue(afspraakdatumText & "," & " " & ddHour.SelectedText.Value & ":" & ddMinute.SelectedText.Value & ":" & "00"),
 DateTimeFormat.UTC
 ),
/*the time the meeting ends*/
 Text(
 DateTimeValue(afspraakdatumText & "," & " " & ddHour.SelectedText.Value & ":" & ddMinute.SelectedText.Value & ":" & "00"),
 DateTimeFormat.UTC
 ),
/*Timezone for the meeting*/
 "UTC",
/*optional functions*/ 
 {
 requiredAttendees: "",
 body: "Kappers afspraak",
 location: "address",
 reminderMinutesBeforeStart: 30,
 showAs: "busy"
 }
)

 

 

 

 

 

 can someone please assist how to add x minutes to the end time:

endtime.PNG

 

Categories:
  • Verified answer
    Yvonzim Profile Picture
    242 on at

    Solved, by myself :).

    replaced the start end end time part:

     

    /*The time the meeting starts*/
     DateAdd(
     DateTimeValue(
     afspraakdatumText & "," & " " & ddHour.SelectedText.Value & ":" & ddMinute.SelectedText.Value & ":" & "00"
     ),
     TimeZoneOffset(),
     Minutes
     ),
    
    /*time the meetings ends utc time, replace now with the time you want */
     
    DateAdd(
     DateTimeValue(
     afspraakdatumText & "," & " " & ddHour.SelectedText.Value & ":" & ddMinute.SelectedText.Value & ":" & "00"),ddDuration.Text +
     
     TimeZoneOffset(),
     Minutes
     ),

     

     

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 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard