How to deploy Lightning LWC or Aura Custom Tab using Apache ANT tool in Salesforce?
Sample package.xml: <types> <members>Sample_LWC</members> <name>CustomTab</name> </types> Sample_LWC is the API Name of the Tab.
Sample package.xml: <types> <members>Sample_LWC</members> <name>CustomTab</name> </types> Sample_LWC is the API Name of the Tab.
GlobalValueSet can be used in the package.xml file to retrieve the Picklist Value Set/Global Picklists in Salesforce. Check the following package.xml for reference. package.xml: <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata"> ....
Scratch Org feature in Salesforce helps Source Driven Development. The scratch org is a source-driven and disposable deployment of Salesforce code and metadata components. This feature is made for developers ....
How to use Session Id in ANT tool in Salesforce without username and password? build.xml: <target name="deploy"> <sf:deploy sessionId="<SessionId>" serverurl="${sf.serverurl}" testLevel="RunLocalTests" deployroot="Retrieve"/> </target>
Use REST Explorer and get the components deployed using Deployment Id.HTTP Method: GETHTTP Request URL: /services/data/v49.0/metadata/deployRequest/<deploymentId>?includeDetails=true
1. Use Workbench and navigate to Utilities --> Metadata API Process Status. 2. Enter the Deployment Id. Select Deploy or Retrieve.3. Click "Get Status" button.
How to just validate the package with Specific test classes using ANT tool in Salesforce? build.xml: <target name="validateSpecified"> <sf:deploy username="${sf.username}" password="${sf.password}" serverurl="${sf.sandboxurl}" ....
pacakge.xml: <types> <members>*</members> <name>Translations</name> </types> <types> <members>LeadGen</members> <name>CustomApplication</name> </types> Using above, we can retrieve the Translation used for the Custom Application "LeadGen". Folder Name will be "translations". Translation will be ....
Metadata API entity is Prompt. package.xml:<?xml version="1.0" encoding="UTF-8"?><Package xmlns="http://soap.sforce.com/2006/04/metadata"> <types> <members>*</members> <name>Prompt</name> </types> <version>47.0</version></Package> For more info, check https://developer.salesforce.com/docs/atlas.en-us.222.0.api_meta.meta/api_meta/meta_prompt.htm
Sample Command:sfdx force:source:deploy -p "force-app/main/default/classes/AccountListController.cls,force-app/main/default/lwc/example,force-app/main/default/lwc/sample"