Hi all
I have been having an issue getting batch inserts working to a custom entity via the rest api. To my eye, this is correct according to the documentation. I get a 200 OK back but no rows are created.
My custom entity is called custom_users. So the collection name comes out as custom_userses
I can easily do a single insert for a row to the entity via /api/data/v9.0/custom_userses so I know the entity exists and is fine.
Request Headers
https://.dynamics.com/api/data/v9.2/$batch
'Content-Type': 'multipart/mixed;boundary=batch_22975cad-7f57-410d-be15-6363209367ea',
'OData-MaxVersion': '4.0',
'OData-Version': '4.0',
'Prefer': 'odata.include-annotations="*",return=representation',
'Accept': 'application/json'
This is the request body
--batch_AAA123
Content-Type: multipart/mixed;boundary=changeset_BBB456
--changeset_BBB456
Content-Type: application/http
Content-Transfer-Encoding:binary
Content-ID: 1
POST /api/data/v9.2/custom_userses HTTP/1.1
Content-Type: application/json;type=entry
{
"id":"614515",
"username":"oldmate1",
"firstname":"Old",
"lastname":"Mate"
}
Any help would be really great.