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
YuckleYuckle 

Validate Lead Owner Role or Profile

Is there a way to validate a lead owner so it cammot be changed to a non-sales person by checking the profile or role of the new owner?

 

Something like: 

 

AND (
             ISCHANGED(OwnerId),                                      /* If Owner is changed */ 
            OwnerId.profilename    <>    "Q2 RSM"            */  New owner not salesrep  */

              /* IS THERE A FIELDNAME FOR THE PROFILE OR ROLE OF THE LEAD OWNER? */ 

 

          )