23 Mar, 2023
Batch Request allows us to make multiple API calls within a single API call. We’re limited to 1000 API calls in a single batch request. The HTTP method only supports POST, PATCH & DELETE in Batch Request.
In this Blog, We’re calling 3 API calls in a single Batch Request.
POST – Create a new Account Record
PATCH – Update a Contact Record
DELETE – Delete a Contact Record
Request Body Data:
POST https://dynamicstrial.api.crm.dynamics.com/api/data/v9.1/accounts HTTP/1.1
PATCH https://dynamicstrial.api.crm.dynamics.com/api/data/v9.1/contacts(d5638eb7-6e87-ed11-81ac-6045bd0061f1) HTTP/1.1
DELETE https://dynamicstrial.api.crm.dynamics.com/api/data/v9.1/contacts(a5638eb7-6e87-ed11-81ac-6045bd0061f1) HTTP/1.1
Here are few key things to know :
Changeset is a transactional operation which means if any operations fail then all completed operations will be rolled back.
Each individual request in the batch request body must start with–batch_
Each individual changeset request operation must start with–changeset_
End of the changeset is set with –changeset_
End of the batch is set with –batch_
NOTE: You must include ” boundary= batch_
Now click on Send Request.
This Batch request will Create, Update and Delete record in desired Entity with status “200 OK” in the response body.
What is SubscriptionTrackingDeletedObject? The "SubscriptionTrackingDeletedObject" table is linked to the "DeletionService," which handles two types of cleanup: organization-wide and record-specific.…READ MORE
Introduction: This blog will show how to create real-time customer journeys in Dynamics 365 Marketing. Customer journeys can be either…READ MORE