MicrosoftDocs / navdevitpro-content-pr

Content for the devitpro release for on-prem & PaaS
Creative Commons Attribution 4.0 International
6 stars 35 forks source link

Look like the batching is not supported #2034

Open Farzad-Jalali opened 4 years ago

Farzad-Jalali commented 4 years ago

I'm using postman to execute a simple batch which inserts 2 new entity in UnitOfMeasure. But I received an error which says:

{ "error": { "code": "", "message": "The request entity's media type 'multipart/mixed' is not supported for this resource." } }


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

moizsoloman commented 4 years ago

I'm getting the same error in Business Central, I've tested it on Chart of accounts and Standard Text code pages

Darren-OO commented 3 years ago

It's working for me in Business Central v16. You need to reference the $batch endpoint in the initial post.

[ServiceTierAddress]/ODataV4/$batch [ServiceTierAddress]/api/publisher/apigroup/v1.0/$batch