From 303d991edec7ec4d5479fae97078b922ac3dde90 Mon Sep 17 00:00:00 2001 From: Arun Sharma Date: Wed, 4 Dec 2024 08:26:26 -0500 Subject: [PATCH] Update RecordTimelineDataProvider.cls Archived Task details are not coming in the detail section of Activity Time line, It might be be due to the query is not pulling all rows is Object API name isn't Activity History which in this case might be TaskRelation. --- force-app/main/default/classes/RecordTimelineDataProvider.cls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/force-app/main/default/classes/RecordTimelineDataProvider.cls b/force-app/main/default/classes/RecordTimelineDataProvider.cls index 8b7f520..ffb7d43 100644 --- a/force-app/main/default/classes/RecordTimelineDataProvider.cls +++ b/force-app/main/default/classes/RecordTimelineDataProvider.cls @@ -145,7 +145,7 @@ public with sharing class RecordTimelineDataProvider { //get the data from the record String soqlStmt =''; if(objectApiName !='ActivityHistory'){ - soqlStmt ='select Id,'+String.join(newFieldsToQuery,',')+' from '+objectApiName+' where Id=:recordId'; + soqlStmt ='select Id,'+String.join(newFieldsToQuery,',')+' from '+objectApiName+' where Id=:recordId ALL ROWS'; }else{ soqlStmt ='select Id,'+String.join(newFieldsToQuery,',')+' from Task where Id=:recordId ALL ROWS'; @@ -249,4 +249,4 @@ public with sharing class RecordTimelineDataProvider { } return childObjLabels; } -} \ No newline at end of file +}