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
SF-NewBieSF-NewBie 

Setup Audit Trail API

Is there an object for SetupAuditTrail that could be accessed via API?? or is the manual download through Your Name > Setup > Security Controls > View Setup Audit Trail the only option ??

 

Any help would be appreciated. 

Best Answer chosen by Admin (Salesforce Developers) 
AroraAnupAroraAnup

I think manual download is the only option available for now. There are some posts on the IdeaExchange too, asking for similar capability (https://success.salesforce.com/ideaView?id=08730000000glm9AAA) but doesnt look like there is a solution as of today.

All Answers

AroraAnupAroraAnup

I think manual download is the only option available for now. There are some posts on the IdeaExchange too, asking for similar capability (https://success.salesforce.com/ideaView?id=08730000000glm9AAA) but doesnt look like there is a solution as of today.

This was selected as the best answer
Jerome BargoJerome Bargo
This was introduced in Winter `16.  Here are a couple of blog posts that might help:

Andy in the Cloud (https://andyinthecloud.com/2015/10/18/setup-audit-trail-api-in-winter16/)
Salesforce Hacker (https://www.salesforcehacker.com/2015/11/using-setup-audit-trail-api-best-kept.html)