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.

which variable type can i use for multi selection in recordproducer .

MansoorM
Tera Contributor

I have created an "Update Change" record producer that allows users to manage Configuration Items (CIs) on the Change Request form. Users should be able to:

  1. Fetch and view existing CIs already associated with the Change Request (from the Affected CI related list).
  2. Select multiple CIs from this list using a List Collector or similar UI component.
  3. Delete selected CIs in bulk (e.g., 200–300 records).
  4. Add new CIs in bulk as well.

However, I'm facing performance issues during form submission, especially when handling large volumes of CIs. I need a scalable and efficient solution to support this functionality.




MansoorM_0-1760102221074.png

 

5 REPLIES 5

M Iftikhar
Tera Sage

Hi @MansoorM,

 

Use Variable Type: List Collector

MIftikhar_0-1760104962828.png

 

If my response helped, please mark it as the accepted solution so others can benefit as well.

 

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.

i tried your Reference qualifier but do data displaying in list collector

MansoorM_0-1760103917209.png

MansoorM_1-1760103939296.png

 

Reference qualifier:

javascript:'task.sys_class_name=change_request^task='+current.variables.change_request;
Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.

@MansoorM , 

I believe you need to update variable attribute to ref_qual_elements=<dependent variable name>

Check this KB article for reference.

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0746780 

 

MIftikhar_0-1760513272054.png

 

MIftikhar_1-1760513330766.png

 

Also check that the change request you are selecting must include the associated affected CIs. 

MIftikhar_2-1760513540583.png

 

 

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.