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
Mayuri Thakre 6Mayuri Thakre 6 

Validation RUle for Id

AND(ISBLANK(FederationIdentifier),$Setup.Bypass_Settings__c.Disable_Validation_Rules__c == false)
NOTE: Due to this formula ,for all user it is mandatory to fill the federation ID . But now i want to set 'License = Salesforce' How can I frame that?Please help me for this
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Mayuri,

You mean to tell that License should be only salesforce while creating the user and you want it as validation rule?

thanks,
 
Mayuri Thakre 6Mayuri Thakre 6
Hi Sai,

I mean that only the user which login as (internal users) salesfoce.com need fill the federation ID and for community user it is not required to fill the federation ID field

Thanks
 
mukesh guptamukesh gupta
Hi Mayuri,

Please use belwo formula:-
 
AND(ISBLANK(FederationIdentifier),$Setup.Bypass_Settings__c.Disable_Validation_Rules__c == false, $Profile.UserType  == 'Standard')

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh