UI action should update 2 times
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 08:31 PM
Hello all,
we have UI action(propose resolution) on case form. When we click on it, case state will go to "resolved"
now my requirement is when we click on ui-action, intially state should go to "open" after 2/3 seconds state should change to resolved.
exisiting code in UI action:
Why this:
We have an integration b/w 2 snow instances. when case is created, incident is created in other instan(with state mapping).
Case Incident
Open inprogress
awaiting info onhold
resolved resolved
closed closed
when case is in awaiting info, there is posiblity to resolve the case. howevere, it is not possible to move the state from onhold to resolved on incident form.
So we thought of changing the UI action like this. Please suggest.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 08:38 PM
Hi, I would not consider this to be a best practice approach.
A better solution would be to check the state of the parent\driving record and set the available UI actions according to your state flow. IE if your Incident is not in a suitable state to allow state X to be chosen in case, then use a client script to hide it/prevent it from being selectable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 08:43 PM
I won't recommend this.
Why not have a flow configured to trigger when record is updated to Open? flow runs async so it will run after sometime
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