I am currently working for a client who asked me to create an app which will allow him to book different rooms in his company (there's already a default app which does that, but I need to mix some other features). The problem I am having is that I cannot find a way (even copying from the 'Book a room' app) in which I can get the function to retrieve the correct slots.
As you can see from the image attached to this post, I created a simple collection with one attendee (my email address), one resource attendee (room's address), the start and date time (that should include every period within the day), and the duration. However, when I ClearCollect it, the only retrieved values go from 11pm to midnight the previous day, and 3pm to 4.30pm of the targeted day. If I change the start date minutes' value in my function (from 0 to, say, 180, but any other value retrieves the same), it will change to start from 3pm to 5.30pm. I would appreciate any idea about which may be causing this problem.
If not possible, is there a way to work around this problem? Something like get the room's calendar, break it into X periods, and filter out when status = "busy"?
Thank you very much in advance!
Check if below thread could help:
Thank you Lisabel, but it doesn't help to solve my problem. My question is not so much related with posting calendar events at the correct times (I can do it if I enforce start/endtime on my function). I want the users to know when a room is available for any period of the day, so the need for the FindMeetingTimes to function correctly.
In any case, I found a way to work around it, although still not solving the problem. I found a combination in time range (similar to what we have in 'Meeting Capture' app) that allows be to see a wider set of values. I chose to start the range at 3am and to end at 11.30pm and, for some odd reason, it gives me a list of meetingslots that goes from 8am to 11.30pm. I also tried the 'Meeting Capture' app to evaluate its behaviour with this function, and it had the same problem of retrieving a random limited set of values.
FIll out a quick form to claim your community user group member badge today!
The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!