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
Neeraj Sharma 103Neeraj Sharma 103 

I want to change account owner based on custom state field (Picklist) and account owner change based on role hierarchy

Hi Everyone I am new in Salesforce/Beginner
My Scenario is:

If a Account record is created and custom state field(Picklist)  value is Gujarat then owner should be changed with some role in hierachy i want to check four levels for assigned a new user to existing account owner if last role is not available then user above him role hierarchy will be assigned and if above them is not availble then above him is assigned so this levels up to four level and last one by default assigned below all are not available

 
ManojjenaManojjena
Hi Neeraj ,


What I understood that you want to update the record owner incase state is gujrat ,with higher role . Any user with higher role will be ok right ?