cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
leslie_rivera
Helper III
Helper III

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
Helper III
Helper III

@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
Helper III
Helper III

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

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (68,340)