Skip to main content
Glama
rafteles2016

MCP Dynamics CRM Server

by rafteles2016

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
NameRequiredDescriptionDefault
topNo

Implementation Reference

  • 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)}`,
            },
          ],
        };
      }
  • Schema definition for the inputs of the 'dynamics_get_bulk_operations' tool.
    export const GetBulkOperationStatusSchema = z.object({
      top: z.number().default(10),
    });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rafteles2016/mcpDynamics'

If you have feedback or need assistance with the MCP directory API, please join our Discord server