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

Sujatha V M
Kilo Patron
Kilo Patron

@charan_1 Can you try the below, 

 

current.document = producer.test.getDisplayValue();

 

 Note: You can add logs and check if the value is being retrieved at first place. 

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

Hi @Sujatha V M 

I have tried the both method but it was setting the value in the field

Thanks,

Charan

@charan_1  Why don't you try to map the field as below, 

 

SujathaVM_0-1713190576451.png

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

@Sujatha V M 

The issue why we not map the field is the record producer we create is on different table but on one particular condition it has to route to the different table the case has been creating on different table every thing was good only the issue i face is the value is not mapping for the field

 

Thanks,

Charan