0

We have created a couple of Activity Custom fields and we have enabled Feed Tracking for them in the Event Feed Tracking section.

As far as I can tell, in order to deploy Feed Tracking for a field, you just need to deploy the object metadata:

<fields>
    <fullName>Description</fullName>
    <trackFeedHistory>true</trackFeedHistory>
</fields>

That works fine for the Event standard fields.

Still, the Event custom fields are stored in the Activity object, but even though tracking has been enabled for them, this is not visible in the Activity object metadata:

 <fields>
    <fullName>Account__c</fullName>
    <deleteConstraint>SetNull</deleteConstraint>
    <description>Phone and Email required field. This is mapped to the WhatId field of type Account</description>
    <externalId>false</externalId>
    <label>Account</label>
    <referenceTo>Account</referenceTo>
    <relationshipLabel>Activities</relationshipLabel>
    <relationshipName>Activities</relationshipName>
    <required>false</required>
    <type>Lookup</type>
</fields>

enter image description here

In this case how can we deploy the tracking for Event/Task custom fields using ant?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.