- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2024 11:45 AM
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)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2024 06:21 PM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-29-2024 07:55 PM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2024 05:48 PM
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;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2024 06:38 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2024 06:54 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2024 06:51 PM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader