0

BIDS を使用して Dynamics CRM 2011 のカスタム レポートを作成しています。見積もりの​​場合customerEntityName、連絡先またはアカウントのいずれかを返す潜在的な顧客タイプがあります。これを正しい顧客エンティティにリンクして、住所の詳細などをレポートに取り込むにはどうすればよいですか?

4

1 に答える 1

1

このようなことを試すことができます。アカウントまたは連絡先にのみ関連付けられるため、1 つのデータ セットのみが値を返します。

<?xml version="1.0"?>
 <fetch distinct="false" mapping="logical" output-format="xml-platform" version="1.0">
   <entity name="quote">
    <attribute name="name"/> <attribute name="statecode"/> <attribute name="totalamount"/> <attribute name="customerid"/> <attribute name="quoteid"/> <order descending="false" attribute="name"/> -<link-entity name="account" alias="a_ce7d47f5258c4f20a6778ef6c718fa3b" link-type="outer" visible="false" to="customerid" from="accountid">
      <attribute name="address1_line1"/>
    </link-entity> -<link-entity name="contact" alias="quotecustomeridcontactcontactid" link-type="outer" visible="false" to="customerid" from="contactid">
      <attribute name="address1_line1"/>
    </link-entity>
  </entity>
</fetch>
于 2012-03-01T18:08:17.657 に答える