Codeunit 6154 API Webhook Notification Send
src/Layers/W1/BaseApp/System/API/Webhooks/APIWebhookNotificationSend.Codeunit.al62 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT
OnRun line 26, trigger
- 35callsIsApiSubscriptionEnabled
- 47callsCodeunit 6153 API Webhook Notification Mgt. CanScheduleJob
- 52callsInitialize
- 53callsDeleteExpiredSubscriptions
- 54callsDeleteObsoleteSubscriptions
- 55callsDeleteInactiveJobs
- 57callsGetActiveSubscriptions
- 65callsProcessNotifications
- 70callsDeleteObsoleteNotifications
Initialize line 198, local
- 201writesTable 2000000098 API Webhook Notification Aggr DeleteAll
- 206writesTable 2000000095 API Webhook Subscription DeleteAll
- 211writesTable 2000000096 API Webhook Notification DeleteAll
ProcessNotifications line 226, local
- 231callsDateTimeToString
- 232raisesOnBeforeProcessNotifications
- 233callsTransferAggregateNotificationsToBuffer
- 234callsGenerateAggregateNotifications
- 236callsSendNotifications
- 237callsUpdateTablesFromBuffer
- 239callsCodeunit 6153 API Webhook Notification Mgt. ScheduleJob
- 243callsDateTimeToString
- 243callsDateTimeToString
- 245raisesOnAfterProcessNotifications
SendNotifications line 248, local
GetPayloadPerNotificationUrl line 279, local
- 288callsCodeunit 5459 JSON Management InitializeEmptyCollection
- 289callsCodeunit 5459 JSON Management GetJsonArray
- 292callsAddPayloadPerSubscription
- 300callsFormatPayloadPerNotificationUrl
AddPayloadPerSubscription line 304, local
- 310callsGetSystemIdBySubscriptionId
- 318callsClearFiltersFromNotificationsBuffer
- 330callsGetEntityJObject
- 331callsCodeunit 5459 JSON Management AddJObjectToJArray
- 333callsChangeTypeToString
- 334callsDateTimeToString
FormatPayloadPerNotificationUrl line 344, local
- 355callsCodeunit 5459 JSON Management InitializeCollection
- 356callsCodeunit 5459 JSON Management GetJsonArray
- 357callsCodeunit 5459 JSON Management InitializeEmptyObject
- 358callsCodeunit 5459 JSON Management GetJSONObject
- 359callsCodeunit 5459 JSON Management AddJArrayToJObject
- 362callsCodeunit 5459 JSON Management InitializeEmptyObject
- 363callsCodeunit 5459 JSON Management GetJSONObject
- 364callsCodeunit 5459 JSON Management AddJPropertyToJObject
- 365callsCodeunit 5459 JSON Management AddJPropertyToJObject
TransferAggregateNotificationsToBuffer line 379, local
GenerateAggregateNotifications line 403, local
- 410callsClearFiltersFromNotificationsBuffer
- 413callsCollectFirstModifiedTimeForPendingCollectionNotifications
- 416callsGetPendingNotifications
- 418callsIsNullUpdate
- 420callsGenerateAggregateNotification
GenerateAggregateNotification line 432, local
- 436callsGetSystemIdBySubscriptionId
- 437callsChangeTypeToString
- 437callsDateTimeToString
- 439callsClearFiltersFromNotificationsBuffer
- 443callsMergeIntoExistingCollectionAggregateNotification
- 448callsMergeIntoExistingUpdatedAggregateNotification
- 452callsGenerateSingleAggregateNotification
- 455callsMergeAllIntoNewCollectionAggregateNotification
CollectFirstModifiedTimeForPendingCollectionNotifications line 458, local
- 462callsClearFiltersFromNotificationsBuffer
- 471callsCollectFirstModifiedTimeBySubscriptionId
MergeIntoExistingCollectionAggregateNotification line 478, local
- 489callsGetSystemIdBySubscriptionId
- 491callsChangeTypeToString
- 491callsDateTimeToString
- 493callsClearFiltersFromNotificationsBuffer
- 507callsGetLastNotification
- 510writesTable 2000000098 API Webhook Notification Aggr Modify(true)
- 515callsChangeTypeToString
- 517writesTable 2000000098 API Webhook Notification Aggr Modify(true)
- 523callsHasNotificationOnDelete
- 528writesTable 2000000098 API Webhook Notification Aggr Modify(true)
- 539writesTable 2000000098 API Webhook Notification Aggr Insert
- 541callsChangeTypeToString
- 542callsDateTimeToString
- 544callsDateTimeToString
- 550writesTable 2000000098 API Webhook Notification Aggr DeleteAll
- 554callsDateTimeToString
- 554callsDateTimeToString
- 556callsCollectFirstModifiedTimeBySubscriptionId
MergeIntoExistingUpdatedAggregateNotification line 560, local
- 562callsClearFiltersFromNotificationsBuffer
- 567callsGetSystemIdBySubscriptionId
- 567callsDateTimeToString
- 570writesTable 2000000098 API Webhook Notification Aggr Modify(true)
GenerateSingleAggregateNotification line 576, local
MergeAllIntoNewCollectionAggregateNotification line 603, local
- 611callsGetSystemIdBySubscriptionId
- 613callsDateTimeToString
- 614callsClearFiltersFromNotificationsBuffer
- 625callsHasNotificationOnDelete
- 629writesTable 2000000098 API Webhook Notification Aggr Modify(true)
- 634callsDateTimeToString
- 634callsDateTimeToString
- 636callsCollectFirstModifiedTimeBySubscriptionId
- 638callsClearFiltersFromNotificationsBuffer
- 641writesTable 2000000098 API Webhook Notification Aggr DeleteAll
- 646writesTable 2000000098 API Webhook Notification Aggr Insert
- 648callsChangeTypeToString
- 649callsDateTimeToString
- 651callsDateTimeToString
IsNullUpdate line 673, local
CollectValuesInDictionaries line 719, local
- 721callsCollectSystemIdBySubscriptionId
- 722callsCollectTableIdBySubscriptionId
- 723callsCollectKeyFieldTypeBySubscriptionId
- 724callsCollectResourceUrlBySubscriptionId
- 725callsCollectNotificationUrlBySubscriptionId
- 726callsCollectSubscriptionsPerNotificationUrl
- 727callsCollectSubscriptionTypesPerNotificationUrl
CollectSystemIdBySubscriptionId line 730, local
- 735callsCodeunit 6153 API Webhook Notification Mgt. IsDetailedLoggingEnabled
CollectTableIdBySubscriptionId line 741, local
- 746callsCodeunit 6153 API Webhook Notification Mgt. IsDetailedLoggingEnabled
CollectKeyFieldTypeBySubscriptionId line 751, local
- 758callsCodeunit 6153 API Webhook Notification Mgt. IsDetailedLoggingEnabled
- 761callsCodeunit 6153 API Webhook Notification Mgt. GetEntity
- 765callsCodeunit 6153 API Webhook Notification Mgt. TryGetEntityKeyField
CollectFirstModifiedTimeBySubscriptionId line 774, local
- 780callsGetSystemIdBySubscriptionId
- 790writesTable 2000000096 API Webhook Notification Insert
- 798writesTable 2000000096 API Webhook Notification Modify
CollectResourceUrlBySubscriptionId line 805, local
- 810callsCodeunit 6153 API Webhook Notification Mgt. IsDetailedLoggingEnabled
- 815callsCodeunit 6153 API Webhook Notification Mgt. IsDetailedLoggingEnabled
- 817callsGetResourceUrl
CollectNotificationUrlBySubscriptionId line 821, local
- 826callsCodeunit 6153 API Webhook Notification Mgt. IsDetailedLoggingEnabled
- 831callsCodeunit 6153 API Webhook Notification Mgt. IsDetailedLoggingEnabled
- 833callsGetNotificationUrl
CollectSubscriptionsPerNotificationUrl line 837, local
- 845callsCodeunit 6153 API Webhook Notification Mgt. IsDetailedLoggingEnabled
- 848callsGetNotificationUrlBySubscriptionId
CollectSubscriptionTypesPerNotificationUrl line 861, local
- 868callsCodeunit 6153 API Webhook Notification Mgt. IsDetailedLoggingEnabled
- 871callsGetNotificationUrlBySubscriptionId
DeleteNotifications line 882, local
- 888callsGetSystemIdBySubscriptionId
- 890callsClearFiltersFromNotificationsBuffer
- 892writesTable 2000000098 API Webhook Notification Aggr DeleteAll
DeleteInvalidSubscriptions line 897, local
- 904callsGetSystemIdBySubscriptionId
- 907callsLogActivity
- 907callsGetSubscriptionDetails
- 908callsCodeunit 6153 API Webhook Notification Mgt. DeleteSubscription
DeleteObsoleteNotifications line 913, local
- 921callsGetActiveSubscriptions
- 923callsGetDeletedSubscriptionsByAggregateNotifications
- 925callsDeleteObsoleteAggregateNotifications
- 929callsGetDeletedSubscriptionsByNotifications
DeleteObsoleteNotifications line 971, local
- 988callsCodeunit 6153 API Webhook Notification Mgt. ForceDeleteAPIWebhookNotifications
DeleteObsoleteAggregateNotifications line 992, local
- 1009writesTable 2000000098 API Webhook Notification Aggr DeleteAll
IncreaseAttemptNumber line 1013, local
- 1018callsDateTimeToString
- 1020callsGetSystemIdBySubscriptionId
- 1020callsDateTimeToString
- 1022callsLogActivity
- 1022callsGetSubscriptionDetails
- 1023callsClearFiltersFromNotificationsBuffer
- 1027callsGetSystemIdBySubscriptionId
- 1030writesTable 2000000098 API Webhook Notification Aggr Modify
- 1032callsChangeTypeToString
- 1033callsDateTimeToString
- 1035callsDateTimeToString
- 1036callsDateTimeToString
- 1039callsChangeTypeToString
- 1040callsDateTimeToString
- 1042callsDateTimeToString
- 1043callsDateTimeToString
UpdateTablesFromBuffer line 1049, local
DeleteProcessedNotifications line 1056, local
- 1061callsDateTimeToString
- 1065callsCodeunit 6153 API Webhook Notification Mgt. ForceDeleteAPIWebhookNotifications
SaveFailedAggregateNotifications line 1069, local
- 1076writesTable 2000000098 API Webhook Notification Aggr DeleteAll(true)
- 1077callsClearFiltersFromNotificationsBuffer
- 1085callsGetDelayTimeForAttempt
- 1090callsCodeunit 6153 API Webhook Notification Mgt. IsDetailedLoggingEnabled
- 1091callsGetSystemIdBySubscriptionId
- 1091callsChangeTypeToString
- 1092callsDateTimeToString
- 1093writesTable 2000000098 API Webhook Notification Aggr Insert(true)
- 1094callsGetSystemIdBySubscriptionId
- 1095callsChangeTypeToString
- 1096callsDateTimeToString
- 1098callsDateTimeToString
- 1103callsDateTimeToString
SendNotification line 1106, local
- 1127raisesOnBeforeSendNotification
- 1130callsSendRequest
- 1137raisesOnAfterSendNotification
- 1138raisesOnAfterSendNotificationWithStatusNumber
- 1142callsShouldReschedule
- 1144callsLogActivity
SendRequest line 1160, local
- 1183callsCodeunit 1297 Http Web Request Mgt. Initialize
- 1184callsCodeunit 1297 Http Web Request Mgt. DisableUI
- 1185callsCodeunit 1297 Http Web Request Mgt. SetMethod
- 1186callsCodeunit 1297 Http Web Request Mgt. SetReturnType
- 1187callsCodeunit 1297 Http Web Request Mgt. SetContentType
- 1188callsCodeunit 1297 Http Web Request Mgt. AddHeader
- 1189callsCodeunit 1297 Http Web Request Mgt. AddHeader
- 1194callsAddTokenToRequestHeader
- 1196callsCodeunit 1297 Http Web Request Mgt. SetTimeout
- 1196callsGetSendingNotificationTimeout
- 1199callsCodeunit 1297 Http Web Request Mgt. AddBodyAsTextWithEncoding
- 1201raisesOnSendRequestOnBeforeSendRequestAndReadTextResponse
- 1202callsGetMaskedUrl
- 1204callsCodeunit 1297 Http Web Request Mgt. SendRequestAndReadTextResponse
- 1211callsGetMaskedUrl
AddTokenToRequestHeader line 1216, local
- 1223callsCodeunit 7201 CDS Integration Impl. GetBusinessEventAccessToken
- 1224callsCodeunit 1297 Http Web Request Mgt. AddHeader
GetEntityJObject line 1280, local
- 1287callsGetSystemIdBySubscriptionId
- 1288callsClearFiltersFromSubscriptionsBuffer
- 1295callsGetEntityUrl
- 1304callsChangeTypeToString
- 1307callsCodeunit 5459 JSON Management InitializeEmptyObject
- 1308callsCodeunit 5459 JSON Management GetJSONObject
- 1309callsCodeunit 5459 JSON Management AddJPropertyToJObject
- 1310callsCodeunit 5459 JSON Management AddJPropertyToJObject
- 1311callsCodeunit 5459 JSON Management AddJPropertyToJObject
- 1312callsCodeunit 5459 JSON Management AddJPropertyToJObject
- 1313callsCodeunit 5459 JSON Management AddJPropertyToJObject
- 1313callsChangeTypeToString
- 1314callsCodeunit 5459 JSON Management AddJPropertyToJObject
- 1317callsCodeunit 5459 JSON Management AddJPropertyToJObject
- 1317callsGetAadUserId
GetAadUserId line 1321, local
- 1331callsCodeunit 5465 Graph Mgt - General Tools StripBrackets
GetEntityUrl line 1348, local
GetSingleEntityUrl line 1359, local
- 1366callsGetResourceUrlBySubscriptionId
- 1371callsAddCompanyIdToResource
- 1373callsGetEntityKeyFieldTypeBySubscriptionId
- 1377callsGetUriEscapeFieldValue
GetEntityCollectionUrl line 1383, local
- 1391callsGetResourceUrlBySubscriptionId
- 1396callsAddCompanyIdToResource
- 1398callsGetFirstModifiedTimeBySubscriptionId
- 1402callsHasLastModifiedDateTimeField
- 1407callsDateTimeToUtcString
GetUriEscapeFieldValue line 1412, local
- 1419callsAddQuotes
- 1419callsCodeunit 10 Type Helper UriEscapeDataString
- 1421callsAddQuotes
- 1423callsAddQuotes
- 1423callsCodeunit 10 Type Helper UriEscapeDataString
- 1425callsAddQuotes
GetEntityKeyFieldTypeBySubscriptionId line 1437, local
- 1442callsGetSystemIdBySubscriptionId
- 1448callsGetSystemIdBySubscriptionId
- 1452callsCodeunit 6153 API Webhook Notification Mgt. IsDetailedLoggingEnabled
- 1453callsGetSystemIdBySubscriptionId
GetFirstModifiedTimeBySubscriptionId line 1457, local
GetResourceUrlBySubscriptionId line 1510, local
- 1515callsGetSystemIdBySubscriptionId
- 1521callsGetSystemIdBySubscriptionId
- 1525callsCodeunit 6153 API Webhook Notification Mgt. IsDetailedLoggingEnabled
- 1526callsGetSystemIdBySubscriptionId
GetNotificationUrlBySubscriptionId line 1530, local
- 1535callsGetSystemIdBySubscriptionId
- 1541callsGetSystemIdBySubscriptionId
- 1545callsCodeunit 6153 API Webhook Notification Mgt. IsDetailedLoggingEnabled
- 1546callsGetSystemIdBySubscriptionId
GetSubscriptionsPerNotificationUrl line 1550, local
- 1569callsCodeunit 6153 API Webhook Notification Mgt. IsDetailedLoggingEnabled
HasLastModifiedDateTimeField line 1594, local
- 1600callsCodeunit 6153 API Webhook Notification Mgt. GetEntity
GetActiveSubscriptions line 1619, local
DeleteObsoleteSubscriptions line 1642, local
- 1651callsCodeunit 6153 API Webhook Notification Mgt. GetEntity
- 1653callsDateTimeToString
- 1654callsLogActivity
- 1654callsGetSubscriptionDetails
- 1655callsCodeunit 6153 API Webhook Notification Mgt. DeleteSubscription
DeleteExpiredSubscriptions line 1660, local
- 1671callsDateTimeToString
- 1672callsLogActivity
- 1673callsGetSubscriptionDetails
- 1674callsCodeunit 6153 API Webhook Notification Mgt. DeleteSubscription
DeleteSubscriptionsWithTooManyFailures line 1678, local
- 1682callsClearFiltersFromNotificationsBuffer
- 1683callsGetMaxNumberOfAttempts
- 1689callsDateTimeToString
- 1691callsLogActivity
- 1692callsGetSubscriptionDetails
- 1693callsCodeunit 6153 API Webhook Notification Mgt. DeleteSubscription
- 1696writesTable 2000000098 API Webhook Notification Aggr DeleteAll
DeleteInactiveJobs line 1699, local
- 1703raisesOnBeforeDeleteInactiveJobs
- 1709callsDateTimeToString
- 1710writesTable 472 Job Queue Entry Delete(true)
- 1718callsDateTimeToString
- 1719writesTable 472 Job Queue Entry Delete(true)
- 1723callsDateTimeToString
- 1724writesTable 472 Job Queue Entry Delete(true)
IsApiSubscriptionEnabled line 1744, local
- 1748callsCodeunit 5465 Graph Mgt - General Tools IsApiSubscriptionEnabled
GetMaxNumberOfNotifications line 1756
- 1762raisesOnGetMaxNumberOfNotifications
- 1766callsCodeunit 6723 Server Setting GetApiSubscriptionMaxNumberOfNotifications
GetMaxNumberOfAttempts line 1770, local
GetSendingNotificationTimeout line 1782, local
- 1788raisesOnGetSendingNotificationTimeout
- 1792callsCodeunit 6723 Server Setting GetApiSubscriptionSendingNotificationTimeout
HandleOnBeforeInsertJobQueueLogEntry line 1825, local
- 1836callsDateTimeToString
- 1840callsLogActivity
DateTimeToUtcString line 1899
- 1906callsCodeunit 5459 JSON Management InitializeEmptyObject
- 1907callsCodeunit 5459 JSON Management GetJSONObject
- 1908callsCodeunit 5459 JSON Management AddJPropertyToJObject
- 1909callsCodeunit 5459 JSON Management GetStringPropertyValueFromJObjectByName
LogActivity line 1913, local
- 1923callsTable 710 Activity Log LogActivity