Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Selecting specific times on a gallery

(0) ShareShare
ReportReport
Posted on by 389

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!

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard