setting the value of a field from the variable value of a record producer

charan_1
Tera Contributor

Hi all,

I was having a record producer where there was variable called test i need to get the value of the variable of test and these has to set to the field i.e., document and field type is choice. The value of the variable and the value of the field are same but it was not setting. The below is the record producer script. Can anyone help me how to resolve this issue.

 

current.document=producer.test

 

 

11 REPLIES 11

Community Alums
Not applicable

Hi @charan_1 ,

I tried your problem in my PDI and it works for me, please refer below steps 

1. Selected Choice 1 in Test variable

SarthakKashya2_0-1713205102493.png

SarthakKashya2_1-1713205159047.png

I added 2 choices in test variable ch_one and ch_two 

 

2. I created a field called Test in incident form to map the values, type Choice

SarthakKashya2_2-1713205272164.png

SarthakKashya2_3-1713205311461.png

 

I gave the same backend name here like I give in record producer, you also need to give the same backend name.

 

Here's the result : 

SarthakKashya2_4-1713205365291.png

 

 

SarthakKashya2_6-1713205389668.png

 

Please mark my answer correct and helpful if this works for you

 

Thanks and Regards 

Sarthak

 

 

@Community Alums 

Actually it was two different tables in record producer for suppose as per your example it was not incident it was change table but only at a particular condition it need to create a case on change table