I've got a validation rule on the Account sObject that checks whether a field has been updated if another field is not blank.
AND( NOT(ISBLANK(customID__c)), OR( ISCHANGED( BillingCity ), ISCHANGED( BillingCountry ) ) )
Then in Apex I'm attempting to update just the customID__c
Account updateAccount = new Account(Id = 'existingaccountid'); updateAccount.put('customID__c', '1234'); update updateAccount;
My problem is, that the validation rule is firing, and it shouldn't be.
Any guidance on how to fix this?