You need to sign in to do that
Don't have an account?
Ryan Thomas 317
soql Events - "shared activities"
Can someone help me with a query to get the following:
- OwnerId
- Event ID
- ActivityDate
- Subject
- Opportunity ID
- Contact ID (invitees/participants)
- OwnerId
- Event ID
- ActivityDate
- Subject
- Opportunity ID
- Contact ID (invitees/participants)
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_openactivity.htm?search_text=Activity
<pre>
List<Event> events =
( [ SELECT Id, OwnerId, ActivityDate, ActivityDateTime, Subject, WhatId,
( SELECT RelationId, IsInvitee, IsParent, Status
FROM EventRelations
)
FROM Event
]
);
</pre>
Ultimately looking for something similar to the solution on this question but copying the contacts to OCR so that this batch job runs at night:
https://developer.salesforce.com/forums/ForumsMain?id=9060G0000005j5gQAA
Let me know if you can help.
Have a nice weekend!