locked
How to get value of PartyList field using Javascript and oData RRS feed

  • Question

  • Hi,

    due to CRM 2011 online problems with IE10, we have decided to convert all front-end JavaScript from Soap to oData. Everything was going fine, I installed the oData designer, centralized the queries in functions, but i ran into a problem when i tried to retrieve a partylist field for ServiceActivity.

    The oData query I got using the oData Query designer is the following (the guid is a sample)

    ServiceAppointmentSet?$select=Resources&$filter=ActivityId eq guid'83CA6B11-6C0A-E311-8BB5-B499BAFE71A5'

    but in the response i get and error that the Resources field was not found.

    I tried without the select, and debugged the returned oData object, and it doesn't show both Resources and Customers partylist fields that are in ServiceActivity.

    ServiceAppointmentSet?$filter=ActivityId eq guid'83CA6B11-6C0A-E311-8BB5-B499BAFE71A5'

    Does anyone have any ideas?


    Thursday, August 22, 2013 8:05 AM

Answers

  • Question was answered on the following stackoverflow link,

    http://stackoverflow.com/questions/18397279/how-to-get-value-of-partylist-field-using-javascript-and-odata-in-crm-2011/18452864?noredirect=1#18452864

    The oData Query provided there is

    ServiceAppointmentSet(guid'83CA6B11-6C0A-E311-8BB5-B499BAFE71A5')?$select=serviceappointment_activity_parties/ParticipationTypeMask,serviceappointment_activity_parties/PartyId&$expand=serviceappointment_activity_parties

    Tuesday, August 27, 2013 12:50 PM