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 / Selecting specific tim...
Power Apps
Unanswered

Selecting specific times on a gallery

(0) ShareShare
ReportReport
Posted on by 394

Hello all,

I need assistance with my power app. I want to enable users to book 10-minute time slots for two days: August 24th and 25th. Each booking should be reflected in the individual's calendar.

While I have managed to implement the above functionality, I am facing difficulties in displaying the specific times. I would like the time slots on August 24th to be from 1 pm to 4 pm, with a 10-minute break at the end of each hour. Here's an example:

Thursday, August 24th:

  • 1:00 pm to 1:10 pm - bookable slot
  • 1:10 pm to 1:20 pm - bookable slot
  • 1:20 pm to 1:30 pm - bookable slot
  • 1:30 pm to 1:40 pm - bookable slot
  • 1:40 pm to 1:50 pm - bookable slot
  • 1:50 pm to 2:00 pm - keep free

Similarly, on the 25th, I would like the time slots to be from 10 am to 1 pm, with the same 10-minute break at the end of each hour

 

Is this possible on the gallery to show the said times?

 

The code snippet I am implementing within the "onselect" of the button:

 

Set(VarTeacher, Dropdown1.Selected);
If(
DatePicker1.SelectedDate = DateValue("2023-08-24") || DatePicker1.SelectedDate = DateValue("2023-08-25"),
ClearCollect(
ColTest,
Office365Outlook.FindMeetingTimesV2({
RequiredAttendees: User().Email & ";" & VarTeacher.Email,
MeetingDuration: Dropdown2.Selected.Value,
Start: DateAdd(DatePicker1.SelectedDate, 8, TimeUnit.Hours),
End: DateAdd(DatePicker1.SelectedDate, 20 * 60 + 30, TimeUnit.Minutes),
ActivityDomain: "Work"
}).meetingTimeSuggestions
),
Notify("Please choose August 24th or 25th.", NotificationType.Warning)
);

 

 

Please help!

Categories:
I have the same question (0)

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 301 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 297 Most Valuable Professional

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 195

Last 30 days Overall leaderboard