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 / Outlook connector send...
Power Apps
Answered

Outlook connector send calendar invite as logged in user

(0) ShareShare
ReportReport
Posted on by 43

Hi,

 

I have added the Office365Outlook connector to a Power App I am developing, which will be shared with the whole company. One of the actions in the Power App is to send calendar invites to selected users. This is working, but the invite comes from the service account I have configured that connects to the Office365Outlook connector. So in my app, the connector is:

 

connectors.jpg

and the code that does the invite is:

 

If(
 CalendarInviteYesNo.Value = true,
 Office365Outlook.V4CalendarPostItem(
 // Use logged in users calendar
 LookUp(Office365Outlook.CalendarGetTables().value, DisplayName = "Calendar").Name,
 // Subject
 "Trip Planner trip: " & DataCardValue9.Text,
 // Meeting start time converted to UTC
 DateAdd(DateValue1.SelectedDate + Time(Value(HourValue1.Selected.Value), Value(MinuteValue1.Selected.Value), 0), TimeZoneOffset(), Minutes),
 //DateAdd(Now(), TimeZoneOffset(), Minutes),
 // Meeting end time
 DateAdd(DateValue2.SelectedDate + Time(Value(HourValue2.Selected.Value), Value(MinuteValue2.Selected.Value), 0), TimeZoneOffset(), Minutes),
 // Timezone for meeting
 "(UTC) Coordinated Universal Time",
 {
 requiredAttendees: CalendarInviteListHiddenTextField.Text,//Concat(DataCardValue14.SelectedItems, Email, ";") & ";" & "test",
 optionalAttendees: DataCardValue16.Selected.Email,
 body:"You have been added to a Trip Planner trip" & "<br>" &
 "<b>Trip name:</b> " & DataCardValue9.Text & "<br>" &
 "<b>Vehicles that are part of this trip:</b> " & Concat(DataCardValue17.SelectedItems, Value, ",") & "<br>" &
 "<b><b>Trailers:</b> " & Concat(DataCardValue18.SelectedItems, Value, ",") & "<br>" &
 "Boats:</b> " & Concat(DataCardValue19.SelectedItems, Value, ",") & "<br>" &
 "<b>Trackers, satellite phones etc:</b> " & Concat(DataCardValue20.SelectedItems, Value, ",") & "<br>" &
 "<b>Field trip end location:</b> " & DataCardValue22.Selected.Value & "<br>" & "<br>" &
 "<b>NIWA project code:</b> " & DataCardValue30.Text
 }
 )
);

 

For users, the invite comes from "365Service" rather than the person who is doing the inviting via the shared app. Is there a way to change this so it comes from the user rather than the 365service account?


Thanks!
Dylan

 

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,425 Most Valuable Professional on at

    Hi @baarsd ,

    Looking at the options below, it appears notCalandar.png

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard