microsoft-dynamics-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and authenticate Microsoft Dynamics 365 (Dataverse) webhooks registered with the Plug-in Registration Tool. Use when building a Dynamics 365 or…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Microsoft Dynamics 365 (Dataverse) Webhooks
Dynamics 365 webhooks are a Dataverse service endpoint (contract 8) plus
one or more steps you register with the Plug-in Registration Tool. When
a step's message fires (for example Create on contact), Dataverse POSTs the
event's execution context to your URL as JSON.
This differs from most providers in three ways:
- There is no signature. Dataverse doesn't sign the body. There's no HMAC, signing secret or timestamp header. Instead you register the webhook with an authentication option that attaches a credential to every request.
- The event is in the body. The body is a serialized
RemoteExecutionContext. The event name isMessageName(Create,Update,Delete) and the table isPrimaryEntityName. - Only the status code matters. Dataverse ignores your response body. A non-2xx on a synchronous step fails the user's operation.
When to Use This Skill
- How do I receive Dynamics 365 / Dataverse webhooks?
- How do I verify Dynamics 365 webhook signatures? (You can't. Use the
HttpHeaderauthentication option and compare the secret.) - How do I register a webhook in the Plug-in Registration Tool?
- How do I handle
Create,UpdateandDeleteevents for a table such ascontactoraccount? - What is in the
RemoteExecutionContextbody, and how do I readInputParameters? - Why did my Dataverse webhook fail with "Endpoint unavailable"?
Verification (core): the HttpHeader authentication option
When you register the webhook, choose Authentication: HttpHeader and add a key/value pair, for example:
X-Webhook-Secret: 3f9c0e...a long random hex value...
Dataverse sends it on every request. Check it in constant time before you parse the body:
const crypto = require('crypto');
// NOT a Dataverse signature. This is a secret YOU register in the HttpHeader option.
function verifyDynamicsSecret(headerValue) {
const expected = process.env.DYNAMICS_WEBHOOK_SECRET;
if (!expected) throw new Error('DYNAMICS_WEBHOOK_SECRET is not set'); // fail closed
if (typeof headerValue !== 'string') return false;
const a = Buffer.from(headerValue);
const b = Buffer.from(expected);
// Length check first: timingSafeEqual throws on a length mismatch.
return a.length === b.length && crypto.timingSafeEqual(a, b);
}
// Express lowercases header names: req.get('X-Webhook-Secret') works too.
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
Return 401 for a missing or wrong secret and 500 when the secret isn't
configured, so the endpoint never accepts everything by accident.
Don't use WebhookKey or HttpQueryString. They put the credential in the
query string (?code=... or ?Key1=Value1), where it ends up in access logs
and proxies. Hookdeck's source verification doesn't cover them either. See
references/verification.md.
The Payload: RemoteExecutionContext
{
"MessageName": "Update",
"PrimaryEntityName": "contact",
"PrimaryEntityId": "6d81597f-0f9f-e711-8122-000d3aa2331c",
"OperationId": "4af10637-4ea2-e711-8122-000d3aa2331c",
"OrganizationName": "OrgName",
"Stage": 40,
"Mode": 1,
"InputParameters": [
{
"key": "Target",
"value": {
"__type": "Entity:http:\/\/schemas.microsoft.com\/xrm\/2011\/Contracts",
"Id": "6d81597f-0f9f-e711-8122-000d3aa2331c",
"LogicalName": "contact",
"Attributes": [
{ "key": "firstname", "value": "James" },
{ "key": "fullname", "value": "James Glynn (sample)" }
]
}
}
],
"OwningExtension": { "Id": "75417616-4ea2-e711-8122-000d3aa2331c", "LogicalName": "sdkmessageprocessingstep" }
}
InputParametersandAttributesare arrays of{key, value}pairs, not objects. Flatten them before use. Dates look like"\/Date(1506384247000)\/".Updatecarries only the attributes in the request (and only those matching your step's Filtering Attributes). Register images or re-fetch the row for the full record.- Over 256 KB, Dataverse adds
x-ms-dynamics-msg-size-exceededand removesParentContext,InputParameters,PreEntityImagesandPostEntityImages. Re-fetch the row byPrimaryEntityIdthrough the Web API.
Dataverse also sends x-ms-dynamics-organization, x-ms-dynamics-entity-name,
x-ms-dynamics-request-name and x-ms-correlation-request-id headers.
Events (MessageName values)
MessageName |
Fires when |
|---|---|
Create |
A row is created in the step's table |
Update |
A row is updated (optionally only for the step's filtering attributes) |
Delete |
A row is deleted |
You register one step per message and table, so you choose which events you
receive. If a MessageName isn't one you handle, log it and return 200.
Установить microsoft-dynamics-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл microsoft-dynamics-webhooks?
Receive and authenticate Microsoft Dynamics 365 (Dataverse) webhooks registered with the Plug-in Registration Tool. Use when building a Dynamics 365 or Dataverse webhook receiver, securing it with the HttpHeader authentication option (Dataverse has no HMAC signature), parsing the RemoteExecutionContext JSON body (MessageName, PrimaryEntityName, InputParameters), handling Create, Update and Delete events, or debugging Dataverse webhook failures, timeouts and retries.
Как установить скилл microsoft-dynamics-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл microsoft-dynamics-webhooks запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic