deejay-hub / timeline-lwc

:octocat: An interactive timeline for the Salesforce platform.
https://dave-norris.medium.com/
MIT License
266 stars 72 forks source link

Add User's related activities #249

Closed antodrd closed 1 year ago

antodrd commented 1 year ago

I would like to use Timeline in order to display activities related to a user. The user is the activity owner of multiple activities which have a forecast date. I would like to see these activities on the timeline of a user's profile. Is it possible ?

I face an error trying to set it up : " unexpected token: 'FROM' : (bmpyrckt) ".

github-actions[bot] commented 1 year ago

Hello @antodrd , thank you for submitting an issue we appreciate your time. We will take a look and give you an update as soon as we can. We aim for a 72 hour response time.

deejay-hub commented 1 year ago

Hi @antodrd. Time Warp uses SOQL relationship queries to allow child records to be plotted. For the User SObject Salesforce does not provide the ability to write a query like this SELECT Id, (SELECT Id from Tasks) FROM User to get activity records based on ownership. So your use case could only be supported by you adding the code needed to query the Task and Event objects directly.