여기에서 지침에 따라 VS2012를 사용하여 CRM 2016에 대한 FetchXML 보고서를 만들려고 시도합니다. Create a new report using SQL Server Data Tools. 두 날짜 사이에 만들어진 사례를 간단히 찾고 싶습니다.FetchXML 보고서에서 집계 집계
CRM 고급 검색 프로세스에서 다운로드 한 FetchXML을 복사/붙여 넣기에 대한 지침이 나와 있습니다. 고급 찾기 프로세스에 의해 생성
FetchXML은 (ticketnumber으로) 모든 사례를 나열하려면 다음
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="incident">
<attribute name="incidentid" />
<attribute name="ticketnumber" />
<order attribute="ticketnumber" descending="false" />
<filter type="and">
<filter type="and">
<condition attribute="createdon" operator="on-or-after" value="2015-07-01" />
<condition attribute="createdon" operator="on-or-before" value="2016-06-30" />
</filter>
</filter>
</entity>
</fetch>
나는 고급 찾기로 집계 할 수있는 방법을 찾을 수 있지만, 여기 지침
: Use FetchXML aggregation는 몇 가지를 시사한다 XML에 대한 속성 변경이 모두 필요한 것입니다. 내가 뭔가 잘못하고있어 어느
을, 또는 FetchXML 집계 페이지가 잘못입니다 : 오류가
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false" aggregate="true" > <entity name="incident"> <attribute name="incidentid" /> <attribute name="ticketnumber" aggregate="count" alias="casecount" /> <order attribute="ticketnumber" descending="false" /> <filter type="and"> <filter type="and"> <condition attribute="createdon" operator="on-or-after" value="2015-07-01" /> <condition attribute="createdon" operator="on-or-before" value="2016-06-30" /> </filter> </filter> </entity> </fetch>
이 결과 :
그래서, 메모장 ++ 내 FetchXML을 변경했습니다.
두 날짜 사이에 열린 사례를 계산하는 fetchXML 보고서를 만드는 방법을 보여줄 수 있습니까?
고맙습니다. 이 작업은 VS에서 보고서를 다시 작성한 후에 수행되었습니다. 나는 incidentid가 어떻게 선정되었는지 모르겠다, 나는 단지 고급 발견을 사용했고 그것은 나에게 그 들판을 주었다. – mcalex