I renamed a custom object tab name from 'ABC' to 'XYZ' in
Customize > Tab Names and Labels > Edit. How can i deploy this change through eclipse using package.xml.
You will need to use the objectTranslations. There are multiple files in this folder based on languages eg: for Account in english there is Account-en_US.objectTranslation and so on ... . Find the file that has your changes and deploy it
You can deploy the custom tabs through package.xml in the following way:
<types> <members>API name of the Object</members> <name>CustomTab</name> </types>
and include the ObjectName.tab file also
The question is how to rename the tab. The package.xml file cannot do this. Leave the file name for the tab the same. Retrieve the metadata for the tab, change the label field, and then deploy the tab. This will change the label. The XML will look something like this, below. Note the "label" element.
<?xml version="1.0" encoding="UTF-8"?> <CustomTab xmlns="http://soap.sforce.com/2006/04/metadata"> <frameHeight>600</frameHeight> <hasSidebar>false</hasSidebar> <label>EDIT_ME</label> <mobileReady>false</mobileReady> <motif>Custom73: Highway Sign</motif> <url>https://www.website.com/somepage.html</url> <urlEncodingKey>UTF-8</urlEncodingKey> </CustomTab>