AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Разработка
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 23.06.2011, 18:00   #3  
u.rastegaev is offline
u.rastegaev
Участник
 
64 / 10 (1) +
Регистрация: 03.08.2010
да спасибо это помогло, но встала другая проблема:

у меня был вот такой запрос
Код:
"<fetch mapping='logical'><entity name='phonecall'>"+ 
"<all-attributes />"+ 
"<filter type='and'>"+ 
               "<filter type='or'>"+ 
   "<condition attribute='gar_subject' operator='eq' value='"+subject+"' />"+ 
   "<condition attribute='gar_subject_2' operator='eq' value='"+subject+"' />"+ 
   "<condition attribute='gar_subject_3' operator='eq' value='"+subject+"' />"+ 
   "<condition attribute='gar_subject_4' operator='eq' value='"+subject+"' />"+ 
   "<condition attribute='gar_subject_5' operator='eq' value='"+subject+"' />"+ 
               "</filter>"+    
   
               "<filter type='or'>"+ 
   "<condition attribute='gar_main_account_phonecall' operator='eq' value='"+account+"' />"+ 
   "<condition attribute='regardingobjectid' operator='eq' value='"+account+"' />"+   
               "</filter>"+ 
   
   
   "<filter type='and'>"+ 
   "<condition attribute='createdon' operator='on-or-after' value='"+ fStartDate+"' />"+ 
    "<condition attribute='createdon' operator='on-or-before' value='"+ date+"' />"+ 
 вот сюда надо вставить запрос  с partylist
   "</filter>"+ 
   


"</filter>"+ 
"</entity></fetch>";

из расширенного поиска я получил для partylist'a вот такой запрос
Код:
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true">
<entity name="phonecall">
<attribute name="subject"/>
<attribute name="statecode"/>
<attribute name="prioritycode"/>
<attribute name="scheduledend"/>
<attribute name="createdby"/>
<attribute name="regardingobjectid"/>
<attribute name="activityid"/>
<order attribute="subject" descending="false"/>

<link-entity name="activityparty" from="activityid" to="activityid" alias="aa">
<filter type="and">
<condition attribute="participationtypemask" operator="eq" value="2"/>
</filter>

<link-entity name="account" from="accountid" to="partyid" alias="ab">
<filter type="and">
<condition attribute="gar_inn" operator="eq" value="1"/>
</filter>
</link-entity>
</link-entity>
</entity>
</fetch>

и собственно вопрос как вставить часть последнего запроса выделенную красным в первый запрос ?
__________________
rurik
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Gareth Tucker: Getting Started with CRM 2011 Online Fetch XML Reporting Blog bot Dynamics CRM: Blogs 0 19.05.2011 23:13
Rahul Sharma: Microsoft Dynamics CRM 2011 Fetch XML based Custom Reports Blog bot Dynamics CRM: Blogs 0 15.04.2011 00:12
Microsoft Dynamics CRM Team Blog: Parameterizing Fetch Based Reports Blog bot Dynamics CRM: Blogs 0 18.03.2011 20:11
Microsoft Dynamics CRM Team Blog: Fetch-Xml based Reports: Bits & Pieces Blog bot Dynamics CRM: Blogs 0 24.02.2011 21:11
Microsoft Dynamics CRM Team Blog: Fetch It Blog bot Dynamics CRM: Blogs 0 16.06.2009 14:05
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 21:21.