State value changes in a list view. How does that apply to RITM's?

Russell Abbott
Kilo Sage

I'm can't find an answer to this question.

If I have a UI action on a RITM, lets call it 'Cancel', it sets the RITM state value to cancelled, and has some other script commands that are not OOTB.

If I find that RITM in a list view and change the State value to 'Cancelled', does it run the scripts as though I clicked the 'Cancel' UI Action?

If this is NOT the case, then should it be advised to disable the ability to change the State value in a list view?

 

Thanks!

1 ACCEPTED SOLUTION

sumanta pal
Kilo Guru


No, changing the state value directly from the list view or form does not trigger the UI Action script. UI Actions are triggered by specific user interactions such as clicking a button or link. Here are the key points:

- UI Actions in ServiceNow are scripts that are executed when a user performs a certain operation, like clicking a button or link. They are not triggered by simply changing a field value.
- If you have a UI Action called 'Cancel' that performs certain operations in addition to changing the state of a RITM to 'Cancelled', these operations will not be performed if you simply change the state value from a list view or form.
- If it's important that the additional operations in the 'Cancel' UI Action are always performed when a RITM is cancelled, you should consider disabling the ability to change the state value directly from the list view or form. This can be done by modifying the list layout or form design.
- Alternatively, you could consider using a Business Rule or Workflow that triggers when the state value is changed to 'Cancelled'. This would ensure that the necessary operations are always performed, regardless of how the state value is changed.

For asking ServiceNow-related questions try this :

For a better and more optimistic result, please visit this website. It uses a Chat Generative Pre-Trained Transformer ( GPT ) technology for solving ServiceNow-related issues.

Please visit : https://nowkb.com/home
Our Website :https://nowkb.com/home
Link - https://nowgpt.ai/

View solution in original post

3 REPLIES 3

Maik Skoddow
Tera Patron
Tera Patron

Hi @Russell Abbott 

yes, absolutely! It is not recommended to change state values in a list view as some business logic might be bypassed, thus bringing the RITM (or any other records) out-of-sync with the underlying workflow or flow. 

Maik

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Russell Abbott 

 

If possible, please avoid the state/ stage change from list view and mainly on RITM. As RITM has task attached and closing/ updating stage/ state from list view may impact the business logic. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

sumanta pal
Kilo Guru


No, changing the state value directly from the list view or form does not trigger the UI Action script. UI Actions are triggered by specific user interactions such as clicking a button or link. Here are the key points:

- UI Actions in ServiceNow are scripts that are executed when a user performs a certain operation, like clicking a button or link. They are not triggered by simply changing a field value.
- If you have a UI Action called 'Cancel' that performs certain operations in addition to changing the state of a RITM to 'Cancelled', these operations will not be performed if you simply change the state value from a list view or form.
- If it's important that the additional operations in the 'Cancel' UI Action are always performed when a RITM is cancelled, you should consider disabling the ability to change the state value directly from the list view or form. This can be done by modifying the list layout or form design.
- Alternatively, you could consider using a Business Rule or Workflow that triggers when the state value is changed to 'Cancelled'. This would ensure that the necessary operations are always performed, regardless of how the state value is changed.

For asking ServiceNow-related questions try this :

For a better and more optimistic result, please visit this website. It uses a Chat Generative Pre-Trained Transformer ( GPT ) technology for solving ServiceNow-related issues.

Please visit : https://nowkb.com/home
Our Website :https://nowkb.com/home
Link - https://nowgpt.ai/