cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

How to Create a Outlook Calendar Event and Invite multiple attendees (requiredAttendees)

I am creating Outlook event from Power Apps, taking input from SharePoint List. In the list I have a Participant column which is Person Type and allow multiple value. I am using Office365Outlook.V4CalendarPostItem() function. How i can set/combine the value for requiredAttendees parameter from Participant column?

 

My sample code:

 

Office365Outlook.V4CalendarPostItem(
"Calendar",
txtTitle.Text,
dtpStartDate.SelectedDate + Time(Value(ddlStartHour.Selected.Value), Value(ddlStartMinute.Selected.Value), 0),
dtpEndDate.SelectedDate + Time(Value(ddlEndHour.Selected.Value), Value(ddlEndMinute.Selected.Value), 0),
"(UTC+06:00) Dhaka",
{
body:txtDescription.Text,
location:cbLocation.Selected.Value,
requiredAttendees:cbParticipants.SelectedItems.Email
}
);

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper II
Helper II

Re: How to Create a Outlook Calendar Event and Invite multiple attendees (requiredAttendees)

I have solved this issue by using Concat() function. Below is my code

requiredAttendees:Concat(cbParticipants.SelectedItems, Email & "; ")

NOTE: Here cbParticipants is the name of the ComboBox I am using to select Person Type value in Power Apps

 

View solution in original post

3 REPLIES 3
Highlighted
Helper II
Helper II

Re: How to Create a Outlook Calendar Event and Invite multiple attendees (requiredAttendees)

I have solved this issue by using Concat() function. Below is my code

requiredAttendees:Concat(cbParticipants.SelectedItems, Email & "; ")

NOTE: Here cbParticipants is the name of the ComboBox I am using to select Person Type value in Power Apps

 

View solution in original post

Highlighted
Resolver III
Resolver III

Re: How to Create a Outlook Calendar Event and Invite multiple attendees (requiredAttendees)

Hey @hkmamun 

have you tried using

cbParticipants.Selected.Email

instead of 

cbParticipants.SelectedItems.Email

Then all selected users within cbParticipants should be invited as required attendees.

 

Hope this helps you! 🙂

 

Regards

Marvin

Highlighted
Helper II
Helper II

Re: How to Create a Outlook Calendar Event and Invite multiple attendees (requiredAttendees)

Hi @MAR 

cbParticipants.Selected.Email  will select only one value

the problem is solved by using below code which is selecting multiple items

Concat(cbParticipants.SelectedItems, Email & "; ")

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,416)