How to populate Short Description of Record Producer to Short Description of security Incident ?

Hritik
Tera Expert

Hello Community,

 

I have a simple query which I am not able to deal with.

 

My requirement is to populate the Short Description of Record Producer (which is created on table Security Incident) to Short Description of Security Incident. 

 

I wrote the below line of code (line no 1):

Hritik_0-1700470535645.png

 

 

Still it is not working 😞 

Please help me out here.

 

Thanks in Advance,

Hritik.

1 ACCEPTED SOLUTION

Hii @Hritik If you know the short description of the producer then you can store this value in variable as a static eg var abc = 'xyz';

then you can use the current.short_description = abc;

//Use code in record producer script.

 

View solution in original post

9 REPLIES 9

Anand Kumar P
Giga Patron
Giga Patron

Hi @Hritik ,

You can update your script with below

current.short_description = producer.getDisplayValue("short_description");


Please mark it as solution proposed and helpful if it serves your purpose.

Thanks,

Anand 

Hi @Anand Kumar P 

 

Still not working 😞

Hritik_0-1700470979993.pngHritik_1-1700470987359.png

 

Hi @Hritik ,

- Check the variable mapping and ensure the "short_description" option is checked
- If the variable is Map to field is  mapped correctly in reocrd producer, the value will not be copied to the short_description field
- If the variable is mapped correctly, check the field type of the variable and the short_description field to ensure they are compatible
- If the field types are compatible, ensure the variable is visible and active in the record producer.
Check if there are any BR's or any client scripts that is clearing the short description.

 

Thanks,

Anand

Hi @Anand Kumar P ,

 

We are not mapping variable of Record Producer, but the Short Description itself of Record Producer. So no option to Map to Field.