UI Action that save and redirect in SOW
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2024 02:56 AM
Hi,
how can i create a ui action in SOW that saves the changes on the record and redirect to SOW home page
2 REPLIES 2
Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2024 03:43 AM
Hi @Alon Grod ,
You can use Declarative action for your use case:
Use the code mentioned in this :https://www.servicenow.com/community/developer-forum/save-and-redirect-ui-action/m-p/1541042
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2024 05:28 AM
hey @Alon Grod
assuming you will use first in client side , so use g_form.save() and for redirect use
action.setRedirectURL(current) . Here current is object of the current record.
Please accept the solution /mark this response as correct or helpful if it assisted you with your question.
Regards,
Animesh