Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Scripting question: Trend by Thursday UI Policy

Andrew Meza
Tera Expert

Hello, I want to create an error message for a question. The question (date) variable is: what_is_the_expected_date_that_the_refresh_must_be_completed_by

 

The error message should say "Load release across partitions can only be completed on weekends." when users select thursday as a date AND say yes to variable load_release_across_partition. 

 

This is a known problem with SN PRB1694977 as for some reason Thursdays don't work in the UI builder. Support told me ill need to script this one out. I am not too familiar with scripting, is someone able to help me with this?

 

If more background is needed please see my other post: Re: Can someone explain why trend by Thursday does... - Page 2 - ServiceNow Community

 
1 ACCEPTED SOLUTION

Hi @Andrew Meza ,

Sharing the update set xml to you. 

Catalog name is Weekday Catalog item.


After importing just hit the url, 

/esc?id=sc_cat_item&sys_id=207ba938c3cc521017aeb61ed40131ee


I believe this will help you.

Regards,
Najmuddin.

View solution in original post

22 REPLIES 22

unfortunately still not working for me.

Hi @Andrew Meza ,

Sharing the update set xml to you. 

Catalog name is Weekday Catalog item.


After importing just hit the url, 

/esc?id=sc_cat_item&sys_id=207ba938c3cc521017aeb61ed40131ee


I believe this will help you.

Regards,
Najmuddin.

I apologize, let me try this didnt see this reply.

ill get back soon.

Thank you very much it is coming through. Only this is, it does not let me select Mondays, and Tuesdays. Wed-Fri work great. Is there a small tweak in the code to include mon & tues?