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
gmc74gmc74 

Populate the values of a pick list with Salesforce Users based on role or profile

I am working on something where I need to be able to populate the values on a picklist with Salesforce Users who are in either a specific role (or roles) or a profile (or profiles), either one will work.

Has anyone done this?  Can you point me in the right direction?

Thanks

Grant
Jeff TalbotJeff Talbot
If I correctly understand what you're needing, this can't be done with standard functionality (as of Summer '07 release). I've also been wanting something like this, and I just posted it on Idea Exchange. (sorry, didn't mean to "steal" your idea!)
 
 
 
gmc74gmc74
No worries there,

That idea is a bit different than what I am looking for.

I am basically looking for a filtered Lookup(user) field.

If I am doing something with a Case, I don't want the sales people on that list, and vice versa.