You need to sign in to do that
Don't have an account?
Salesforce seekar
validation rule for only purticular users having this profiles can only edit a field
here uid__c is a custom field which is a unique identty number like adhar card , now my requirement is only the users with this profile can edit this uid__c
can you correct my validation rule . thing i sthat with one profile i am able to change the uid__c , with other profile it is throwing error .
ans:
AND(
$Profile.Name <> 'Partner Manager',
$Profile.Name <>'Sales Management User',
$Profile.Name <>'Telephone Ibsales User',
$Profile.Name <>'ddash Sales User',
OR (
AND ( ISBLANK( uid__c ) = FALSE,
PRIORVALUE( uid__c ) <> '',
ISCHANGED( uid__c ) = TRUE),
AND ( ISBLANK( uid__c ) = TRUE,
PRIORVALUE( uid__c ) <> '',
ISCHANGED( uid__c ) = TRUE)
)
)
can you correct my validation rule . thing i sthat with one profile i am able to change the uid__c , with other profile it is throwing error .
ans:
AND(
$Profile.Name <> 'Partner Manager',
$Profile.Name <>'Sales Management User',
$Profile.Name <>'Telephone Ibsales User',
$Profile.Name <>'ddash Sales User',
OR (
AND ( ISBLANK( uid__c ) = FALSE,
PRIORVALUE( uid__c ) <> '',
ISCHANGED( uid__c ) = TRUE),
AND ( ISBLANK( uid__c ) = TRUE,
PRIORVALUE( uid__c ) <> '',
ISCHANGED( uid__c ) = TRUE)
)
)
Could you try the below one,
I think belwo code wil help !!
Let me know if it helps !!
Thnaks
Manoj