Skip to main content
Glama
rafteles2016

MCP Dynamics CRM Server

by rafteles2016

dynamics_toggle_plugin_step

Activate or deactivate a plugin step in Microsoft Dynamics CRM by specifying the step ID and desired state to control workflow execution.

Instructions

Ativa ou desativa um step de plugin

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stepIdYesID do step do plugin
enabledYestrue para ativar, false para desativar

Implementation Reference

  • The implementation of the 'dynamics_toggle_plugin_step' tool, which updates the statecode and statuscode of a plugin step in Dynamics.
    server.tool(
      "dynamics_toggle_plugin_step",
      "Ativa ou desativa um step de plugin",
      EnableDisablePluginStepSchema.shape,
      async (params: z.infer<typeof EnableDisablePluginStepSchema>) => {
        await client.update("sdkmessageprocessingsteps", params.stepId, {
          statecode: params.enabled ? 0 : 1,
          statuscode: params.enabled ? 1 : 2,
        });
    
        return {
          content: [
            {
              type: "text" as const,
              text: `Step ${params.stepId} ${params.enabled ? "ativado" : "desativado"} com sucesso!`,
            },
          ],
        };
  • The input schema definition for the 'dynamics_toggle_plugin_step' tool.
    export const EnableDisablePluginStepSchema = z.object({
      stepId: z.string().describe("ID do step do plugin"),
      enabled: z.boolean().describe("true para ativar, false para desativar"),
    });

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