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
guest1231231guest1231231 

Implementation restriction

Any ideas what causes this error?

 

"Implementation restriction: activity aggregate relationships only allow security evaluation for non-admin users when no other filters are applied"

 

-Thanks

Best Answer chosen by Admin (Salesforce Developers) 
guest1231231guest1231231

Was able to fix this problem by removing "with sharing" from the controller extension.

 

Code that caused the issue...

 

public with sharing class ActivityHistoryControllerExt {

Correct Code...

 

public class ActivityHistoryControllerExt {

 

Special thanks to DEV501 instructor John Henning for pointing this out.

 

 

All Answers

paul-lmipaul-lmi

We ran into that a while ago, and even tier 2 premier dev support couldn't figure out a way around it....

 

if you do, please post a reply here.  :)

guest1231231guest1231231

Was able to fix this problem by removing "with sharing" from the controller extension.

 

Code that caused the issue...

 

public with sharing class ActivityHistoryControllerExt {

Correct Code...

 

public class ActivityHistoryControllerExt {

 

Special thanks to DEV501 instructor John Henning for pointing this out.

 

 

This was selected as the best answer
vishal@forcevishal@force

Thanks a lot , it worked for me too! :)