Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Where can I find docs for "sys_action"????

DrewW
Mega Sage

I am trying to do some client scripting, specificly making some fields manditory when you close an Incident. I found a sample script in the Wiki but it does not work. The reason it does not work is because sys_action.value returns bbddb6bbc0a81823adf328cbbba or something like it and the script is looking for "incident_close". So I am looking for documentation of what sys_action is supposed to do, it properties and any methods it may have.

The Wiki is very lacking in this area.

7 REPLIES 7

Ivan Martez
ServiceNow Employee

If you want to make fields mandatory on close, you should use a UI Policy. These are much easier than scripting out the same process. Here is the link to the UI Policy wiki article.

http://wiki.service-now.com/index.php?title=Creating_a_UI_Policy


Ok, well that is good to know.

I would still like to see some docs on sys_action, it looks usefull.


sys_action is just the action name of the UI action clicked. If there is no action name specified, then the sys_id of that UI action is used.


And that is part of what I was trying to figuer out. Why I was getting bbddb6bbc0a81823adf328cbbba as a sys_action.value. Which is why I was looking for documentation on it.

Your post does help me resolve my immediate issue, thanks...