Built-in Validation Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2017 03:04 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2017 06:14 AM
What kind of script is this? Business rule or client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2017 11:42 AM
Hello Robert
this iv tried using in RITM workflow
iv tried in If and wait , both dint work
not sure where iam going wrong ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2017 12:29 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2017 12:32 PM
Yes robert
will try that , addinfomessage was just put in this thread , was not used in the workflow
Thx for the update
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2017 12:41 PM
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.