New answers tagged


You need to use Workflow Rules, not Validation Rules. In the WF Rule: Check if Account Minimum has changed, and if Account was Active. AND( Active_Proactive_field__c = 'Active', Account_Minimum_field__c > PRIORVALUE(Account_Minimum_field__c) ) Create a Field Update to change Account to Proactive. This will change Active_Proactive_field__c if ...


It's not possible... I had to create an Apex Class.


Security changes may invalidate your configuration after setup. For example, an administrator might change a field's accessibility after setting up the configuration. Or, the field level security might be different for different profiles, or even permission sets. You should not verify this last requirement during setup, only during execution. For this, I ...


Apex can also run validations which cause FIELD_CUSTOM_VALIDATION_EXCEPTION, so this erro may well be caused by code. You should contact the package author for support.


DNS records can have multiple TXT entries. For domain validation, simply add a new TXT record.


There's no real way to do this without "running" the code, unless you want to write your own parser/compiler and try to validate everything manually. Obviously, that's not a sustainable model. However, there is a potential trick you could use. Simply add return; to the beginning of whatever they give you and call executeAnonymous. The code will ...


Validations only know about your current record. They don't know about other records in the object. You will need to write code to query other records, and put the validation check in that code. For example in a trigger.


To restrict editing record to 7 days since its creation you can use a simple Validation Rule TODAY() - CreatedDate > 7 You can change CreatedDate to your custom field to restrict editing based on its value, but remember to make sure this value can not be changed after it has been populated.


Yes, regex can do this. NOT(REGEX(SomeCustomField__c, '^(?s)\\d{9}(\\s+\\d{9})$')) || REGEX(SomeCustomField__c, '(?s)(\\d{9}).*\\1') The trick here is that we go in to "single line mode" (?s) to allow . to match newlines, then we check each nine-digit string (\\d{9}) with any intervening characters (.*), followed by the same group again (\\1).


How about adding ISCHANGED(Start date) into you formula. This way the validation rule only runs if the Start Date is changed and when 7 days from Start date had passed, if that's your only requirement. So it will look like below: AND(ISCHANGED(Start date), your existing formula to validate 7 days from Start date)

Top 50 recent answers are included