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.

In change request record, in related lists, in affected CIs, there is a button called "Add", but this button exisits only when the change record is in "New" State , when it moves to Assess/Authorsie/schedule state, this button disappers, how to add t

Madhurya
Kilo Contributor

Hi , 

In change request record, in related lists, in affected CIs, there is a button called "Add", but this button exists only when the change record is in "New" State , when it moves to Assess/Authorise/schedule state, this button disappers, how to add that button again in all assess/authorise/schedule states.

 

In New state , below screenshot. 

 

In Assess/Authorise/Schedule, the button disappeared, how to add that "Add" Button again here?

find_real_file.png

1 ACCEPTED SOLUTION

Pavankumar_1
Mega Patron

Hi Madhurya,

1. As shown in below screen shot you can find the Add UI action on Affected CIs related list of Change request.

 

find_real_file.png

 

2. In order to show the Add button on other states of Change Request add the below shown condition on screenshot(||parent.state=='-3') 

In below I have added Authorize state choice value is -3 you can add your state values.

 

find_real_file.png

 

Hope it helps!!

Please Mark Correct/helpful, if applicable, Thanks!! 

 

Regards

Pavankumar

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar

View solution in original post

5 REPLIES 5

Murthy Ch
Giga Sage

Hi @Madhurya 

I believe the Add button is a UI action on Affected CI's table

I think you need to modify the UI action codition.

UI action link: https://<instancename>.service-now.com/nav_to.do?uri=sys_ui_action.do?sys_id=77688cfe6f35f100e5f2b3312e3ee4e6

 

Thanks,

Murthy

Thanks,
Murthy

Hi Madhurya,

That is happening because of OOB before insert business rule,

I'm not sure whether we can modify this or not

Link: https://<instancename>.service-now.com/nav_to.do?uri=sys_script.do?sys_id=9f427066b7ab23000999e4f6ee...

 

Thanks,

Murthy

Thanks,
Murthy

Pavankumar_1
Mega Patron

Hi Madhurya,

1. As shown in below screen shot you can find the Add UI action on Affected CIs related list of Change request.

 

find_real_file.png

 

2. In order to show the Add button on other states of Change Request add the below shown condition on screenshot(||parent.state=='-3') 

In below I have added Authorize state choice value is -3 you can add your state values.

 

find_real_file.png

 

Hope it helps!!

Please Mark Correct/helpful, if applicable, Thanks!! 

 

Regards

Pavankumar

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar

Thankyou @Pavan ! this worked to display the add button, but when I actually add a new CI through the add button, that shows me an error and not allowing me to add the CI, the below screenshot is the error. 

Where can I modify the code to allow the user to add CI's when they click on the "Add button"

find_real_file.png