You need to sign in to do that
Don't have an account?
Bwoff
Need help with syntax
Clearly I don't belong here, but would appreciate the help nonetheless. I am trying to write a formula that will deactivate page updates for all users after a form is submitted with the exception of two profile ids. I can get it to work for one, but not both. What am I doing wrong?
And(now() > Submitted_Day_Time__c , ($User.ProfileId <> "00eD00000015thJ") ||($User.ProfileId <> "00eD00000016Ctb"))
AND(
now() > Submitted_Day_Time__c,
AND (
$Profile.Name <> "Profile 1",
$Profile.Name <> "Profile 2"
)
)
Use the AND operator. Also, you should avoid use of hard code ids. Instead you can use the Profile Name as Ids may change when you deploy between organisations.
Thanks,
Prafull
All Answers
Hi,
Just replace the OR with the AND conjunction as shown below.
And(now() > Submitted_Day_Time__c , ($User.ProfileId <> "00eD00000015thJ") && ($User.ProfileId <> "00eD00000016Ctb"))
Give Kudos if this helps you out.
AND(
now() > Submitted_Day_Time__c,
AND (
$Profile.Name <> "Profile 1",
$Profile.Name <> "Profile 2"
)
)
Use the AND operator. Also, you should avoid use of hard code ids. Instead you can use the Profile Name as Ids may change when you deploy between organisations.
Thanks,
Prafull