Record producer not adding look up field variable to the produced record

Justin Dirks1
Tera Expert

Hello! 

 

I am having issues with a variable I created on a record producer for the "Standard Change Template Proposal"  What I am trying to do is have that field simply populate the Assignment group based on that field in the record producer (which is a look up field on the sys_user_group field) 

here is my script that I have written on the script field on teh record producer. 

producer.redirect = current.getLink(true);
gs.addInfoMessage(gs.getMessage('A Standard Change Proposal was created successfully. You can review this proposal later via Change > Standard Change > My Proposals'));

if (producer.template_approval_manager_assignment_group != '') {
	current.assignment_group = producer.template_approval_manager_assignment_group;
}

 Any help will be awesome! Thank you

7 REPLIES 7

@Justin Dirks1 

You need to check few things:

  1. Empty Field Value: The producer.template_approval_manager_assignment_group field might be empty or null. Even if it's present on the record producer form, it could be left blank when submitting the form.

  2. Incorrect Field Configuration: Ensure that the template_approval_manager_assignment_group field on the record producer form is correctly configured to capture the assignment group. Double-check its data type, reference table, and any client scripts or UI policies that might affect its behavior.

  3. Variable Binding: Confirm that the variable binding between the template_approval_manager_assignment_group field on the record producer form and the corresponding field on the server-side script is correct. The variable name must match exactly between the client-side and server-side.

Please Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.

 

Thanks

I know that I filled out the field value.  

I showed what I thought was right in my last message with the screen shot. 

If I was to rebuild the whole variable what would you do step by step?

 

Thank you so much for your help on this. 

@Justin Dirks1 

I think you just need to ensure that your variable 'template_approval_manager_assignment_group' is holding the assignment group at the time of submission and one more thing you need to check that if assignment group field on the record should not exclude the group you selected on the variable due to some reference qualifier.

So please check reference qualifier on assignment group field as well.

 

Please Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.

 

Thanks