languages | products | page_type | description | |||
---|---|---|---|---|---|---|
|
|
sample |
This sample shows how to perform a bulk deletion of records that were previously exported from Microsoft Dataverse by using the Export to Excel option. [SOAP] |
This sample shows how to perform a bulk deletion of records that were previously exported from Dynamics 365 by using the Export to Excel option.
See How to run samples for information about how to run this sample.
The BulkDeleteRequest
message is intended to be used in a scenario where it contains data that is needed to create the bulk delete request.
In order to simulate the scenario described in What this sample does, the sample will do the following:
- Checks for the current version of the org.
- Query for a system user to send an email after bulk delete request operation completes.
- The
BulkDeleteRequest
creates the bulk delete process and set the request properties. - The
CheckSuccess
method queries for theBulkDeleteOperation
until it has been completed or until the designated time runs out. It then checks to see if the operation is complete.
The PerformBulkDeleteBackup
method performs the main ulk delete operation on inactive opportunities and activities to remove them from the system.
Display an option to delete the sample data that is created in Setup. The deletion is optional in case you want to examine the entities and data created by the sample. You can manually delete the records to achieve the same result.