Booking window based on calendar week instead of booking date – is this possible?

kumarakshay
Tera Contributor

Hi All,

We are using Workplace Service Delivery (Desk Booking) and have a requirement around booking windows.

I want to allow desk bookings up to 3 weeks in advance, but the calculation should be based on the calendar week, not the exact booking date.

Example:

  • User books on Tuesday (Calendar Week 4)

  • Current behavior: bookings allowed until Tuesday of Calendar Week 7

  • Required behavior: bookings allowed until end of Calendar Week 7 (e.g., Friday)

So instead of calculating +21 days from today, the system should:

  • Determine the current calendar week

  • Allow bookings until the last working day of CW + 3

My questions:

  1. Is this behavior configurable out-of-the-box in ServiceNow meeting / Desk Booking?

  2. If not, is there a supported approach to override the date calculation logic?

  3. Has anyone implemented a similar calendar-week-based booking restriction?

Any guidance or best practices would be appreciated.

Thanks in advance!
@Raj_Esh @Arvid 

1 REPLY 1

Raj_Esh
Kilo Sage

Hi @kumarakshay 

 

We had the similar requirement, not to allow booking on the weekends. I dont think ServiceNow has any OOTB solution for such requirement.

 

I have tried it out, it is completely customization. 

 

The most of the logic is written in sp_angular_provider (wsdSearchFilter) under 

function updateDate(type, value)
 
I have made in such a way if someone selects the date on Saturday or Sunda, the system will auto picks the Monday date. Although, you are looking for different requirement. But, i guess the logic is in here. 
 
I also wanted to make the weekends not selectable. But due to customization, we did not proceed further. 
 
Hope this helps.
--Raj | ServiceNow Certified Technical Architect