Can't skip Awaiting Acceptance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 08:34 AM
In HRSD, I need to have the ability to skip 'Awaiting Acceptance' when Guest is the opened_for. I cannot use the setting at the Service level to control this
I've tried attacking this multiple ways and am getting nowhere.
Everything I have read said these two BRs are driving this:
- Add User Acceptance State
- Trigger Awaiting Acceptance Workflow
I have tried modifying both, running my own BR before them, in some cases using setWorkflow('false') to try to prevent anything else from triggering and regardless what I do, the State gets set back to 'Awaiting Acceptance'.
The only other thing I haven't tried is modifying the 'Close complete' action itself, but to do so I have to familiarize myself with this nightmare of a UI Action replacement (I also don't think that's the underlying issue here).
- Labels:
-
Human Resources Service Delivery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 10:27 AM - edited 03-27-2024 01:16 PM
Well I think part of the issue is that setWorkflow(false) doesn't work scoped, so that's fun.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 01:21 PM
I think I figured this out, based on this post here: https://www.servicenow.com/community/hrsd-forum/state-changes-to-awaiting-acceptance-instead-of-clos...
I modified my BR to:
- run before
- Order of like -1000000 (make sure it always runs first...)
- Instead of just updating the State, also set Skip Automatic User Acceptance State to true.
The part in bold for emphasis because I think that was the main piece I was missing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Thank you very much for posting this solution, it helped!