does current work in ui action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2019 05:18 PM
does current work in ui action, what API i should use instead of current so that i get the same functionality
- Labels:
-
Personal Developer Instance

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2019 11:34 AM
Yes, current will work in UI action.
You can use Current in script and condition fields of UI action.
Refer to existing OOTB UI actions where current is used for better understanding.
Ref: https://docs.servicenow.com/bundle/london-platform-administration/page/administer/list-administration/task/t_EditingAUIAction.html#t_EditingAUIAction
Kindly mark my answer as correct and helpful if this answers your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2020 04:09 PM
I just tried it and current object was not available in UI action. So unless you have a client interaction as a part of this UI action, please use business rule and not UI action. Its much easier, and gives you flexibility on when to run it.
In case you need client interaction and server script both as a part of UI action: Please refer to the following link:
https://www.servicenowguru.com/system-ui/ui-actions-system-ui/client-server-code-ui-action/
Please mark my answer helpful if it helped you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2020 07:42 PM
Hello,
"current" is only available at server-side.
For client-side access to the current record, use g_form.
Please mark reply as Correct/ Helpful, if applicable. Thanks!
Warm Regards,
Prithviraj Howal
SNOW Developer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2020 07:59 PM
I tried it in UI action today without client checkbox ticked and current was not available.