Retrieving and deploying Custom object metadata doesn't contain Owner and CurrencyIsoCode field history tracking information
Last updated 2022-01-18 ·Reference W-2574931 ·Reported By 55 users
In Review
Summary
Custom Object metadata (.object file) retrieved/deployed using package.xml, does not contain Owner and CurrencyIsoCode standard field and its History tracking setting. This is because they is not exposed through Metadata API on a Custom Object. It is available for Standard object like Account, but not on Custom Object.
Repro
1. Create a custom object
2. Enable Field History Tracking for the Name, Owner and CurrencyIsoCode (This field is available after enabling Multi-currency in the org) Fields
3. Export the custom object using the ant migration tool or package.xml as follows:
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>CustomObject__c</members>
<name>CustomObject</name>
</types>
<version>44.0</version>
</Package>
4. Delete the custom object from the org
5. Upload the custom object using the ant migration tool
Expected Result:
Custom object's "Owner" and "CurrencyIsoCode" field has history tracking enabled
<fields>
<fullName>OwnerId</fullName>
<trackFeedHistory>true</trackFeedHistory>
<trackHistory>true</trackHistory>
<type>Lookup</type>
</fields>
<fields>
<fullName>CurrencyIsoCode</fullName>
<trackFeedHistory>false</trackFeedHistory>
<trackHistory>true</trackHistory>
</fields>
Actual Result:
Custom object's "Owner" and "CurrencyIsoCode" field does not have history tracking enabled
Workaround
Manually enable the setting.
Reported By (55)















Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.