Skip to main content
Glama
rafteles2016

MCP Dynamics CRM Server

by rafteles2016

dynamics_list_plugin_steps

Retrieve registered plugin steps in Dynamics CRM, optionally filtered by entity or plugin type, to manage and audit custom business logic execution.

Instructions

Lista os steps registrados para plugins, opcionalmente filtrados por entidade

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
entityLogicalNameNoFiltrar por entidade
pluginTypeIdNoFiltrar por tipo de plugin

Implementation Reference

  • The implementation of the 'dynamics_list_plugin_steps' tool handler, which lists registered plugin steps in Dataverse with optional filters.
    server.tool(
      "dynamics_list_plugin_steps",
      "Lista os steps registrados para plugins, opcionalmente filtrados por entidade",
      z.object({
        entityLogicalName: z.string().optional().describe("Filtrar por entidade"),
        pluginTypeId: z.string().optional().describe("Filtrar por tipo de plugin"),
      }).shape,
      async (params: { entityLogicalName?: string; pluginTypeId?: string }) => {
        const filters: string[] = [];
        if (params.entityLogicalName) {
          filters.push(`configuration eq '${params.entityLogicalName}' or sdkmessagefilterid/primaryobjecttypecode eq '${params.entityLogicalName}'`);
        }
        if (params.pluginTypeId) {
          filters.push(`_plugintypeid_value eq '${params.pluginTypeId}'`);
        }
    
        const result = await client.list("sdkmessageprocessingsteps", {
          select: [
            "sdkmessageprocessingstepid", "name", "stage", "mode",
            "rank", "statecode", "filteringattributes", "description",
            "_sdkmessageid_value", "_plugintypeid_value",
          ],
          filter: filters.length > 0 ? filters.join(" and ") : undefined,
          orderby: "name asc",
        });
    
        return {
          content: [
            {
              type: "text" as const,
              text: `Steps encontrados: ${result.value.length}\n\n${JSON.stringify(result.value, null, 2)}`,
            },
          ],
        };
      }
    );

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