State flows for change request for Emergency change
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hello All,
So i want to restrict my emergency change should not move to assess state from new state if there are no related incident or problem or vr record present.
I want to achieve it through state flow is it possible?
If yes can you please guide @Ankur Bawiskar any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hello @Ankur Bawiskar ,
In state flows now we can write script just like business rule also i mentioned wrong in emergency we do not have assess we have authorize state.
also please see the below
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
you should use script include function and then call it in Manual condition string
If that evaluates as true then that UI action will be seen
new ScriptInclude().functionName(current)
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hello @Ankur Bawiskar ,
Yes i do not want this button.
This is what my exact issue is when i created this state flow a ui action is visible on the form.
I do not need this actuyally.
with state flows why a ui action is getting created?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
with State flow UI action is auto-created, it's OOTB behavior
Based on condition it will show/hide
For your requirement you can add manual condition and call script include function and make it return true/false
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hello @Ankur Bawiskar ,
My state transition in change is not manual it is all automated state transition.
I want to put this restriction before it moves to authorize state so thats why instead of manual i am thinking of writing the same in automatic.

