0

I wanted to know, is it possible to retrieve validation rule using the source:retrieve command in Salesforce DX the same way I use to retrieve classes with source:retrieve -m ApexClass:MyClass -u myOrgAlias?

0

Yes, here is an example

 sfdx force:source:retrieve -m ValidationRule:Lead.Rep_Code_Validation

it is case sensitive

More info: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_validationformulas.htm

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.