cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
abroad36
Frequent Visitor

Book a Room (smartphone) not working

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?

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

5 REPLIES 5
v-bofeng-msft
Community Support
Community Support

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

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?

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

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 😕

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

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,877)