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:
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

Report
All responses (
Answers (