Hi,
We used batch request of web api to retrieve records of multiple entities say suppose accounts and contacts using fetch xml.
We are able to get the response but response is as shown below. Now we need to parse this response and get the separate collection of record for accounts and contacts.
--batchresponse_a5ec534a-1906-4613-ab3c-304cc20c0c5e
Content-Type: application/http
Content-Transfer-Encoding: binary
HTTP/1.1 200 OK
Content-Type: application/json; odata.metadata=minimal
OData-Version: 4.0
Preference-Applied: odata.include-annotations="*"
{"@odata.context":""@Microsoft.Dynamics.CRM.totalrecordcount":-1,"@Microsoft.Dynamics.CRM.totalrecordcountlimitexceeded":false,"value":[{"@odata.etag":"W/\"3356018\"","fullname":"Della">uat54.crm.dynamics.com/.../$metadata Selestewa","contactid":"f4648fd7-e0ad-e911-a9ad-000d3a37fb92"},{"@odata.etag":"W/\"2159222\"","fullname":"Della Selestewa","contactid":"458f8747-d6a2-e911-a998-000d3a37fbce"}]}
--batchresponse_a5ec534a-1906-4613-ab3c-304cc20c0c5e
Content-Type: application/http
Content-Transfer-Encoding: binary
HTTP/1.1 200 OK
Content-Type: application/json; odata.metadata=minimal
OData-Version: 4.0
Preference-Applied: odata.include-annotations="*"
{"@odata.context":""@Microsoft.Dynamics.CRM.totalrecordcount":-1,"@Microsoft.Dynamics.CRM.totalrecordcountlimitexceeded":false,"value":[{"@odata.etag":"W/\"2236328\"","name":"Agin">uat54.crm.dynamics.com/.../$metadata & Sons","accountid":"c1ea7401-e0a2-e911-a99d-000d3a37f80d"}]}
--batchresponse_a5ec534a-1906-4613-ab3c-304cc20c0c5e--
Is any one have solution how can we get separate collection of record for accounts and contacts by parsing above response.
Waiting for your reply.
Thanks!
Balasaheb
*This post is locked for comments
I have the same question (0)