Can the tooling API turn off/on field tracking history? Seeing as we can't delete history record I want to be able to turn it off before a process runs to prevent history records being created.

The tooling API is new to me and I can see there is the IsFieldHistoryTracked for EntityDefinition - - I just can't figure out if it's possible to edit via the tooling API.

Background: Basically we need to be able to clear address data on sandbox creation - however the original remains in the associated history records.

  • 1
    You could use a metadata api call instead, as detailed in this answer. Mar 15, 2017 at 16:32
  • The linked question works with CustomField via the Metadata API. You can get to the same record in the Tooling API. It looks like the trackFeedHistory is accessible through the Metadata field. Mar 15, 2017 at 20:07
  • Any reason I should use one over the other?
    – Girbot
    Mar 15, 2017 at 20:14

1 Answer 1


Thanks for the comments that helped me look at the right place...

With the help of Andrew Fawcett's Metadata API and in particular the demo metadatadeply.vfp I can confirm that the metadata API can turn off/on field history for an object.

I edited the zip file to update the Account object and to include:


Salesforce maintains what fields have field tracking enabled when it is turned off at the object level, so turning it on/off at the object level is all I need.

You must log in to answer this question.

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