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

Community site session details

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

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

(1) ShareShare
ReportReport
Posted on by 2,250 Moderator
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
 
 
I have the same question (0)
  • Suggested answer
    NAV_with_Narang Profile Picture
    2,250 Moderator 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
     
     
  • peter_aronsson Profile Picture
    2 on at
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,678 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,635

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,210

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans