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
lcoffinlcoffin 

Accessing ActivityHistories without being admin?

Is there a way to access all SalesForce data without being an admin? Or, in particular, the ActivityHistories table data? When I query that table as a non-admin level user, I get the following message:

Implementation restriction: activity aggregate relationships only allow security evaluation from non-admin users when a single parent record is evaluated

Requiring admin-level access to use the API requires storing the admin password, which will give any developer admin access to SalesForce and sensitive company information.

-L

vanessenvanessen

If your class has been defined with sharing remove it, it will solve your problem.

LHeinenLHeinen

Hello,

 

I have the very same issue. Is there any possibility to do it without removing the sharing rules? 

 

Regards,

 

Lukas