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

Help with Booking System

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

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

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.

 

View solution in original post

2 REPLIES 2
v-xiaochen-msft
Community Support
Community Support

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.

 

View solution in original post

@v-xiaochen-msftYou star! 

 

Thank you very much for your help that has worked!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (945)