Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2025 03:21 AM - edited 07-30-2025 06:19 AM
I have created one "Before "Business Rule-
var AssignmentGroupM = false;
var currentUser = gs.getUser();
AssignmentGroupM = currentUser.isMemberOf(current.assignment_group.getDisplayValue());
if (!AssignmentGroupM) {
gs.addErrorMessage('Change Can't be cancel. ');
current.setAbortAction(true);
} else {
current.work_notes = 'Change cancelled.';
} which is required as per requirement.
The thing is I have to cancel the Change request by a "Flow Designer" which is preventing by this Business. I want the Business Rule to be active as well. How I can bypass the Business Rule and cancel the change request. Is there any workaround or any suggestion?
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2025 03:50 AM
add this in the condition of the BR
gs.getSession().isInteractive()
If my response helped please mark it correct and close the thread so that it benefits future readers.
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2025 05:22 AM - edited 08-01-2025 02:07 AM
Thanks