2012-03-01 2 views
0

BIDS를 사용하여 Dynamics CRM 2011에 대한 사용자 지정 보고서를 만듭니다. 견적을 위해 연락처 나 계정을 반환하는 잠재 고객 유형이 customerEntityName입니다. 주소 세부 정보 등을 보고서로 가져 오기 위해이를 올바른 고객 항목에 연결하려면 어떻게해야합니까?Dynamics CRM 가져 오기 XML 고객 기록 반환

답변

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> 
+0

감사합니다. –

관련 문제