Показать сообщение отдельно
Старый 19.01.2015, 13:49   #1  
magicandy is offline
magicandy
Участник
 
111 / 12 (1) ++
Регистрация: 15.07.2014
CRM 2013. Multiple entities chart
Коллеги, пытаюсь кастомизироват чарт на вывод данных по нескольким сущностям. Задача вывести на одну диаграмму таски и инциденты, по оси Y - количество, по Х - дата создания.

Вот исходный fetchcollection
X++:
      <fetchcollection>
        <fetch mapping="logical" aggregate="true">
          <entity name="task">
            <attribute groupby="true" alias="_CRMAutoGen_groupby_column_Num_0" name="createdon" dategrouping="day" />
            <attribute alias="_CRMAutoGen_aggregate_column_Num_0" name="createdon" aggregate="count" />
            <attribute alias="_CRMAutoGen_aggregate_column_Num_13" name="createdon" aggregate="count" />
          </entity>
        </fetch>
      </fetchcollection>
А вот мой
X++:
      <fetchcollection>
        <fetch mapping="logical" aggregate="true">
          <entity name="task">
            <attribute groupby="true" alias="_CRMAutoGen_groupby_column_Num_0" name="createdon" dategrouping="day" />
			<link-entity name="task" from="activityid" to="activityid" link-type="outer">
				<attribute alias="_CRMAutoGen_aggregate_column_Num_0" name="activityid" aggregate="countcolumn" distinct="true" />
			    <filter type="and">
			      <condition attribute="subject" operator="like" value="%Обращение%" />
			    </filter>
			</link-entity>
			<link-entity name="incident" from="incidentid" to="incidentid" link-type="outer">
				<attribute alias="_CRMAutoGen_aggregate_column_Num_13" name="incidentid" aggregate="countcolumn" distinct="true" />
			</link-entity>
          </entity>
        </fetch>
      </fetchcollection>
При импорте чарта ошибка:
The specified field does not exist in Microsoft Dynamics CRM.

Подскажите, в чём может быть ошибка?

Руководствовался данной статьёй

Последний раз редактировалось magicandy; 19.01.2015 в 13:51.