Hello,
I try to set up a button to add required attendes in the app book a room. So it's working I can add peoples but At the end it should send an email to my users and to my meeting room to book the room. But I can't have both working , it send an email just to the attendees or just to the room:
this is my code on the confirmation screen:
I change this one : RequiredAttendees:RoomsGallery.Selected.Email or Concat(ComboBox1.SelectedItems;Mail&";") /* Modify the formula here */
If I keep the first one it send to the room and if I use the second onbe it send to the attendes.
I Try something like this : RequiredAttendees:RoomsGallery.Selected.Email & Concat(ComboBox1.SelectedItems;Mail&";") /* Modify the formula here */
But it's not working.
If(IsBooking;
UpdateContext({ShowLoading: true});;
If(!BookForMeeting;
Office365.V2CalendarPostItem(MyCalendar; User().FullName & "'s Booking"; StartDateTimeUTC; EndDateTimeUTC;
{RequiredAttendees:RoomsGallery.Selected.Email; Location: RoomsGallery.Selected.Name; Importance: "Normal"; ShowAs: "Busy"});
ClearCollect(RequiredAttendeesNoRoom; Split(MeetingsGallery.Selected.RequiredAttendees; ";"));;
ForAll(AllRooms; RemoveIf(RequiredAttendeesNoRoom; Address = Result));;
ClearCollect(RequiredAttendeesNoRoom; Concat(RequiredAttendeesNoRoom; Result & ";"));;
ClearCollect(RequiredAttendeesNoRoom; Split(First(RequiredAttendeesNoRoom).Value; ";;"));;
Set(RequiredAttendeesFinal; First(RequiredAttendeesNoRoom).Result);;
Set(RequiredAttendeesTrue; RoomsGallery.Selected.Email & ";" & RequiredAttendeesFinal);;
Office365.V2CalendarPatchItem(MyCalendar; MeetingsGallery.Selected.Id; If(MeetingsGallery.Selected.Subject = User().FullName & "'s Skype Meeting"; User().FullName & "'s Booking"; MeetingsGallery.Selected.Subject); StartDateTimeUTC; EndDateTimeUTC; {RequiredAttendees: RequiredAttendeesTrue; OptionalAttendees: MeetingsGallery.Selected.OptionalAttendees; Body: "Room has been updated to " & RoomsGallery.Selected.Name; Location: RoomsGallery.Selected.Name; Importance: "Normal"; ShowAs: "Busy"})
);;
UpdateContext({ShowLoading: false})
);;
Set(IsBooking; false)
Could you help me ?
Another question can we add the outlook calendar view in powerapps ?
Thank you,
Best regards,
David.