How to prevent the state of a case from reverting to "New" after being set to "Open"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2025 09:50 PM
Hello Community,
When the request is created from the case in workspace/native UI, then the state of the case should not move back to New. How to prevent this.
Requirement : when state of existing request is moved to work in progress then state of case is moved from new to open ( functionality is already there). When one more request is created for the same case then state of case is moving back to new. Ideally it should be in the open only How to restrict it
There is already one BEFORE BR on sc_request for state sync.
Tried this way
if (current.state == 1 && b2bCase.state == 10) {
current.setAbortAction(true);
return;
}
but for the second time request is not getting created.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2025 11:22 PM
I doubt then it can be achieved.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2025 11:26 PM
@Ankur Bawiskar can we check the request created time difference & then set the state
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2025 04:13 AM