• Activity Associations
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hi all,
The WhoId is always showing null for my query shown below, and I need to get the related CONTACT name for each Open Activity.
Can anyone tell me why the WhoId would not be getting populated and how I could get CONTACT names ?

select id, Name, 
       (SELECT Id,whoid,whatid,ownerid,payout__Category__c,ActivityDate,Description,Subject,IsClosed,CallType,CallDisposition,Status,ActivityType,IsTask    
FROM OpenActivities ) from Account where Name like '%Akers%'
 
[{"Id":"00TA000000lF8uQMAS","WhoId":null,"WhatId":"001A000000SMWrUIAX","OwnerId":"005A0000000JrNJIA0","payout__Category__c":null,"ActivityDate":"2012-08-16","Description":"The Investment Tiered Payout Rate for the Advisor has just changed.","Subject":"New Inv Tiered Payout Rate","IsClosed":false,"CallType":null,"CallDisposition":null,"Status":"Not Started","ActivityType":"1_","IsTask":true},{"Id":"00TA000000lF9IUMA0","WhoId":null,"WhatId":"001A000000SMWrUIAX","OwnerId":"005A0000000JrNJIA0","payout__Category__c":null,"ActivityDate":"2012-08-16","Description":"The Investment Tiered Payout Rate for the Advisor has just changed.","Subject":"New Inv Tiered Payout Rate","IsClosed":false,"CallType":null,"CallDisposition":null,"Status":"Not Started","ActivityType":"1_","IsTask":true}]