Multirow variable set variables mapping not working

Gillerla Rajesh
Tera Contributor

Hi @Ankur Bawiskar ,

 

i need ur help here,

 

i have muti row variable set, i need to map muti row variables to record producer , i tried this code it's not working can u help me  on this.

 

GillerlaRajesh_0-1722003036624.png

 

this is the script i given in record producer

GillerlaRajesh_1-1722003106871.png

 

after i submit record it will taking some garbage value

 

GillerlaRajesh_2-1722003294510.png

and also i need to add two rows and submit form means in this case i need to insert two rows.

GillerlaRajesh_3-1722003463184.png

 

 

 

Regards

Rajesh Gillerla.

2 REPLIES 2

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Even if that code would work, functionality it wouldn't. Because its a Multi Row Variable Set. You can add 1 row, you can add multiple ones. Though its against 1 record. So what should happen if a user adds multiple records? Where should the variable values land? It cant just land in 1 record in the fields themselves, as they only accept one value.

 

So what is it exactly you are after?

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Mark Roethof
Tera Patron
Tera Patron

Or should multiple records be created when you have multiple entires in the multi row variable set instead? Then this can help you, contains example code:

- 2021-05-20 - Article - Creating records or a summary from Multi-Row Variable Set (2)

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn