Tuesday, October 8, 2019

Query to find fields being History tracked in Salesforce

Use the following query to find fields being history tracked

SELECT QualifiedApiName FROM FieldDefinition WHERE EntityDefinition.QualifiedApiName = 'Account' AND IsFieldHistoryTracked = true

You could always put this in a loop and get list of fields tracked for all objects

No comments:

Post a Comment