0

i want to get activities associated with a Contact..how it can be done..as per my knowledge there is no any relationship between activity and contact..so how can i acheive this please do reply

Thanks in advance

  • What do you mean by Activity? Is that activity History? – Vignex Dec 16 '14 at 6:08
  • ya for activity history Vignex – Krishna Bidwai Dec 16 '14 at 6:14
0

Salesforce provides the standard relationship between Contacts and Activity History. You can get the data from the below SOQL Query.

Select Id,CONTACT_FIELDS(Select Id,WhoId, WhatId, Subject, IsTask, ActivityDate, OwnerId, Status,OTHER_FIELDS From ActivityHistories) From Contact c

You will also have details from the Events and Tasks child relationship of Contacts

| improve this answer | |

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.