2009-03-12 7 views
0

CRM 4.0 웹 서비스 인터페이스를 사용하여 응용 프로그램을 개발 중이며 프로그래밍 방식으로 전화 통화 기록을 만들고이를 계정 레코드에 연결해야합니다. 레코드를 만드는 방법을 볼 수 있지만 전화 통화를 계정에 연결하는 방법을 모르겠습니다. 어떤 도움이라도 대단히 감사 할 것입니다.CRM 4.0의 계정에 활동 연결

감사

나이젤

답변

5

당신은 직접 (계정 등) 엔티티 (전화 등) 활동을 링크 할 수 없습니다. 이를 수행하려면 activityparty 객체를 사용해야합니다.
는 (I 계정이있는 가정하고) 다음 단계에 따라 수행합니다

 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 }; 

그런 다음 정상과 전화 통화 활동을 만듭니다.

관련 문제