Set GL Control Code for new Customer

I’m trying to write a BPM that will enter the correct GL Control Code for a new customer based on a UDF and the Customer.Group field values.

I have my conditions working properly as the messages populate correctly when I do the combination UDF/Group.

However, I can’t seem to figure out what I’m missing to set the actual values as I’ve tried multiple things based on my trace and keep receiving syntax error messages. Below is the code I have right now, but feel there’s something missing between the GetNewEntityGLC and Update.

Any help would be greatly appreciated as I’ve spent many hours on this.

Hard to say as I am more finance than technical. I will try to see if I find something similar at one of my customers. As a work-around I would say : show a message to the end user like “please set GL control code ARP_S (or any other code)” and on the update method check it again and if not properly checked do not allow saving of the customer (with an error message).
It is not something to be proud of but fur sure it will work.

Best regards,
Mihai