Multiple column values for a single variable should create multiple request using single submission
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2023 06:05 PM
Hii,
I have below requirement:
we have a record producer with following variables:
assigned to
Ac number
num of Accounts
we have a dedicated table which stores the records submitted through record producer
table : Account table
our scenario was as below
the user can able to add multiple Ac numbers on the record producer . When user adds multiple account number. Then in our table that many separate request need to be created.
for below requirement, I have started my work
created multi row variable set and try to achieve through record producer script.
if any one have any ideas please let know.
thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2023 07:41 PM - edited 08-11-2023 07:44 PM
What does your script look like? You should be looping through your field and creating a new request for each new AC number, first build an array of acnumbers then do your for loop
for (var i =0; i < arr.length; i++){
Var gr =new GlideRecord(‘yourTable’)
Gr.initialize()
…
…
…
gr.insert()
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2023 09:10 AM
i didnot understand your script... could you give me some more details regarding your script please...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2023 09:23 AM
It’s an example of a for loop, you need to create an array with your ac numbers and then loop through
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2023 09:45 AM
i was new to catalog scripting could you please share some details?