Create change request declarative action not setting parent as incident

Debasis Pati
Tera Guru

In serice operation workspace for incident there is a declarative action called 

"Create change request" when clicked on it it opens the change rfc page to select which type of change request i want to create either normal or emergency once i select anything and create a change request its parent should get filled as the incident number but it is not doing that ideally this should do right as we are creating the change from the incident.

Declarative action link
https://yourinstance.service-now.com/sys_declarative_action_assignment.do?sys_id=20aec8ab23323010148...

https://yourinstance.service-now.com/sys_ux_form_action.do?sys_id=64639c7a233230101488dc1756bf65f0&s...

@Ankur Bawiskar can you let me know what can be done to fix this issue?




1 ACCEPTED SOLUTION

@Debasis Pati 

that's OOTB behavior

g_form object only works if the field is present in that view

You can do this

-> let it be on form view i.e. workspace

-> populate it and then hide it

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

10 REPLIES 10

Hi @Debasis Pati 

Since you are using a client script with g_form, it is expected behavior. It would be better to keep this on the form level so the user can easily see whether this case has any parent or not, instead of having to go to the list view every time.

*************************************************************************************************************
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/dratulgrover [ Connect for 1-1 Session]

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