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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2009 04:55 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2009 06:29 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2009 07:58 AM
Ok, well that is good to know.
I would still like to see some docs on sys_action, it looks usefull.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2009 08:14 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2009 08:25 AM
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...