I would like to enable Field History Tracking for the Account, Opportunity, Contact and Lead objects.
I understand that I need to include the Setting's type in the Package.XML and I did so for the following objects.
<types> <members>Opportunity</members> <members>Account</members> <members>LeadConfig</members> <members>EnhancedNotes</members> <members>Chatter</members> <name>Settings</name> </types> I noticed when I pull down the metadata - it pulls down all object settings when I'm really just looking to just enable field history tracking.
So I went ahead and created separate object settings XML files. For example, this is for Account (+ contact).
<AccountSettings xmlns="http://soap.sforce.com/2006/04/metadata"> <enableAccountHistoryTracking>true</enableAccountHistoryTracking> <enableContactHistoryTracking>true</enableContactHistoryTracking> So my question is, if I'd doing this correctly, where do I need to put these individual object specific XML files so that the Package.XML can reference it? Hope this makes sense!