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, ...
user avatar
  • 87.4k
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 ...
user avatar
  • 144k
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 ...
user avatar
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 ...
user avatar
  • 49.5k

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