Attach call record with Leads or Deals or Campaigns

Attach call record with Leads or Deals or Campaigns

 I am successful in attaching a call record to a Contact. But how do I do the same for other types ? What should i send instead of CONTACTID ?