Home SALESFORCEDeployment Extract Custom Button using Salesforce Package.xml

Extract Custom Button using Salesforce Package.xml

Meta data name for custom button is WebLink and below is the format to use it in your package.xml to extract using workbench or any other deployment tools like Eclipse,  ANT, Gearset, Pipeline, ClickDeploy,  AutoRABIT, Flosum etc

Salesforce Package.xml file structure:

<?xml version=”1.0″ encoding=”utf-8″ standalone=”yes”?>
<Package xmlns=”http://soap.sforce.com/2006/04/metadata”>
<members>Case-Case Feed Layout</members>


Once retrieved the button details exists in the Case object with webLinks tag like below:

<CustomObject xmlns=”http://soap.sforce.com/2006/04/metadata”>

Deploying a custom button is a straightforward and can be done using change set as well using the below steps:

  • Enable Organization connections between source and target Organization. You can access it under  Setup:- “Deploy -> Deployment Settings”
  • Setup a change-set in the source org
  • Push change-set to target org

make sure to include following items in the change-set:

  1. Custom Button
  2. Account/Contact page layouts

and simply deploy to target organization

About Salesforce Change Sets:

Salesforce Deployment Connections:

You may also like

Leave a Comment