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.

Disable "Add All" button when linking incidents to problems

Gareth Davies1
Mega Guru

I'm looking at the "Add" UI action for incident that's used when adding incidents to a problem record. I'm trying to hide the "Add All" button if there are >100 incidents in the list. Allowing someone to link 4.5 million incidents to a problem with one click is NOT something that's going to happen!

Screenshot 2023-02-06 142036.png

However, the UI action calls a function called getURL in the BulkAddIncidents script include which sends the UI action off to open incident_add_records.do as an iframe in a modal. Happy days, I think.

 

Except incident_add_records.do is not the endpoint of a UI page, it's not a processor, I have absolutely no idea what it is. Does anyone have any idea where the definition of that page lives or how I can remove that button under specific conditions? 

5 REPLIES 5

R_ana
Tera Guru

Hi, were you able to find a solution for this?