cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
leslie_rivera
Resolver II
Resolver II

Book a Room Template - Body of Meeting Invite

I have an issue with the Book a room template. When selecting Book a room for an existing meeting. Most meetings already have zoom details in the body of the invite. However when I select this it deletes all the zoom information. Not sure how to resolve the issue.

 

In the OnVisible tab of the Confirmation screen I removed the body information but it still deletes my information.

 

leslie_rivera_0-1620947656692.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @leslie_rivera :

Do you want the content of the body not to be changed when you edit an existing meeting.

Please try:

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);
Set(OriginalBody,Office365.V3CalendarGetItem(MyCalendar, MeetingsGallery.Selected.Id).body);
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:OriginalBody,Location: RoomsGallery.Selected.Name, Importance: "Normal", ShowAs: "Busy",IsHtml:true})
);

UpdateContext({ShowLoading: false})
);
Set(IsBooking, false)

 

Best Regards,

Bof

View solution in original post

4 REPLIES 4
v-bofeng-msft
Community Support
Community Support

Hi @leslie_rivera :

Do you want the content of the body not to be changed when you edit an existing meeting.

Please try:

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);
Set(OriginalBody,Office365.V3CalendarGetItem(MyCalendar, MeetingsGallery.Selected.Id).body);
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:OriginalBody,Location: RoomsGallery.Selected.Name, Importance: "Normal", ShowAs: "Busy",IsHtml:true})
);

UpdateContext({ShowLoading: false})
);
Set(IsBooking, false)

 

Best Regards,

Bof

View solution in original post

leslie_rivera
Resolver II
Resolver II

@v-bofeng-msft  Hmm that sorta worked.. IT kept the meeting but changed it to HTML..

 

Before booking the room

leslie_rivera_0-1620964071853.png

 

 

After booking the room

leslie_rivera_1-1620963372488.png

 

Hi @leslie_rivera :

This may be because you did not add the parameter "IsHtml: true", I forgot to mark it in red just now. Now I have revised the above response, please refer to it.

Best Regards,

Bof

leslie_rivera
Resolver II
Resolver II

@v-bofeng-msftThat worked! Thank you so much!!!!!!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (3,266)