web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Book a Room (smartphon...
Power Apps
Unanswered

Book a Room (smartphone) not working

(0) ShareShare
ReportReport
Posted on by 9

For me the Book A Room template for smartphones isn't working.

When trying to pick upcoming meetings, there are none showing up + when trying to create a new booking/meeting via the app, the event isn't created but an error shows up saying "error at "Office365.V2CalendarPostItem": the method "V2CalendarPostItem" shows an invalid value for the parameter "Start".

 

Apart from visual optimizations I didn't alter the template... any ideas?

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at

    Hi @abroad36 :

    I've made a test but did not encounted the problem you mentioned.

    I suggest you to check according to the following steps:

    Step1:Considering that the error message displays "The value of parameter ‘Start’ is invalid". I suggest you check the value of the variable StartDateTime.(File-Variables-Glabal)

    1\Does the value of StartDateTime exist?
    2\ Is the data type of StartDateTime ‘DateTime’

    1.JPG

    Step2:Check whether the formula is correct (ConfirmationScreen-OnVisible)

     

    If(
     IsBooking,
     UpdateContext({ShowLoading: true});
     Set(AvailableRoomsCounter, 1);
     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
    )

     

     Best Regards,

    Bof

  • abroad36 Profile Picture
    9 on at

    That was totally my bad, sorry for your efforts...
    I forgot to adjust the correct connection 😒

     

    In the end the main problem was fixed but I came to another question:
    The Book a Room App will only work for meetings which are set up by the specific connected account - not those of the actual user, right? So if users also plan meetings outside of this app, e.g. in their own Outlook Calendar those won't show up in the app.
    Is there any way, maybe in Exchange to get this working?

  • v-bofeng-msft Profile Picture
    on at

    Hi @abroad36 :

    You don't have to worry about it.

    • The Book a Room App will work for actual users.(Current user)
    • If users also plan meetings outside of this app, e.g. in their own Outlook Calendar those will show up in the app.

    Best Regards,

    Bof

  • abroad36 Profile Picture
    9 on at

    Thank you for the quick reply 🙂
    So the app can't work for a whole team, but only for the user I set up the connection with?

    Sorry for bothering, but atm I can't view any meetings in the app which aren't created in the personal calendar of the connected account 😕

  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @abroad36 :

    I am not sure whether I understood you correctly. But I can give a vivid example:

    When  a user open the app,it will ask for permission to his account:

    1_LI.jpg

    In other words, when user A uses this app, the app displays user A's calendar. When user B uses this app, the app displays user B’s calendar.

    Best Regards,

    Bof

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard