I recently enabled Tracking History for 3 fields inside the Case object. Even on the workbench in the metadata section of Custom Field, I can see a Case__hd folder where all the fields which are set for tracking are shown. __hd Files

Now, I am trying to retrieve these __hd files using Metadata API but am not able to retrieve them. The error says

enter image description here

The package.xml which I am using for retrieving these files are

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">

Any idea where I am going wrong..!

1 Answer 1


Those database objects (objects ending with __hd or __history) does not have a specific metadata describing them.

If you want to retrieve this configuration, you need to go to the CustomField

Inside that custom field you have different tags with this information. For example trackTrending for historical trending data (__hd) or trackHistory for history tracking (__history)

Check the metadata api entry for custom fields for more information https://developer.salesforce.com/docs/atlas.en-us.234.0.api_meta.meta/api_meta/customfield.htm

and the metadata coverage report https://mdcoverage.secure.force.com/docs/metadata-coverage

You must log in to answer this question.

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