Disable "Add All" button when linking incidents to problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-06-2023 06:26 AM
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!
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2023 02:37 PM
Any solution on this?? I am also facing same issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2023 03:40 PM
Hi, I might have found what you are looking for.
Please follow the steps:
> Under "Workspace Experience" > "Action & Components" > Click on "Related List Actions" to go to the table sys_declarative_action_assignment
> Filter by:
Action Label: Add
Table: incident
> Open the record with the description "Add Incidents to Problem Record" (7a5f33ccc3621010e8a0a6bec840dd6c)
> On the "Related Links", click on advanced view
> Check out on the "Conditions tab" for Script Conditions
Add All button on the incident.problem_id Related list
Hope this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2023 01:05 AM
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 and I want that no one should be able to click on 'Add All' button, want to make it un-clickable or hide this button.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2024 02:33 PM
Thanks for finding this, but this is the 'Add' button on the related list. What we're looking for is the 'Add All (###)' button on the modal that this opens. I think that code might be one of those things that lives on the backend, and isn't accessible in the instance.