Record producer variable is not reflecting as per the backend field even it is mapped with record producer.

Ulka1
Tera Contributor

Hi,

 

I have created one choice field with two values and it is mapped with the record producer by creating a variable ( I tick the 'Map to Field' checkbox and select the correct one same field). AS per the  client requirement I have made backend choice field read only and its choice value is displaying depending upon one condition. This field working finely at backend but it should not work (same as backend) on service portal ie record producer.

 

Could any one suggest what should I have to do.

12 REPLIES 12

Prashant16
Kilo Guru

Hi Ulka,

 

If you want to map through script in record producer you can use the script field already available in the record producer form and map as given below:

find_real_file.png

'current' is for the current record of target table and 'producer' keyword is for the data you are putting in the form from portal. 

Please mark my answer correct/helpful if it resolves your issue

Thanks,

Prashant

Ulka1
Tera Contributor

Hi Prashant,

 

Please could you explain what will execute for the else part in your code.

In your solution code, please give details about what is the portal view field and which is backend field.

Hi Ulka,

Its not compulsory to use 'if else'. If you have some conditions to define then you can use it. And, the field with 'producer'(producer.requestor) keyword is the portal field. And the field with 'current' is the field of backend that will take the value of portal and put it in backend. Mark correct/helpful if it resolves your issue.

Ulka1
Tera Contributor

I tried it but not working Prashant.

Thanks,

Ulka

You may check the below post. I guess there is some small mistake in your code: https://community.servicenow.com/community?id=community_question&sys_id=fbcc00e7dbb8bbc823f4a345ca96... You can send me screenshot of your code so that I can guide you. 🙂 Thanks, Prashant