Can someone explain why trend by Thursday doesn't work in UI policy?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2024 02:49 PM
I have a UI policy. If end users:
- Select YES for a yes/no question
AND
- Select a weekday
It'll give them an error message "Load release across partitions can only be completed on weekends."\
Can someone explain why Thursday is the only day of the week that isn't accepting this UI policy?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 07:48 AM - edited 08-12-2024 07:49 AM
This is a known issue by SN. PRB1694977
As a workaround, you might use Catalog Client script to understand what day of the week is selected in the calendar field and by validating the date from a Script Include using some scripts like below and then perform the required actions:
var today = new Date();
switch (today.getDay()) {
case 0:
day = "Sunday";
break;
case 1:
day = "Monday";
break;
case 2:
day = "Tuesday";
break;
case 3:
day = "Wednesday";
break;
case 4:
day = "Thursday";
break;
case 5:
day = "Friday";
break;
case 6:
day = "Saturday";
}
gs.print(day);
Next Steps:
If we have addressed your concerns, please click "Accept Solution" to close the ticket.
P.S.: In case there is a follow up query, kindly DO NOT reject the solution, feel free to post a comment and I will be happy to help you shortly.
***
If you need immediate assistance, please use one of the contact numbers from our support contact page:
http://www.servicenow.com/support/contact-support.html
You will then be able to enter your Case or Change number over the phone to have your call routed to the Support Team.