Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

UI Action to create change from incident

Nikita50
Tera Expert

Hi All,

I have a UI Action to create change from incident.

By default it always creates a Normal change.

How I can provide ability to user to create Normal or Emergency change as per user decision.

4 REPLIES 4

sanketmohit
Tera Contributor

in the UI action script section add chg_model ="sys id of the standard or emergency change"

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Nikita50 

 

You can check OOTB code for this:

 

AGLearnNGrow_0-1734953033410.png

 

*************************************************************************************************************
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]

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

Nilesh Wahule
Kilo Sage

Hi @Nikita50 ,

 

OOB on incindent table I could see we have a different UI actions altogether for mentioned purpose based on certain conditions they will appear. these conditions you can verify by opening each individual record.

NileshWahule_0-1734953008810.png

 

 

However, if you have a custom UI action and you want mentioned functionality then you can use GlideModal API and achieve the same.

---------------------------------------------------------------------------------------------------

Please mark my answer as helpful/correct if it resolves your query.

Thanks,
Nilesh Wahule

---------------------------------------------------------------------------------------------------



 

 

Hi @Nikita50 ,

Hope you are doing well !!

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

---------------------------------------------------------------------------------------------------

Please mark my answer as helpful/correct if it resolves your query.

Thanks,
Nilesh Wahule

---------------------------------------------------------------------------------------------------