The CreatorCon Call for Content is officially open! Get started here.

Built-in Validation Script

S M
Tera Contributor

Hello Guys,

I would like to use the ServiceNow existing Validation Script, in order to validate the record producer field. I think the best way to use it is with Client Script but I have no idea how do I supposed to do that.
Any information about that can help a lot.

Best wishes,

Shay

10 REPLIES 10

What kind of script is this?   Business rule or client script?


Hello Robert
this   iv tried using in RITM workflow
iv tried in If and wait   , both dint work


not sure where iam going wrong ..


You need to add some logging statements the whole way through to ensure the values are what you are expecting before you enter the IF statement.
Also, why are you using addInfoMessage instead of gs.log?


Yes robert
will try that , addinfomessage was just put in this thread , was not used in the workflow


Thx for the update


Its not the topic of the thread, but I would strongly advised against interfering with the OOB sc_task & RITM parent behavior.   The system populates the RITM in the sc_task Parent field.   Who knows what current or future functions will be dependent on that.   If you want sc_tasks to relate to changes, I'd suggest ...


- implementing & utilizing the Task Relationships plugin.


- creating separate Change Tasks.