locked
Cannot add attribute organizer of type partylist in a condition RRS feed

  • Question

  • hi all,
    how can i get the organizer of specific appointment
    through fetch xml query ?
    foreach(object HeartBeat in me.heart.Beats) messageBox.show("I love u !!")
    Tuesday, December 15, 2009 2:57 PM

Answers

  • If you want to retrieve the organizer, you have to retrieve an ActivityParty entity.  Something like:

    <fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>
      <entity name='activityparty'>
        <attribute name='partyid' />
        <filter>
          <condition attribute='activityid' operator='eq' value='_AppointmentId_' />
          <condition attribute='participationtypemaskname' operator='eq' value='Organizer' />
        <filter>
      </entity>
    </fetch>

    Replace _AppointmentId_ with the ID of your Appointment.

    I'm not sure if 'participationtypemaskname' is an acceptable attribute derivative.  If it doesn't work, you'll have to use 'participationtypemask' and find the integer that represents the value "Organizer" from that picklist.


    Dave Berry
    Tuesday, December 15, 2009 6:26 PM
    Moderator