Date/Time Field condition in UI Policy

anwie
Kilo Expert

Dear Community,

now I am here for my first question in this community (after finding until now much help in other threads).

I have a custom Date/Time field ("Waiting start date") on incindent table, which i want to check for overdue, when loading the incident form and then give out a message.

Tried it with a UI Policy with "Waiting start date at or before Current minute", but also after hours overdue the "Execute if true" did not execute. For "Debug" i have set Reverse and then i gave out the opposite message (see screenshots). This message is displayed every time (overdue or not).

What could be the problem? Or what could be an alternative solution?
(I know Date/Time handling on Client Side is not easy with Time Zones and different User Formats for the date).

1 ACCEPTED SOLUTION

The SN Nerd
Giga Sage
Giga Sage

Is the 'Waiting start date' field visible on the form?

Just as an FYI, you might want to implement this via On Display Business Rules instead.

This will be faster than using Client side code.

Same condition, just create two (one for the inverse) using gs.addInfoMessage() instead.


ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

View solution in original post

9 REPLIES 9

anwie
Kilo Expert

Thank you for this information. Can you please provide the link to this Support Case? So i can track it, to see, when the bug will be fixed.

Hi there,

INT4109988 > PRB1320823 > KB0727654.

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

anwie
Kilo Expert

Hi Mark,

my colleague searched it with your different identifiers in the HI Portal., but could not find it. Can you please send the direct link?

Kind regards,
Anke

 

 

Hi there,

https://hi.service-now.com/hisp?id=form&table=incident&sys_id=aea266b8db84b3805ed4a851ca9619c6
https://hi.service-now.com/hisp?id=form&sys_id=a6324014dbae2b40fa192183ca961934

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

My colleague could not find it with the links. But thank you very much for you information about the bug. I will check the next realeases just for interest.

The tip from Paul Morris with the Display Business Rule also solved my problem.

Thank you and kind regards,
Anke