1

I have set some fields for field history tracking on Task object. The standard field metadata files have <trackHistory>true</trackHistory>.

The custom field for Task was created in the Activity object. I can have this Activity custom field turned on for field history tracking and it works fine. However, the metadata of this field in Activity does not have anything defined for field history tracking.

Does anyone know where can I get the metadata that defines it? I need to push it to my source control and deploy to other orgs. Thank you very much.

1 Answer 1

0

Usually all the attributes of fields can be retrieved from this object : FieldDefinition

Try this query: select FIELDS(ALL) from FieldDefinition where LastModifiedDate = today and EntityDefinitionId = 'Task' limit 100

IsFieldHistoryTracked is what you are looking for.

You have to provide EntityDefinitionId or DurabilityId in the filters.

You must log in to answer this question.

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