How to populate the reference field from record producer to the table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2020 12:14 AM
Hi,
I have a reference field "department" in record producer, I also have the same reference field "department" in my customized table. I need to copy the value of my reference field to my customized table so I mapped the field value. However, it doesn't copy, the value, the field is empty in the table.
It has value in the record producer:
But empty in the Customized table:
- Labels:
-
Team Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2020 12:21 AM
Could you confirm the value to be set for the reference field when the producer is submitted?
If you want to set referring to a variable then you can try using
producer.variable_name=current.u_department;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2020 12:24 AM
I think it should be the other way around.
So not:
producer.variable_name=current.u_department;
But should be like:
current.department=producer.variable_name;

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2020 12:28 AM
I apologies,
current.u_department=producer.variable_name;
Refer below link as well,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2020 12:23 AM
Have you set the option "Map to field" on the variable?
As alternative use script:
replace both field_name_of_target table and variable_name with applicable field and variable. If both named department use that (current.department=producer.department);
current.field_name_of_target_table = producer.variable_name;
Also refer to: