We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

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 

3 REPLIES 3

_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

@_raj_esh  ,  Thanks for the reply .

The major challenge here would whether we should also go with customisation of a widget which is wsd search or we should drop it.
 

@kumarakshay 

I would say no. 

 

I have observed, that ServiceNow is releasing enhancements for releases. It will be big challenge to adapt them with the customization. 

 

Hope it helps. 

--Raj | ServiceNow Certified Technical Architect