Create Problem OOB UI Action on incident table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 06:19 AM
Hi,
I have the OOB UI Action 'Create Problem' on incident table (sys_id=2f43c471c0a8006400a07440e49924c2)
I want to give the user an option to create problem even though the incident state = closed.
The problem is that when the user click 'create problem' when the incident is closed, it changes the status of the incident to 'on hold' but I want to that the incident will stay as closed if the state was closed. How can I achieve that in Service Operation Workspace.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 06:29 AM
So did you add the code in workspace client script?
where are you stuck?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 06:51 AM
@Ankur Bawiskar i tried to add the same code under the SOW client script but its not working. it only works in the regular Backend. can you please help me with the script for the SOW?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 06:53 AM
you need to add logic in workspace client script section in UI action
you can use GlideAjax and create client callable script include and use code present in UI action. Remember you need to enhance it
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 07:02 AM
but why the same script does not work in SOW but works in BE? @Ankur Bawiskar