Friday, 23 August 2013

How to get value of PartyList field using Javascript and oData in CRM 2011

How to get value of PartyList field using Javascript and oData in CRM 2011

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 the partylist field Resources
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 an error that the Resources field was not found.
I tried without the select, and debugged the returned oData object, but
noticed that 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?

No comments:

Post a Comment