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

Apex trigger /Workflow to Update opportunity owner when field on user changes ?
Hi,
I have a field 'Site' on Users, which gets mapped to Opportunity once the user from that site creates an opportunity.
So , lets say if a user from Site A creates an opportunity , Opportunity will be stamped with Site A.
Now sometimes, there are transfers, so user from Site A gets transferred to Site B, I want to write an apex trigger , whenver a user gets transfferd from Site A to Site B. for All the opportunites created by him , oppotunity owner should change to Site A manager..( sort of handover) , Site A store managers role is "Site A".
How can we achieve this
I have a field 'Site' on Users, which gets mapped to Opportunity once the user from that site creates an opportunity.
So , lets say if a user from Site A creates an opportunity , Opportunity will be stamped with Site A.
Now sometimes, there are transfers, so user from Site A gets transferred to Site B, I want to write an apex trigger , whenver a user gets transfferd from Site A to Site B. for All the opportunites created by him , oppotunity owner should change to Site A manager..( sort of handover) , Site A store managers role is "Site A".
How can we achieve this
The trigger could be the one to add the Site field to the opportunity, but you could also do this easier with Process Builder.
All Answers
The trigger could be the one to add the Site field to the opportunity, but you could also do this easier with Process Builder.
Can you please help me with other questions, that I have posted
Martha