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

Creating a before trigger based on Account Teams - Need help with code
So we have these two look-up(user) fields on the Account object:
I am not a developer and I don't really write code. Can someone help me out with this?
Thanks!
Erin
- Account_Manager__c
- Enterprise_Solutions_Manager__c
- Account Manager
- Enterprise Solution Manager
I am not a developer and I don't really write code. Can someone help me out with this?
Thanks!
Erin
Just a forewarning I have only begun developing in Salesforce recently. This is my attempt at solving your question. If it helps great, if not, hopefully it becomes the basis for the solution.
Also a note, it generally is not a good practice to use a before trigger to update another object. You can, but with an after trigger you will be able to capture the OBJ.Id so that you can use it later on.
I also use a trigger handler class so that it keeps the trigger clean.
The Trigger:
The Trigger Handler:
Not really sure if I used the correct API names so please do change them.
Hope this helps!