mapping variable set variables to record producer

Gillerla Rajesh
Tera Contributor

Hi There,

 

i have variable set (single row) , i need to map variable set variables to record producer (target table), 

I tried this below script but it's not working,  any one help


// current.short_description = producer.Testingforpractice.sdc;
// current.description = producer.Testingforpractice.des;
// current.caller_id = producer.Testingforpractice.name;


current.short_description = producer.sdc;
current.description = producer.des;
current.caller_id = producer.name;
 
 
vice versa help me with multirow variable set also- how to map multi row variable set variable to record producer.

 

Regards,

Rajesh Gillerla.

12 REPLIES 12

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

With a MRVS, this can ofcourse concern multiple records. How should this mapped then to your record producer? I mean what if you have 3 records, how to map 3 values to 1 field? How do you picture this?

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn

Hi @Mark Roethof ,

 

i don't need to map three values to same variables , 3 different variables to 3 different fields.

 

Regards,

Rajesh Gillerla.

So if its 10 different rows in your MRVS, then 10 different fields? Please give an example.

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn

GillerlaRajesh_0-1721757238907.png

i have 3 fields only, i need to mapping to 3 fields to incident table.