Map to field on Variable Set

SumanthMora
Mega Guru

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

 

 

1 ACCEPTED SOLUTION

Soumita3
Tera Expert

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.

View solution in original post

10 REPLIES 10

Deepak Ingale1
Mega Sage

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

 

https://docs.servicenow.com/bundle/london-it-service-management/page/product/service-catalog-managem...

 

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

Thank goodness!! This worked

Mark Roethof
Tera Patron
Tera Patron

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

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn

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;