Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Webhook Subscription gets automatically deleted from the "API webhook subscription" table

Posted on by 2,218 Super User 2024 Season 1
Having a SaaS Business Central US instance, I recently configured webhooks on a sandbox environment with a API having 2 fields from the item card. I was successful in creating the POST request for subscription but the subscription gets deleted from Business Central "API Webhook Subscription" as soon as the first time the webhook is triggered. The webhook's notificationurl is a Power Automate URL, which fires only once before I see the subscription getting deleted from the system table.
 
I understood that the subscription will get deleted in 3 days time, but that seems to not be the case
 
Screenshots with timestamps below
 
1. The subscription is created on sandbox thru POSTMAN. The response of the API tells me the success status
 
 
 
 
2. The API Webhook Subscription system table has the record for subscription ID 64995bc0b4e5466295caa30af6743ec7
 
 
 
 
 
3. As soon as the webhook is triggered for the first time upon item modification, the subscription is deleted from the API Webhook Subscription Table
 
Successful trigger of the PA Flow
 
 
When I try to get the active subscriptions thru POSTMAN, its gone
 
When i check the table from table information, its gone
 
 
Any ideas/solutions/links would be greatly appreciated
 
 
Categories:
  • Suggested answer
    NAV_with_Narang Profile Picture
    NAV_with_Narang 2,218 Super User 2024 Season 1 on at
    Webhook Subscription gets automatically deleted from the "API webhook subscription" table
    Hi @peter - It turns out I discovered the root cause of the issue. I was using Power Automate as the Webhook Listener, which had a condition set to check if the client state was "ABCD."
     
    However, when I registered the Webhook using POSTMAN, I passed "WebhookToUpdateDataFromBC" as the client state.
    This mismatch in the client state value caused the flow condition in Power Automate to interfere. As a result, the webhook subscription request wasn't successfully registered, leading to the subscription being deleted immediately after creation due to the client state discrepancy.
     
    Hope it helps
     
     
  • Webhook Subscription gets automatically deleted from the "API webhook subscription" table
    @
    We have exactly the same issue. Have you found the cause and a solution?

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans