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
Static DevStatic Dev 

Approval process not to apply based on opp owner role

I have this question how to restrict approval process not to apply based on opp owner(user) role for only specific roles of opp owner.
Owner.UserRole.Name = "User role name" can this formula used to do that
Please let me know. Thanks in advance.
Yes that would do

I don't think this would work, UserRole is a global variable, and would only give you current-logged-in user's role. 

Alternatively, you can think about creating a field on your object, populate it with role of owner (maybe use a trigger), and then use that field in your approval process. 


ps: If your problem/question is resolved/answered, please mark your post as 'Solved' so that the community can benefit with resolution of issues.