2 votes
Accepted

Validation rule to prevent users from closing cases before 9am

The time you pass to TIMEVALUE() needs to be enclosed in quotes (single or double). TIMEVALUE("09:00:00")
Derek F's user avatar
  • 55.9k
1 vote

Prevents the deletion of contracts that are in active status

Validation rules cannot do it, you need a (before delete) trigger to prevent the deletion of a record and you must call addError(). If the only check is against Status field, the trigger is quite ...
RubenDG's user avatar
  • 5,934
1 vote
Accepted

How do I prevent going backwards in an opportunity once a specific step is reached?

You'll want to use the CASE statement. We'll convert each option to a numerical value, and generate an error if the step is lower than the previous step. CASE( StageName, 'New', 1, '...
sfdcfox's user avatar
  • 468k

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