I want to show a set of variables on Record Producer, where the number of sets can be dynamically increased.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2019 01:40 AM
I am working on a Custom Application. Here I have 2 tables, table A and table B. We are using a record producer to create a request in Table A. In the same record producer we have a set of variables containing 10 variables related to Table B. Curretly, in the producer script, we are populating the Table A's created record's sys_id to the record in Table B. Then we have a related list on table A to show the records of Table B.
Now what we require, we want the number of sets of variables to be dynamically shown / be available as per the number selected in a drop down field whose upper limit is 20. in the below screenshot Line Items refer to Table B.
Also the same number of records should be created in the Table B. And visible under related list on Table A.
Therefore, if the user selects 12, there should be 12 sets of variable available on the form and on creation, 12 records should be created in Table B.
I have thought of creating each variable individually and then controlling their visibility using client script. But this requires lots of Insert and stay. I mean for a set of 10 variables, I have to create another 190 or more. And I dont like this solution, it requires a great amount of work. If anyone can provide a more simpler / technical solution. That would be really helpful.
Regards
AirSquire
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2019 03:21 PM
This is a perfect use case for the MRVS (Multi-row variable sets) https://docs.servicenow.com/bundle/london-it-service-management/page/product/service-catalog-managem...
Just set the variable set to a object with the proper number of rows.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2019 08:59 PM
Hi Jace,
I am aware of MRVS but we are on Kingston release and the customer is not planning to upgrade.
Regards
Air

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2019 01:23 PM
You're stuck in a hard place. Either you make and manage hundreds of variables OR you tell them this needs to wait for the London Upgrade.