Vous ne pouvez pas lier directement une activité (comme appel téléphonique) à une entité (comme compte). Vous devez utiliser l'objet activityparty pour le faire.
Pour ce faire, procédez comme suit (je suppose le compte existe):
phonecall newPhoneCall = new phonecall();
// Set the properties of the newPhoneCall.
newPhoneCall.subject = "Test newPhoneCall";
newPhoneCall.description = "New newPhoneCall";
// Create the party sending and receiving the newPhoneCall.
activityparty party = new activityparty();
// Set the properties of Activityparty.
party.partyid = new Lookup();
party.partyid.type = EntityName.account.ToString();
party.partyid.Value = existingAccount.accountId;
// The party sends and receives the newPhoneCall.
newPhoneCall.from = new activityparty[] { };
newPhoneCall.to = new activityparty[] { party };
Ensuite, créez l'activité d'appel téléphonique normal.