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 +}