function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
David BudimirDavid Budimir 

Trigger User Lookup Value Based on Picklist Value

Hi there,

I'm trying to find a way to trigger a user look up field to populate automatically based on a picklist in a given opportunity. 

For example. We have a picklist for "Success Manager" where each individual is a  value. I'd like to get the value in this picklist to map to a specifc user lookup value in the same opportunity. 

That way we can start sending automatic email alerts to the Success Manager on that opportunity.

The main reason I want to set it up this way is so that our team doesn't have to change their current behaviour - and we can transtition to reccording the Success Managers the right way.

Thanks in advance!

Thanks!
Balaji BondarBalaji Bondar
Hi David,

You will have to store this role-user mapping in a custom setting and populate using trigger on Opportunity.