I need help to take the field from the variable set and put it in the incident table field

Leticiad
Tera Contributor

I have a variable set with an internal name of requested_to, in this variable set there is a variable with the value solicitando_para, this variable set is in most record producers, I need to get the value of the variable solicitando_para from the form and put it in the field u_solicitado_para (field in the incidents table)

2 ACCEPTED SOLUTIONS

@Leticiad 

you can use Async insert BR on incident table

current.setValue('u_solicitado_para') = current.variables.solicitando_para;

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

@Leticiad 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

8 REPLIES 8

Brad Bowman
Kilo Patron
Kilo Patron

If your variable set is a single row, not multi-row, and this scenario you are referring to is an incident record producer, then just use this in the Script:

current.u_solicitado_para = producer.solicitando_para;

 

Unfortunately, it is a variable set that is in 1000 record producers and not in just one, so I cannot use the script, it would have to be something automatic.

In fact, what she wants is automation because the variable of the variable set is in many record producers, and this variable set can be placed in other record producers, it would need to be automatic.

Ankur Bawiskar
Tera Patron
Tera Patron

@Leticiad 

are you using record producer for creating that incident?

if yes then you can use record producer script.

I assume both the variable and field are of same type

current.setValue('u_solicitado_para') = producer.solicitando_para;

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader