locked
Party List Users RRS feed

  • Question

  • Hi All,

    Can any one share me the query for Get all the meeting where the logged in user's part of. Can any one share me the Query plugins c#.


    • Edited by JERRY_TP Tuesday, February 16, 2016 8:17 AM
    Tuesday, February 16, 2016 8:17 AM

Answers

  • Hello,

    I believe meeting is appointment so you can use following FetchXml query to get your data:

    <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true">
      <entity name="appointment">
        <attribute name="subject" />
        <attribute name="statecode" />
        <attribute name="scheduledstart" />
        <attribute name="scheduledend" />
        <attribute name="createdby" />
        <attribute name="regardingobjectid" />
        <attribute name="activityid" />
        <attribute name="instancetypecode" />
        <order attribute="subject" descending="false" />
        <link-entity name="activityparty" from="activityid" to="activityid" alias="ac">
          <filter type="and">
            <condition attribute="partyid" operator="eq-userid" />
          </filter>
        </link-entity>
      </entity>
    </fetch>
    Using provided query and FetchExpression you can get results you need  - https://msdn.microsoft.com/ru-ru/library/gg328117.aspx


    Dynamics CRM MVP
    My blog

    Tuesday, February 16, 2016 11:05 AM
    Moderator