Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

declarative ui action related issue

sandeepk7398707
Kilo Explorer

Hi Team, I'm working on a requirement in Change Management and facing some challenges with a Declarative Action/UI Action on the Affected CIs related list.
I have created a Declarative Action on the task_ci (Affected CIs) related list. Multiple row selection is enabled and the action appears correctly.

Requirement
On the Affected CIs related list of a Change Request: When user selects multiple CIs from the list and clicks Create Task, system should create one Implementation Change Task and all selected CIs should be automatically associated with that newly created task. User should be able to create multiple implementation tasks (Wave ID - 1, Wave ID - 2, etc.) by selecting different groups of CIs. CI should not be assigned to more than one Implementation Task within the same Change Request and maximum selected CIs per task should be limited (for example: 50).

Issue 1: Unable to Get Selected Row Count (for min and max count I'm unable to retrieve the complete collection of selected rows.) 
Issue 2: Action Executes Once Per Selected CI (When 3 CIs are selected and the user clicks Create Task, the action executes 3 times and 3 tasks are created instead of a single task.

Questions
- How can I obtain the complete list of selected CI sys_ids from a Workspace Related List Declarative Action? - - Is there a supported pattern for bulk processing selected rows instead of per-row execution?

0 REPLIES 0