function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Prasan De AlwisPrasan De Alwis 

Replace Due Date with Completed Date/Time field at Activity History

Is it possible to add Completed Date/Time to Activity History on the layout instead of Due Date? Normally, the Due Date is displayed on the Activity History Page, with the order descending from the Due Date field. We want to display the Completed Date/Time field on the activity history layout, and the records must be ordered descendingly based on the Completed Date/Time field. Could someone please help me.
Please find the below Activity History sample UI screenshot.

Activity History UI

Sai PraveenSai Praveen (Salesforce Developers) 
Hi,

 As per the attached article it was mentioned custom fields cannot be added to the activity time line.

https://help.salesforce.com/s/articleView?id=sf.activity_timeline_customization_considerations_lex.htm&type=5 (https://help.salesforce.com/s/articleView?id=sf.activity_timeline_customization_considerations_lex.htm&type=5)


Display and Order of Fields: 
In the activity timeline, you can customize the display and order of fields when an activity is expanded for events, tasks, logged calls, voice calls, and video calls.
Do this customization using event and task compact layouts. Even if you remove certain fields from a compact layout, they remain in the activity timeline because they contain essential activity information.
For example, suppose that you remove the due date, the date and time, or the task status fields from a compact layout. The event start date and time, the task checkbox, the task due date, and the call logging date still appear on activities in the activity timeline.
The description field for events and the comments field for tasks also always appear in the activity timeline, although they aren’t available in the compact layout. The remaining fields visible in the activity timeline reflect the fields you include in the compact layout.
Custom Fields:
Custom fields added to the compact layout don’t appear in the activity timeline.


Let me know if you face any issues.

If this solution helps, Please mark it as best answer.

Thanks,