web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Problem with sdkmessageprocessingstep for update message of contact

(0) ShareShare
ReportReport
Posted on by 5

Hello,

I wanted to register a webhook for update message of contact but its not triggering / working as expected.
I am not getting any error at all, it's just simply not triggering any call to my webhook url when I have updated `firstname` or `lastname` of any contact. 

Here is the details that I have followed:

Step 1: First I called POST `../api/data/v9.2/serviceendpoints` using the following payload to create service endpoint:

{
    "name":"Test Webhook",
    "contract":8,
    "authtype":5,
    "authvalue": "<settings><setting name=\"Authorization\" value=\"Basic aRUrZK9yvgThpHLpX8Xu8ck\" />"
}
Step 2: After that I called POST `../api/data/v9.2/sdkmessageprocessingsteps` using following payload to attach the update event for contact like following:
{
    "name": "Webhook for Step Contact Update #1",
    "stage": 40,
    "rank": 1,
    "mode": 0,
    "eventhandler_serviceendpoint@odata.bind": "/serviceendpoints(9df991d4-c5dd-ed11-a7c5-6045bd6e1588)",
    "sdkmessageid@odata.bind": "/sdkmessages(20bebb1b-ea3e-db11-86a7-000a3a5473e8)",
    "sdkmessagefilterid@odata.bind": "/sdkmessagefilters(d4c5bb1b-ea3e-db11-86a7-000a3a5473e8)",
    "supporteddeployment": 0,
    "description": "TEST WEBHOOK FOR STEP Contact Update #1",
    "filteringattributes": "firstname,lastname"
}
Is there anything that I missed?
By the way if I attached the creation event using the above payload but with following id with `sdkmessageid` then it trigger the call to my webhook url on creation of any contact.
{
    .......
    "sdkmessageid@odata.bind": "/sdkmessages(9ebdbb1b-ea3e-db11-86a7-000a3a5473e8)",
    .....
}
I am struggling to find the actual issue. It will be highly appreciate, if anyone could help me.
Thanks in Advance 
 

 

I have the same question (0)
  • Suggested answer
    XM-22040801-0 Profile Picture
    11 on at

    Hi,

    In your POST to /sdkmessageprocessingstep, you set sdkmessagefilterid@odata.bind to 20bebb1b-ea3e-db11-86a7-000a3a5473e8

    This id is for creating a contact, not for updating it.

    Can you try this id instead: 83c9bb1b-ea3e-db11-86a7-000a3a5473e8

    To ensure that you use the correct id, you can use this query: /api/data/v9.2/sdkmessagefilters?$filter=primaryobjecttypecode eq 'contact' and sdkmessageid/name eq 'Update'

  • Guido Preite Profile Picture
    54,086 Moderator on at

    any reason why you are not using Plugin Registration Tool to register the webhook?

  • ashish021 Profile Picture
    5 on at

    @Guido Preite I am doing the automation to configure & enable the webhook based on permission and configuration given given.

    Thats the main reason I am doing it through API

    Thanks

  • ashish021 Profile Picture
    5 on at

    Xavier Monin  Thanks a lot, You are right. Actual ID is `83c9bb1b-ea3e-db11-86a7-000a3a5473e8`

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Nagaraju_Matta Profile Picture

Nagaraju_Matta 121

#2
ManoVerse Profile Picture

ManoVerse 71 Super User 2026 Season 1

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 66 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans