Sys id is showing for a particular field after submitting the record producer form

Poomathy09
Tera Contributor

Created a field Target audience with list type in table. 

Poomathy09_0-1704433594343.png

 

For that field created choices 

Poomathy09_1-1704433594898.png

 

Then in record producer, mapped that field in variable using list collector type

Poomathy09_2-1704433595199.png

 

Under type specification gave the reference qualifier condition like this

Poomathy09_3-1704433595209.png

 

After when submitting a request in service portal , for the target audience field it's showing sys id instead of the option what I select.

Poomathy09_4-1704433595062.png

 

 

2 REPLIES 2

Amit Verma
Kilo Patron
Kilo Patron

Hi @Poomathy09 

 

Please follow below links and check if helps :

https://www.servicenow.com/community/developer-forum/why-is-my-list-collector-showing-the-sysid-vs-t...

https://www.servicenow.com/community/itsm-forum/servicenow-list-collector-sysid-to-displayname-on-ca...

 

Thanks & Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.

Addy22
Tera Guru

Hi ,

 

Instead of selecting Map to field checkbox. You can write this script field of Record producer :

var selectedChoice = producer.[your_variableName].getDisplayValue();
current.target_audience=selectedChoice;
 
I have tried this and it is working fine for me