I am not sure if I am approaching my problem the right way, maybe not, so I will give a very brief explanation of what I am trying to achieve:

Currently I have 2 communities, Community 1 is focused on making calls and it has 2 sort of users internal and external. The external users will make an specific type of calls and the second type of users will follow up this calls. After the external users made the call I am creating an event, that looks something like:

Assigned to: Person who made the call (external user)

What.Id: Opportunity

custom field: an specific value

The internal user, should be able to see a list of all activities made by all the external users, so I am trying to do something like:

SELECT Subject, Id, What.Id, Custom_Field__c FROM Event WHERE Custom_Field__c = 'an specific value'

However this only displays if the event is assign to the current log in user. I need to be able to display all the events, regardless of who is assigned to it.

On community 2, is more for sales people who eventually will need to see the list of all this events created

So I am not really sure what I am missing, the class the I am using is set like:

public without sharing


THe following are the options that I have from Sharing Settings in setup, I dont have that option. My Salesforce is the enterprice, and this image was taking from admin user

enter image description here

1 Answer 1


I think there is a problem in your security. Go to the permission of activity and make it visible for all profiles. this may solve the issue.

You can Check this link for more information


  • hi, Thank you for the prompt reply, could you please specify more where is (Go to the permission of activity). Is this the same as Sharing Settings in setup? untick the activities checkbox?
    – manza
    Feb 24, 2015 at 6:32
  • yeah in that go to activities, and edit those setting. you can select controlled by parent, you can see all the events of users under you. To view all the events you must have a "View all data" Permission. If you are a system administrator then you can assign that permission to your profile and you can access all the data. Feb 24, 2015 at 6:57
  • Hi I have modify the options but it doesnt seem to do anything, please see the image above in case I am in the wrong place. Thanks
    – manza
    Feb 25, 2015 at 22:22
  • Also it works fine on full salesforce license, but as i said on my question is a community
    – manza
    Feb 25, 2015 at 22:51
  • Lets see, wait for other answers. Feb 26, 2015 at 4:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.