
Hi, I have a powerapp with a form to sign up for an event which includes adding a calendar event for those who have signed up. However, some people might fill out the form on behalf of others. In those cases, we would want the event to be added to the selected person's calendar, not the calendar of whoever is using the app. I currently have this code for the calendar event:
Office365Outlook.V4CalendarPostItem(
LookUp(Office365Outlook.CalendarGetTablesV2().value,
name="Calendar").name,
"Employee Orientation",
LookUp('Capacity Tracker', Time = Form1.LastSubmit.Time.Value, FormattedTime),
LookUp('Capacity Tracker', Time = Form1.LastSubmit.Time.Value, FormattedEndTime),
"(UTC-06:00) Central Time (US & Canada)",
{
requiredAttendess: DataCardValue2.Selected,
location: "Room 118",
reminderMinutesBeforeStart: 15,
isReminderOn: true,
showAs: "Busy"
}
)
The lookup to retrieve the calendar is returning the user's calendar. Is there a way to pass the selected person to this function? If not, is there a different function we can use to achieve this? An invite may be necessary rather than the Post function due to permissions within calendars.