cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Outlook connector send calendar invite as logged in user

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

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.

View solution in original post

1 REPLY 1
Super User III
Super User III

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.

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (32,260)