연락처 개체를 조회하는 코스 등록이라는 맞춤 엔터티가 있습니다.
적극적인 강좌 등록이있는 연락처를보고 싶습니다.Dynamics 365에서 시스템보기로 집계를 사용하여 맞춤 FetchXML을 구현하는 방법
연락처 엔티티에서이 작업을 수행 할 수 없다고 생각하므로 연락처 필드 만 표시하는 활성 코스 등록보기를 만들어야합니다.
내가 원하지 않는 코스 등록이 두 개 이상인 경우 중복 연락처가 생깁니다.
내가 FetchXML에서 집계 쿼리를 작성했는데,이를 방지하려면<fetch version="1.0" aggregate="true" >
<entity name="flr_courseenrolment" >
<link-entity name="contact" from="contactid" to="flr_contact" alias="a_69c0f6b80d94e711812ae0071b66a541" >
<attribute name="emailaddress1" alias="contactemailaddress1" groupby="true" />
<attribute name="fullname" alias="contactfullname" groupby="true" />
<filter type="and" >
<condition attribute="statecode" operator="eq" value="0" />
<condition attribute="flr_islearner" operator="eq" value="1" />
<condition attribute="flr_advisor" operator="eq" uiname="Test User" uitype="systemuser" value="{28C0D53B-5E19-E611-8106-C5346CC262D1}" />
</filter>
</link-entity>
<attribute name="flr_courseenrolmentid" alias="aggregateflr_enrolmentid" groupby="true" />
</entity>
</fetch>
이 쿼리는 xRM을 도구 상자 FetchXML 테스터에서 작동합니다. 그러나 CRM으로 가져올 때 작동하지 않습니다.
같은 필드가 포함 된보기가 포함 된 솔루션을 내보내 CRM에 가져옵니다. 그리고 내가 만든 FetchXML에 의해 시스템에 의해 생성 된 FetchXML을 대체하고 다시 가져올 수 있습니다.
"가져 오기 다중에서 열을 항상 지정해야합니다."라는 다시 가져온 후에이보기를 보려고하면 일반 CRM 오류가 발생합니다.
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ActivityId>b3b1d783-a8be-4454-9ed5-b71c42053299</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>System.Xml.XmlException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #2955ADDE</Message>
<Timestamp>2017-09-11T03:22:55.50674Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault>
<ActivityId>b3b1d783-a8be-4454-9ed5-b71c42053299</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>Columns should always be specified on RetrieveMultiple.</Message>
<Timestamp>2017-09-11T03:22:55.50674Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault>
<ActivityId>b3b1d783-a8be-4454-9ed5-b71c42053299</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d4p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>System.InvalidOperationException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #F043AB2E</Message>
<Timestamp>2017-09-11T03:22:55.50674Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>
이
- flr_courseenrolmentid의 별명이
- 집계을 깰보기를 일으키는을/GROUPBY 모든 CRM 뷰에서 지원되지 않습니다
- FetchXML과 어떤 식 으로든 LayoutXML을 사용자 정의해야합니다.
달성하고 싶은 것이 있습니까? CRM의 뷰에서이 FetchXML을 표시 할 수있는 방법이 있습니까? 아니면 내가 필요로하는 뷰를 얻기위한 다른 방법이 있습니까?
우수, 나는 관계의 많은 측면에서 그것을 할 수있을 것이라고 생각하지 않았다, 이것은 의도 한대로 정확하게 작동했다. – madbrendon