How to restrict state to move further if approval is pending

Priyanka77
Tera Guru

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 

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Priyanka77 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

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.

@Priyanka77 

then why to change OOB behavior?

Please discuss this with your customer.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

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.