dynamics_get_bulk_operations
Monitor bulk operations like deletions and imports in Dynamics CRM to track system activities and manage data processing tasks.
Instructions
Monitora operações em massa (bulk delete, imports, etc.)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No |
Implementation Reference
- src/tools/telemetry/index.ts:422-450 (handler)The handler function for 'dynamics_get_bulk_operations' which queries Dynamics 365 for bulk delete operations and failures.
server.tool( "dynamics_get_bulk_operations", "Monitora operações em massa (bulk delete, imports, etc.)", GetBulkOperationStatusSchema.shape, async (params: z.infer<typeof GetBulkOperationStatusSchema>) => { const result = await client.list("bulkdeletefailures", { select: ["bulkdeletefailureid", "errordescription", "orderedqueryindex", "createdon"], orderby: "createdon desc", top: params.top, }); const bulkDeletes = await client.list("bulkdeleteoperations", { select: [ "bulkdeleteoperationid", "name", "statuscode", "statecode", "createdon", "successcount", "failurecount", ], orderby: "createdon desc", top: params.top, }); return { content: [ { type: "text" as const, text: `## Operações em Massa\n\n**Bulk Delete Operations:**\n${JSON.stringify(bulkDeletes.value, null, 2)}\n\n**Falhas Recentes:**\n${JSON.stringify(result.value, null, 2)}`, }, ], }; } - src/tools/telemetry/index.ts:54-56 (schema)Schema definition for the inputs of the 'dynamics_get_bulk_operations' tool.
export const GetBulkOperationStatusSchema = z.object({ top: z.number().default(10), });