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
cldavecldave 

1 condition for multiple profiles

Hi I'm trying to have a condition that if user is one of those 3 profiles and date/time on Notify renewal field is older than present, to not let save

 

 

here's what i have so far

 

AND Notify_Renewal__c < (Now(),
OR($Profile.Name = "System Administrator, $Profile.Name = Sales Support"$Profile.Name = System Administrator-adam"))

 

it seems I messed up somewhere with syntax as it's not working for me atm

 

 

thx in advance

AgiAgi

Hi,

you can try

AND (
Notify_Renewal__c < Now(),
OR($User.ProfileId = "id of profile", $User.ProfileId = "id of profile", $User.ProfileId = "id of profile"))

digamber.prasaddigamber.prasad

Hi,

 

Could you please try below:-

 

AND (Notify_Renewal__c < Now(), OR($Profile.Name = "System Administrator, $Profile.Name = Sales Support"$Profile.Name = System Administrator-adam"))

 

Looks like you have mis-placed '('.

 

Let em know if you have any question.