How to restrict state to move further if approval is pending
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2023 02:19 AM
Hi,
I have a requirement where I need to generate approvals if state of problem record moves from analysis to fix. Once approval is done then only it should move to fix state. I have created workflow with approval user activity and set the field but only approvers are generated and that too after state moves to fix and I have tried in flow designer facing same issue.
Can someone please help me with it.
Thanks in advance
Priyanka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2023 02:30 AM
why not do this?
1) create field level WRITE ACL for state field and block the edit based on approval is pending or not
OR
2) use onLoad client script+ Display business rule and check if approval is pending then make the state field as read-only
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
‎07-25-2023 02:38 AM
Thanks @Ankur Bawiskar for your response
In oob problem table we have ui action to change the state value and in oob if fix is clicked then it shows pop up to fill mandatory fields. Thats why started with flow designer and workflow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2023 02:50 AM
then why to change OOB behavior?
Please discuss this with your customer.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2023 03:03 AM
No not changing oob completely but trying to add approvals before moving it to next state. Like how currently in change table once we click on ui action button to move to next state.