
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2019 10:38 PM
Map to Field column on the variable set (for Record Producer) variable disappears.
Whereas on my PDI it is not. What could be the reason.
Found this Link but why it is showing on PDI
https://hi.service-now.com/kb_view.do?sysparm_article=KB0610341
Thanks
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2019 10:50 PM
Hi,
The map to field have a client script written (OOB script) which hides the field when we use the variable inside a variable set.
Please follow the below link for your instance to access the script:
https://ur_instance_id.service-now.com/sys_script_client.do?sys_id=5f503cd7eb330100d4360c505206fe94&sysparm_record_target=sys_script_client&sysparm_record_row=6&sysparm_record_rows=24&sysparm_record_list=sys_class_name%3Dsys_script_client%5EscriptCONTAINSmap%5EORDERBYDESCsys_updated_on
Please mark the answer as correct if it suffice your query.
Thanks.
Soumita.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2019 10:45 PM
yes, it is by design, what alternative you can use to use PRODUCER. to access the variable and map to field of CURRENT record being created in record producer script
example could be
current.caller_id = producer.user_name; // ( caller_id is field on incident target table, user_name is variable name of the variable set containing caller info )
Note: Please mark reply as correct if it has answered your question

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2020 11:00 AM
Thank goodness!! This worked

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2019 10:46 PM
Hi there,
The field disappears due to UI Policy. And is there because the map 2 field does not work for Variables within Variable Sets. I've tested this before (Pre-Madrid).
Though, you could make a workaround for this. What we have done, we scripted the map 2 field into the script field of the Record Producers. Because the script was most of the times the same, we actually put this in a script include (for efficiency / maintainability), and only call the script include thru the script field in the Record Producers that contain that Variable Set.
Maybe this is an idea for you?
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
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
09-23-2020 11:11 AM
I am not that familiar with script includes. How would I create and call the following within a RP?
current.u_reference_1 = producer.u_reference_1;
current.requested_due_by = producer.requested_due_date;
current.u_glide_list_3 = producer.additional_parties;