2

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?

1 Answer 1

3

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .