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
pcmca_2007@yahoo.co.inpcmca_2007@yahoo.co.in 

User validation Rule

Hi All,

          I have to write a validation rule on when a user is created with first Name as Open TMID , Delegated approver should 

          be same as Manager.But how should i get  Delegated approver and Manager.Can anybody help me out.

 

  With Regards

  Prabhash Mishra

Best Answer chosen by Admin (Salesforce Developers) 
sfdcbynitesfdcbynite

DelegatedApproverId 

ManagerId

 

both should be standard available fields on the User object

All Answers

sfdcbynitesfdcbynite

DelegatedApproverId 

ManagerId

 

both should be standard available fields on the User object

This was selected as the best answer
pcmca_2007@yahoo.co.inpcmca_2007@yahoo.co.in

Hi,

    When i am inserting managerId and after checking syntex it shows no error,But when i am inserting

    DelegatedApproverId and checks the syntex it shows error that DelegatedApproverId field dosent exists.

    I searched in all the insert field options but DelegatedApproverId is not there.But after firing soql query

    on user for DelegatedApproverId is shows DelegatedApproverId.I am not able to understand what is happening.

 

   With Regards

   Prabhash Mishra