5

$ is used for Global Variables. These are used in all kinds of formulas, including formula fields, validation rules, Process Builder, etc. They are used exactly as you would any other kind of variable, they just have special meaning in context (e.g. referencing the user's profile via $Profile).


4

The AND logical function is described as this: Returns a TRUE response if all values are true; returns a FALSE response if one or more values are false. The logic operators and functions in Salesforce formulas (and thus validation rules) are similar to Reverse Polish Notation in math: The operator comes first, then you comma-separate everything that the ...


2

Documentation doesn't get specific and just says changes to validation rules are tracked. However, in a quick test I confirmed the following changes to the Validation Rule were shown in the Setup Audit Trail Name updates Error Condition formula updates Error Message Error Location Active In terms of your question, only one change was not tracked: ...


1

A better name for validation rules would be invalidation rules because when the formula evaluates to true, it means the rule complains and prevents the invalid data from being saved. So the key here is to think about what data is invalid. Based on your description so far, that's: Picklist cannot be null/blank (it must have a value selected) ...if the user's ...


1

You're using EDate__c too much in this validation rule. You're performing some date manipulation on a given date, and then comparing it against that same date. The result will always be true, or always be false (depending on the comparison made), and things that never change no matter what input you give do not make for useful validation rules. You want to ...


1

The AND logical function is described as this: Returns a TRUE response if all values are true; returns a FALSE response if one or more values are false. So in your Validation Rule, you checking for this: Is there a value in the schedule_date__c field? AND Is the difference between the start_date_c and end_date__c values less than 30 [days]? There are a ...


1

Simple arithmetic operators work when comparing a Date/Time to a Date/Time. You must do conversions or other operations to extract the parts you need if you want to compare Date to Date/Time. This Validation Rule: CheckOut_Time__c <= CheckIn_Time__c Resulted in this: and this:


1

Validation rules are best thought of as invalidation rules. That is, instead of your rule telling you when a record is valid, it tells you when it is invalid. You have the first part worked out. If the ownerId is changing, and the person changing it is not any of your 4 profiles, the change is invalid. The second part is simple If the ownerId is changing, ...


Only top voted, non community-wiki answers of a minimum length are eligible