I have a scenario where I am trying to create an Apex Trigger that updates the Owner on a master record based on the selection made on a picklist in a detail record.
My master object is:
Label: Agreement Object Name: APTS_Agreement API Name: Apttus__APTS_Agreement__c
My detail object is:
Label: Bank Account Details Object Name: Bank_Account_Details API Name: Bank_Account_Details__c
The picklist field is located on the Bank Account Details object and has a list of users in the system:
Field Label: TL Approver API Name: TL_approver__c
Basically, one user will be coming in and creating an Agreement record. They will then create a Bank Account Opening detail record off that Agreement record that will have the TL Approver field on it. Whoever they select from the TL Approver field should then become the Owner of the Agreement record.
Can anyone help me out with this?