You need to sign in to do that
Don't have an account?
Swamy P R N
restriction for user access by validation
HI Folks,
I have a scenario i.e, Whoever is created the record but that record users manager & system admin only edit the record based on Grade field. For this i implemented a validation, but its not working properly. So please suggest me.
AND(
OR(ISCHANGED( Grade_1__c ), ISCHANGED( Grade_2__c ), ISCHANGED( Grade_3__c )),
OR( $User.Id=$User.ManagerId )
)
Highly appreciated!!
I have a scenario i.e, Whoever is created the record but that record users manager & system admin only edit the record based on Grade field. For this i implemented a validation, but its not working properly. So please suggest me.
AND(
OR(ISCHANGED( Grade_1__c ), ISCHANGED( Grade_2__c ), ISCHANGED( Grade_3__c )),
OR( $User.Id=$User.ManagerId )
)
Highly appreciated!!
You can use below updated formula:
Replace SystemAdministratorProfileID with Appropriate ID of System Admin Profile.
If this solves your problem, kindly mark it as the best answer.
Thanks,
Vatsal
All Answers
Only Record " Owners Manager " and " System admin " people can edit the record.
AND(
OR( ISCHANGED( QnxSPM__End_Date__c ) ,
ISCHANGED( QnxSPM__Start_Date__c )
),
OR( $User.Id <> $User.ManagerId ,
$Profile.Name <> "System Administrator"
)
)
Can anyone suggest me..
You may need to go for apex validation error.
Do you have any idea on this.
You can use below formula:
Replace SystemAdministratorProfileID with Appropriate ID of System Admin Profile.
If this solves your problem, kindly mark it as the best answer.
Thanks,
Vatsal
You can use below updated formula:
Replace SystemAdministratorProfileID with Appropriate ID of System Admin Profile.
If this solves your problem, kindly mark it as the best answer.
Thanks,
Vatsal