Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

CAD

SIVAKARTHICS
Tera Contributor

SIVAKARTHICS_2-1752988307830.png

SIVAKARTHICS_3-1752988321807.png


current.u_leave_type = producer.type_of_leave;
current.u_start_date = producer.start_date;
current.u_end_date = producer.end_date;
current.u_reason = producer.reason;
current.u_status = 'Pending';  
 
 
this is my script the all values from record producer is automattically fetched to tables expect both choice feilds what can i do

 

1 ACCEPTED SOLUTION

Chaitanya ILCR
Mega Patron

Hi @SIVAKARTHICS ,

 

looks like you are mapping variables with wrong field names

current.leave_type = producer.type_of_leave;
current.start_date = producer.start_date;
current.end_date = producer.end_date;
current.reason = producer.reason;
current.status = 'Pending';

 

prefix "u_" is not there in the table fields as per you table 

 

and you don't need script for this you can directly map the fields in the variable it self

 

open the respective variable and check map to field and select the field 

and make sure the variable backend name is same as table field's backend name

 

ChaitanyaILCR_0-1752989288416.png

 

you can use the script too but with this you don't have to write script

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

View solution in original post

1 REPLY 1

Chaitanya ILCR
Mega Patron

Hi @SIVAKARTHICS ,

 

looks like you are mapping variables with wrong field names

current.leave_type = producer.type_of_leave;
current.start_date = producer.start_date;
current.end_date = producer.end_date;
current.reason = producer.reason;
current.status = 'Pending';

 

prefix "u_" is not there in the table fields as per you table 

 

and you don't need script for this you can directly map the fields in the variable it self

 

open the respective variable and check map to field and select the field 

and make sure the variable backend name is same as table field's backend name

 

ChaitanyaILCR_0-1752989288416.png

 

you can use the script too but with this you don't have to write script

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya