web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Is anything wrong with my batch request?

(0) ShareShare
ReportReport
Posted on by

Hello, guys!

I'm trying to create multiple tasks using web API.
I make request and everything seems to be fine - response with status 200 received.
But the body contains a string like `--batchresponse_s0m3-1d3nt1f1er--` and nothing else, and tasks are not created

POST [Organization URI]/api/data/v8.2/$batch HTTP/1.1
Content-Type: multipart/mixed;boundary=batch_0404c3c5da1c57fe36a677db4ae11f36
Accept: application/json
OData-MaxVersion: 4.0
OData-Version: 4.0

--batch_0404c3c5da1c57fe36a677db4ae11f36
Content-Type: multipart/mixed;boundary=changeset_dc2cc6bdfa809960ae451941a744a247

--changeset_dc2cc6bdfa809960ae451941a744a247
Content-Type:application/http
Content-Transfer-Encoding:binary
Content-ID: 1

POST [Organization URI]/api/data/v8.2/tasks HTTP/1.1
Content-Type:application/json;type=entry

{"subject":"Task 1 in batch","description":"Task 1 description"}
--changeset_dc2cc6bdfa809960ae451941a744a247
Content-Type:application/http
Content-Transfer-Encoding:binary
Content-ID: 2 POST

[Organization URI]/api/data/v8.2/tasks HTTP/1.1
Content-Type:application/json;type=entry

{"subject":"Task 2 in batch","description":"Task 2 description"}
--changeset_dc2cc6bdfa809960ae451941a744a247--

--batch_0404c3c5da1c57fe36a677db4ae11f36--


*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Arun Vinoth Profile Picture
    11,615 Moderator on at

    The problem with Batch request is it may succeed in group or fail in group. So add an error handler to see if any errors.

    Refer this: community.dynamics.com/.../web-api-bulk-operations

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans