0

CRM 4.0 Web サービス インターフェイスを使用してアプリケーションを開発しており、プログラムを使用して通話記録を作成し、それをアカウント レコードにリンクする必要があります。レコードの作成方法はわかりますが、通話をアカウントにリンクする方法がわかりません。どんな助けでも大歓迎です。

ありがとう

ナイジェル

4

1 に答える 1

5

アクティビティ (電話など) をエンティティ (アカウントなど) に直接リンクすることはできません。これを行うには、 activityparty オブジェクトを使用する必要があります。
それを行うには、次の手順に従います (アカウントが存在すると想定しています)。

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

次に、通常どおり電話活動を作成します。

于 2009-03-12T14:35:18.507 に答える