Apache Ant Tool

Salesforce

ANT Migration Tool for Salesforce Duplicate and Matching Rules

DuplicateRule is used to retrieve and deploy Duplicate Rules.MatchingRule is used to retrieve and deploy Matching Rules. Sample Package.xml: <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata"> <types> <members>Lead.Test_Duplicates_Rule</members> <name>DuplicateRule</name> </types> <types> <members>Lead.Test_Lead_Matching_Rule</members> ....

Salesforce

How to retrieve translations using Metadata API?

Use CustomObject and CustomObjectTranslation to retrieve translations using Metadata API Sample Package.xml: <Package xmlns="http://soap.sforce.com/2006/04/metadata"> <types> <members>Account</members> <members>AccountContactRole</members> <members>Activity</members> <members>Asset</members> <members>AssistantProgress</members> <members>Campaign</members> <members>CampaignMember</members> <members>Case</members> <members>CaseContactRole</members> <members>CaseMilestone</members> <members>Contact</members> <members>ContentVersion</members> <members>Contract</members> <members>ContractContactRole</members> <members>ContractLineItem</members> ....

Salesforce

How to deploy process builder using Apache ANT Tool in Salesforce?

Sample package.xml: <?xml version="1.0" encoding="UTF-8"?>      <Package xmlns="http://soap.sforce.com/2006/04/metadata">          <types>             <members>Process_Builder_API_Name-3</members>            <name>Flow</name>         </types>          <version>36.0</version>      </Package>   This will retrieve version 3 of the "Process_Builder_API_Name" process.

Salesforce

How to mention multiple test classes in RunSpecifiedTests in ANT in Salesforce Metadata Migration?

Multiple runTest tags can be used to mention multiple test classes in RunSpecifiedTests in ANT in Salesforce Metadata Migration. Sample code in Build.xml: <target name="deployProdSpecificTest"> <sf:deploy username="${sf.produsername}" password="${sf.prodpassword}" serverurl="${sf.serverurl}" deployroot="Retrieve" testLevel="RunSpecifiedTests"> <runTest>DS_CasePages_Test</runTest> ....

Salesforce

How to deploy Process Builder using Apache ANT Tool?

Sample package.xml: <?xml version="1.0" encoding="UTF-8"?>      <Package xmlns="http://soap.sforce.com/2006/04/metadata">          <types>             <members>Process_Builder_API_Name-3</members>            <name>Flow</name>         </types>          <version>36.0</version>      </Package>   This will retrieve version 3 of the "Process_Builder_API_Name" process.