
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2019 08:19 AM
Where I attempt to create a variable set for similar items, I notice the "map to" option disappears but cannot locate a UI policy. Can I not use this feature where using as a variable set? Is it possible to identify and inactivate the UI policy?
Solved! Go to Solution.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2019 08:20 AM
Hi there,
That is correct. This is also kinda logical because Variable Sets could be used on multiple Catalog Items, Record Producers, Record Producers on different tables, etc..
You could workaround this and use simulate map2field by using the Script field in Record Producers.
For example:
current.assigned_to = producer.requested_for;
If you are applying that piece of script exactly on multiple record producers, obviously you could choose to have this in a Script Include, and just call the script include from the script field in the record producers.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2019 08:20 AM
Hi there,
That is correct. This is also kinda logical because Variable Sets could be used on multiple Catalog Items, Record Producers, Record Producers on different tables, etc..
You could workaround this and use simulate map2field by using the Script field in Record Producers.
For example:
current.assigned_to = producer.requested_for;
If you are applying that piece of script exactly on multiple record producers, obviously you could choose to have this in a Script Include, and just call the script include from the script field in the record producers.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2021 04:55 AM
Might be a bit of a late response for you, but if you create the variable as normal, then re-assign it to a set, it will keep it's field mapping.
I use a formatter in my Service Portal to give a nice section type design to some forms, and this is how I got around it.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2021 05:36 AM
Thanks Daniel You Answer is Helpful 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2021 06:02 AM
No problem. I also actually just recently saw you can go to the variables list, and in the list layout put in variable set and catalog item. So now I can manipulate multiple variables in one go and in bulk.
As previously mentioned it works OOB the way it does because generally variable sets should be variables that are generic, that you can reuse across many different catalog items or requests.
For me it's a bit more specific as we have a specific UI development that utilises sets, so I do it this way 🙂