+ Start a Discussion
Sunita PSunita P 

Not able to find the TaskRelation object in workbench.

Shared Activities are enabled, however I'm not able to find the TaskRelation object in workbench. I'm I missing something? Thanks.
Raj VakatiRaj Vakati
Please check this setting. 

.User-added image  

User-added image

Sunita PSunita P
Thank you for the response. Yes, under Activity Setting the option is checked. I still do not see the TaskRelation object in workbench. Also I'm not able to set the WhoId via a before Trigger on the Task object. I have put debug statements in the apex code, the WhoID does show the correct contact ID, but the whoId is saved as Null.
Alain CabonAlain Cabon

Rajamohan.Vakati wrote the exact things to do.

You have just to log out and log in again for the workbench. I got the same problem and it is just because you were already log in.

RelationId: Indicates the WhatId or WhoId in the relationship. For more information, see Task.
For information on IDs, see ID Field Type.

Raj VakatiRaj Vakati
Use this SOQL to see the result and let us know 
SELECT Id, Subject, (SELECT RelationId, Relation.Name, IsWhat from TaskRelations WHERE isWhat = TRUE) FROM Task

Sunita PSunita P

The SOQL statement is giving an error. Thanks.