You need to sign in to do that
Don't have an account?

How can I create a user who inherits other users?
I have an approval process in Oportunities object, that requires to be approved by the user configured in accounts (look up field ), which would come to be the Comersial Manager. this manager may be different for each account record.
Is there some way to put that user in fine as approver.
repeat .. I can not put an espesific user in the process builder because the manager can be variable with each account and I can not put it in a queue, because the Aproval Process has to be aprove by Comersial Mnager.
I have tried to do it by configuration but I do not see how to do it, the way I see more possible to do is with a formula that obtains that field (user) and place it in opportunities, but I do not know how to assign it as approver.
I have no idea how to do it by code so I contact you mainly to see if it is possible to do this by code.

Best regards
Is there some way to put that user in fine as approver.
repeat .. I can not put an espesific user in the process builder because the manager can be variable with each account and I can not put it in a queue, because the Aproval Process has to be aprove by Comersial Mnager.
I have tried to do it by configuration but I do not see how to do it, the way I see more possible to do is with a formula that obtains that field (user) and place it in opportunities, but I do not know how to assign it as approver.
I have no idea how to do it by code so I contact you mainly to see if it is possible to do this by code.
Best regards
Now you have to create a trigger on the opportunity before insert in order to copy the comersial manager from the account to the opportunity. If the comersial manager could be changed on the account, you have to create a trigger also on the account after update in order to change the manager on all the opportunities related to this account.
Thanks for marking as best answer if this helps you,
Best Regards.