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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Help with Booking System
Power Apps
Answered

Help with Booking System

(0) ShareShare
ReportReport
Posted on by 24

Hi everyone

 

I was wondering if someone could help me?

 

I have created a booking system using the "Desk Booking" template. Everything is working fine, but i have been asked to make some changes.

 

We want it so that when users book in the app, that they can only book a full day not have the option to choose the times.

 

I need to find away to adjust it so that it just books 9am to 5.30pm

 

Thanks

2021-04-26 10_30_56-Booking System - Test App - Saved (Unpublished) - Power Apps — Mozilla Firef.png
2021-04-26 10_30_08-.png
Categories:
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @SymmetryLtd ,

     

    I did a test for you.

     

    1\ Set the formula like picture:

    v-xiaochen-msft_0-1619509342202.png

    Set(DateSelected, Today());
    Set(DateTimeRoomChange, true);
    /*If(Mod(Minute(Now()), 30) <= 14, 
     Set(StartDateTime, DateAdd(Now(), -Mod(Minute(Now()), 30), Minutes));
     Set(EndDateTime, DateAdd(StartDateTime, 30, Minutes)),
     Mod(Minute(Now()), 30) >= 15,
     Set(StartDateTime, DateAdd(Now(), -Mod(Minute(Now()), 30) + 30, Minutes));
     Set(EndDateTime, DateAdd(StartDateTime, 30, Minutes)),
     Set(StartDateTime, Now());
     Set(EndDateTime, DateAdd(Now(), -Mod(Minute(Now()), 30) + 60, Minutes))
    );*/
    Set(StartDateTime,DateAdd(Today(),540,Minutes));
    Set(EndDateTime,DateAdd(Today(),1050,Minutes));
    Set(StartDateTimeUTC, Text(DateAdd(StartDateTime, TimeZoneOffset(), Minutes), "[$-en-US]yyyy-mm-ddThh:mm") & ":00.000Z");
    Set(EndDateTimeUTC, Text(DateAdd(EndDateTime, TimeZoneOffset(), Minutes), "[$-en-US]yyyy-mm-ddThh:mm") & ":00.000Z");
    Set(BookForMeeting, false);
    
    If(NoRoomsList,
     Navigate(RoomSelectScreen, Cover),
     
     Navigate(RoomListSelectScreen, Cover)
    )

     

    2\ Set DisplayMode property like picture:

    v-xiaochen-msft_1-1619509414445.png

     

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

     

  • SymmetryLtd Profile Picture
    24 on at

    @v-xiaochen-msftYou star! 

     

    Thank you very much for your help that has worked!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard