{"title":"Codeunit 6153 API Webhook Notification Mgt., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/6153-api-webhook-notification-mgt/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":6153,"name":"API Webhook Notification Mgt.","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/6153-api-webhook-notification-mgt/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/6153-api-webhook-notification-mgt/source/","path":"src/Layers/W1/BaseApp/System/API/Webhooks/APIWebhookNotificationMgt.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"codeunit:7200":{"name":"CDS Integration Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/7200-cds-integration-mgt/"},"codeunit:5465":{"name":"Graph Mgt - General Tools","url":"https://jonas-paprotka.de/ref/codeunit/5465-graph-mgt-general-tools/"},"codeunit:4100":{"name":"Temp Blob","url":"https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/"},"table:2000000098":{"name":"API Webhook Notification Aggr","url":"https://jonas-paprotka.de/ref/table/2000000098-api-webhook-notification-aggr/"},"table:2000000095":{"name":"API Webhook Subscription","url":"https://jonas-paprotka.de/ref/table/2000000095-api-webhook-subscription/"},"codeunit:6154":{"name":"API Webhook Notification Send","url":"https://jonas-paprotka.de/ref/codeunit/6154-api-webhook-notification-send/"},"table:2000000096":{"name":"API Webhook Notification","url":"https://jonas-paprotka.de/ref/table/2000000096-api-webhook-notification/"},"table:472":{"name":"Job Queue Entry","url":"https://jonas-paprotka.de/ref/table/472-job-queue-entry/"},"codeunit:453":{"name":"Job Queue - Enqueue","url":"https://jonas-paprotka.de/ref/codeunit/453-job-queue-enqueue/"},"table:471":{"name":"Job Queue Category","url":"https://jonas-paprotka.de/ref/table/471-job-queue-category/"},"codeunit:6723":{"name":"Server Setting","url":"https://jonas-paprotka.de/ref/codeunit/6723-server-setting/"}},"procs":[{"name":"OnDatabaseInsert","line":67,"kind":"procedure","params":1,"steps":[[69,"call","ProcessSubscriptions",2]]},{"name":"OnDatabaseModify","line":73,"kind":"procedure","params":1,"steps":[[75,"call","ProcessSubscriptions",2]]},{"name":"OnDatabaseDelete","line":79,"kind":"procedure","params":1,"steps":[[81,"call","ProcessSubscriptions",2]]},{"name":"OnDatabaseRename","line":85,"kind":"procedure","params":2,"steps":[[87,"call","ProcessSubscriptionsOnRename",2]]},{"name":"ProcessSubscriptions","line":90,"kind":"procedure","access":"local","params":2,"steps":[[99,"call","GetSubscriptions",2],[103,"call","ProcessSubscription",3],[109,"call","ScheduleJob",1]]},{"name":"ProcessSubscription","line":113,"kind":"procedure","access":"local","params":3,"steps":[[117,"call","GetEntity",2],[119,"call","DateTimeToString",1],[123,"call","CheckTableFilters",3],[124,"call","RegisterNotification",4]]},{"name":"ProcessSubscriptionsOnRename","line":129,"kind":"procedure","access":"local","params":2,"steps":[[138,"call","GetSubscriptions",2],[142,"call","ProcessSubscriptionOnRename",3],[148,"call","ScheduleJob",1]]},{"name":"ProcessSubscriptionOnRename","line":152,"kind":"procedure","access":"local","params":3,"steps":[[159,"call","GetEntity",2],[161,"call","DateTimeToString",1],[170,"call","CheckTableFilters",3],[172,"call","RegisterNotification",5],[175,"call","CheckTableFilters",3],[177,"call","RegisterNotification",5],[178,"call","CheckTableFilters",3],[180,"call","RegisterNotification",5]]},{"name":"GetSubscriptions","line":184,"kind":"procedure","access":"local","params":2,"steps":[[188,"call","IsApiSubscriptionEnabled",0],[198,"ext","codeunit",7200,"IsBusinessEventsEnabled",0]]},{"name":"GetDatabaseTableTriggerSetup","line":205,"kind":"procedure","params":5,"steps":[[214,"ext","codeunit",5465,"IsApiSubscriptionEnabled",0]]},{"name":"GetEntity","line":231,"kind":"procedure","params":2,"steps":[[233,"call","IsDetailedLoggingEnabled",0],[234,"call","DateTimeToString",1],[237,"call","DateTimeToString",1],[247,"call","DateTimeToString",1],[252,"call","DateTimeToString",1],[257,"call","DateTimeToString",1]]},{"name":"CheckTableFilters","line":264,"kind":"procedure","access":"local","params":3,"steps":[[271,"ext","codeunit",4100,"FromRecord",2],[272,"ext","codeunit",4100,"CreateInStream",2],[278,"call","CopyPrimaryKeyFields",2],[279,"call","CopyFilterFields",3],[283,"call","DateTimeToString",1],[288,"call","IsDetailedLoggingEnabled",0],[289,"call","DateTimeToString",1]]},{"name":"CopyPrimaryKeyFields","line":294,"kind":"procedure","access":"local","params":2,"steps":[[303,"call","CopyFieldValue",2]]},{"name":"CopyFilterFields","line":307,"kind":"procedure","access":"local","params":3,"steps":[[337,"call","CopyFieldValue",2]]},{"name":"DeleteSubscription","line":356,"kind":"procedure","params":1,"steps":[[368,"call","DateTimeToString",1],[379,"call","ForceDeleteAPIWebhookNotifications",1],[385,"write",2000000098,"DeleteAll",1],[388,"write",2000000095,"Delete"]]},{"name":"RegisterNotification","line":391,"kind":"procedure","access":"local","params":4,"steps":[[400,"call","CopyPrimaryKeyFields",2]]},{"name":"ForceDeleteAPIWebhookNotifications","line":407,"kind":"procedure","params":1,"steps":[[423,"event","OnDeleteAPIWebhookNotifications",0]]},{"name":"RegisterNotification","line":434,"kind":"procedure","access":"local","params":5,"steps":[[450,"call","DateTimeToString",1],[451,"call","DateTimeToString",1],[464,"ext","codeunit",6154,"GetMaxNumberOfLoggedNotifications",0],[469,"call","TryGetEntityKeyValue",5],[479,"write",2000000096,"Insert",1],[481,"call","IsDetailedLoggingEnabled",0],[483,"call","DateTimeToString",1],[483,"call","DateTimeToString",1],[490,"call","DateTimeToString",1],[491,"call","DateTimeToString",1]]},{"name":"TryGetEntityKeyField","line":496,"kind":"procedure","params":4,"steps":[[501,"call","DateTimeToString",1],[507,"call","DateTimeToString",1]]},{"name":"TryGetEntityKeyValue","line":516,"kind":"procedure","access":"local","params":5,"steps":[[520,"call","TryGetEntityKeyField",4],[524,"ext","codeunit",5465,"GetIdWithoutBrackets",1],[528,"call","GetRawFieldValue",2]]},{"name":"GetRawFieldValue","line":534,"kind":"procedure","access":"local","params":2,"steps":[[549,"ext","codeunit",5465,"GetIdWithoutBrackets",1],[564,"call","SetBoolFormat",1],[569,"call","SetDateFormat",1],[574,"call","SetTimeFormat",1],[579,"call","SetDateTimeFormat",1],[593,"call","SetDecimalFormat",1]]},{"name":"SetDateTimeFormat","line":614,"kind":"procedure","access":"local","params":1,"steps":[[617,"call","SetDateFormat",1],[617,"call","SetTimeFormat",1],[619,"call","SetDateFormat",1],[619,"call","SetTimeFormat",1]]},{"name":"ScheduleJob","line":641,"kind":"procedure","params":1,"steps":[[648,"call","GetDelayTime",0],[650,"call","IsDetailedLoggingEnabled",0],[651,"call","DateTimeToString",1],[651,"call","DateTimeToString",1],[651,"call","DateTimeToString",1],[653,"call","CanScheduleJob",0],[668,"call","DateTimeToString",1],[675,"call","GetMaxNumberOfJobs",0],[676,"call","DeleteHangingJob",0],[677,"call","GetMaxNumberOfJobs",0],[681,"call","CreateJob",1]]},{"name":"CanScheduleJob","line":684,"kind":"procedure","access":"internal","params":0,"steps":[[695,"ext","table",472,"HasRequiredPermissions",0],[697,"event","OnCanCreateTask",0]]},{"name":"DeleteHangingJob","line":709,"kind":"procedure","access":"local","params":0,"steps":[[724,"call","IsHangingJob",1],[725,"call","DateTimeToString",1],[727,"write",472,"Delete"]]},{"name":"IsHangingJob","line":734,"kind":"procedure","access":"local","params":1,"steps":[[747,"call","GetStuckReadyJobThreshold",0]]},{"name":"CreateJob","line":762,"kind":"procedure","access":"local","params":1,"steps":[[767,"call","GetDelayTime",0],[769,"call","DateTimeToString",1],[771,"call","SetJobParameters",2],[772,"run","codeunit",453]]},{"name":"SetJobParameters","line":775,"kind":"procedure","access":"local","params":2,"steps":[[777,"call","CreateApiWebhookJobCategoryIfMissing",0],[786,"call","GetDelayTime",0]]},{"name":"CreateApiWebhookJobCategoryIfMissing","line":789,"kind":"procedure","access":"local","params":0,"steps":[[795,"validate",471,"Code"],[796,"validate",471,"Description"],[797,"write",471,"Insert",1]]},{"name":"GetDelayTime","line":801,"kind":"procedure","access":"local","params":0,"steps":[[807,"event","OnGetDelayTime",0],[811,"ext","codeunit",6723,"GetApiSubscriptionDelayTime",0]]},{"name":"IsDetailedLoggingEnabled","line":821,"kind":"procedure","params":0,"steps":[[829,"event","OnGetDetailedLoggingEnabled",0]]},{"name":"HandleDeleteAPIWebhookNotification","line":840,"kind":"procedure","access":"local","params":2,"steps":[[842,"write",2000000096,"DeleteAll"]]},{"name":"IsApiSubscriptionEnabled","line":861,"kind":"procedure","access":"local","params":0,"steps":[[868,"ext","codeunit",5465,"IsApiSubscriptionEnabled",0]]},{"name":"HandleOnClearCompanyConfig","line":893,"kind":"procedure","access":"local","params":2,"steps":[[895,"call","CleanupAPIWebhookSetup",0]]},{"name":"CleanupAPIWebhookSetup","line":898,"kind":"procedure","access":"local","params":0,"steps":[[904,"write",2000000095,"DeleteAll"],[906,"write",2000000096,"DeleteAll"],[908,"write",2000000098,"DeleteAll"]]}]}