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
Project ManagersProject Managers 

'Edited By' and 'Edited Date' API Field Names --> Case History

Hello,

I am trying to use API to retrieve some Case History fields from Salesforce, there are two fields i was not able to find their API names though: 'Edited By' and 'Edited Date'.

Any suggestions?

Thanks,

Udi
viruSviruS
Can you please paste your sample code here how you are trying 
Project ManagersProject Managers
Hi,

I didn't created the code yet as I don't know what the API name of the 'Edit Date' and 'Edited By' fields.
Currently this are all the Case History fields I was able to retrieve:

SELECT Id,CaseId,Field,CreatedById,CreatedDate,IsDeleted,NewValue,OldValue FROM CaseHistory

If I create new Case History report I can choose those fields but when I look for this under the object fields I am not able to find it.

Thanks,

Udi
 
viruSviruS
You can identify the same using  CreatedDate, CreatedById. There are no fields like 
'Edit Date' and 'Edited By' fields  on CaseHistory Object
Project ManagersProject Managers
Thank you! I will give it a shot...
Vignesh P 6Vignesh P 6
Hi udi,

Did you find the API Names of EditDate and EditedBy in historyTracking? 

Thanks..
Amanda Ovenden 4Amanda Ovenden 4
EditDate is not available in the API for History Tracking. CreatedDate is the equivalent - it's the date the tracking record was created.