- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 11:52 AM
Hi
I have created a UI Action with following script :
I want the data to remain same even if the action is aborted.
Thanking you in advance.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2024 08:38 PM - edited 03-28-2024 08:38 PM
Hi @Apurva Jogal,
Try this and let me know:
function assignToMe() {
if (!gs.getUser().isMemberOf(current.assignment_group.toString())) {
gs.addErrorMessage('You cannot perform this action as you are not a member of Assignment Group ' + current.assignment_group.getDisplayValue());
current.setAbortAction(true);
} else {
current.assigned_to = gs.getUserID();
action.setRedirectURL(current);
}
}
If you found my answer helpful or correct ✔️ in any way, please don't forget to mark it to help future readers! 👍
--
Kind regards,
Marcos Kassak
Solution Consultant 🎯

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2024 08:38 PM - edited 03-28-2024 08:38 PM
Hi @Apurva Jogal,
Try this and let me know:
function assignToMe() {
if (!gs.getUser().isMemberOf(current.assignment_group.toString())) {
gs.addErrorMessage('You cannot perform this action as you are not a member of Assignment Group ' + current.assignment_group.getDisplayValue());
current.setAbortAction(true);
} else {
current.assigned_to = gs.getUserID();
action.setRedirectURL(current);
}
}
If you found my answer helpful or correct ✔️ in any way, please don't forget to mark it to help future readers! 👍
--
Kind regards,
Marcos Kassak
Solution Consultant 🎯
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2024 12:00 AM
Hi thank you for this solution. it works well in service portal however not working in Interceptor (internal portal). Do you know what should I add to be able to works in interceptor as well?