2
votes
Accepted
How to fetch validation rules with Python's simple_salesforce?
You've got to use the Tooling API. Support for the Tooling API is relatively minimal in simple_salesforce, but it works just fine. Here, you would do
sf.toolingexecute("query?q=SELECT Id, ...
1
vote
Apex Test Class assertion fails on mismatched strings
You should generally not assert on the error message copy, but simply whether or not the proper type of error is hit. That said, if you are determined to verify the message, this failure is a great ...
1
vote
Need "number" field validation rule to accept 08445611044 for ireland companies please help. Currently not accepting this number
As per your current validation rule, for Ireland the phone number should start with 00.
If you want to allow the phone number 08445611044 for ireland then you need to modify your validation rule like ...
1
vote
Validation rule-only one person can uncheck a box
I see two main things here. The usage of OR(), and how you're checking the previous value of your checkbox.
Boolean functions
The way you have your validation rule structured, the OR() is only ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
validation × 947validation-rule × 267
apex × 169
formula × 98
visualforce × 91
trigger × 80
regular-expressions × 38
picklist × 34
visual-workflow × 27
lightning-aura-components × 26
opportunity × 26
javascript × 23
workflow × 23
lightning-web-components × 17
administration × 15
leads × 14
error-messages × 14
formula-field × 12
lookup × 12
required-field × 12
marketing-cloud × 11
lightning × 11
community × 11
deployment × 11
custom-object × 11