{"title":"Codeunit 6060 Hybrid Deployment, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/6060-hybrid-deployment/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":6060,"name":"Hybrid Deployment","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/6060-hybrid-deployment/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/6060-hybrid-deployment/source/","path":"src/Layers/W1/BaseApp/HybridDeployment.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:5459":{"name":"JSON Management","url":"https://jonas-paprotka.de/ref/codeunit/5459-json-management/"},"codeunit:9002":{"name":"Permission Manager","url":"https://jonas-paprotka.de/ref/codeunit/9002-permission-manager/"},"table:2000000173":{"name":"Intelligent Cloud Status","url":"https://jonas-paprotka.de/ref/table/2000000173-intelligent-cloud-status/"},"codeunit:9999":{"name":"Upgrade Tag","url":"https://jonas-paprotka.de/ref/codeunit/9999-upgrade-tag/"},"codeunit:9998":{"name":"Upgrade Tag Definitions","url":"https://jonas-paprotka.de/ref/codeunit/9998-upgrade-tag-definitions/"},"table:6060":{"name":"Hybrid Deployment Setup","url":"https://jonas-paprotka.de/ref/table/6060-hybrid-deployment-setup/"},"table:2000000146":{"name":"Intelligent Cloud","url":"https://jonas-paprotka.de/ref/table/2000000146-intelligent-cloud/"}},"procs":[{"name":"Initialize","line":63,"kind":"procedure","params":1,"steps":[[66,"event","OnInitialize",0]]},{"name":"CreateIntegrationRuntime","line":70,"kind":"procedure","params":2,"steps":[[76,"call","TryCreateIntegrationRuntime",1],[79,"call","RetryGetStatus",3],[81,"ext","codeunit",5459,"InitializeObject",1],[82,"ext","codeunit",5459,"GetStringPropertyValueByName",2],[83,"ext","codeunit",5459,"GetStringPropertyValueByName",2]]},{"name":"DisableReplication","line":87,"kind":"procedure","params":0,"steps":[[93,"call","TryDisableReplication",1],[96,"call","TryDisableReplication",1],[107,"call","RetryGetStatus",4],[109,"call","EnableIntelligentCloud",1],[111,"event","OnAfterDisableReplication",0]]},{"name":"DisableDataLakeMigration","line":115,"kind":"procedure","params":0,"steps":[[120,"call","TryDisableDataLakeMigration",1],[123,"call","RetryGetStatus",3]]},{"name":"EnableReplication","line":133,"kind":"procedure","params":6,"steps":[[146,"event","OnBeforeEnableReplication",0],[150,"call","TryEnableReplication",13],[156,"call","RetryGetStatus",3],[158,"call","EnableIntelligentCloud",1],[159,"event","OnBeforeResetUsersToIntelligentCloudPermissions",0],[163,"ext","codeunit",9002,"ResetUsersToIntelligentCloudPermissions",0]]},{"name":"GetIntegrationRuntimeKeys","line":167,"kind":"procedure","params":2,"steps":[[173,"call","TryGetIntegrationRuntimeKeys",1],[176,"call","RetryGetStatus",3],[178,"ext","codeunit",5459,"InitializeObject",1],[179,"ext","codeunit",5459,"GetStringPropertyValueByName",2],[180,"ext","codeunit",5459,"GetStringPropertyValueByName",2]]},{"name":"GetReplicationRunStatus","line":184,"kind":"procedure","params":3,"steps":[[193,"call","TryGetReplicationRunStatus",2],[196,"call","RetryGetStatus",3],[198,"ext","codeunit",5459,"InitializeObject",1],[199,"ext","codeunit",5459,"GetStringPropertyValueByName",2],[200,"ext","codeunit",5459,"GetStringPropertyValueByName",2],[201,"ext","codeunit",5459,"InitializeObject",1],[202,"ext","codeunit",5459,"GetArrayPropertyValueAsStringByName",2],[203,"ext","codeunit",5459,"InitializeCollection",1],[206,"ext","codeunit",5459,"GetCollectionCount",0],[207,"ext","codeunit",5459,"GetObjectFromCollectionByIndex",2],[210,"call","GetErrorMessage",1]]},{"name":"GetRequestStatus","line":220,"kind":"procedure","params":2,"steps":[[222,"event","OnGetRequestStatus",0]]},{"name":"GetVersionInformation","line":226,"kind":"procedure","params":2,"steps":[[232,"call","TryGetVersionInformation",1],[235,"call","RetryGetStatus",3],[237,"ext","codeunit",5459,"InitializeObject",1],[238,"ext","codeunit",5459,"GetStringPropertyValueByName",2],[239,"ext","codeunit",5459,"GetStringPropertyValueByName",2]]},{"name":"InitiateDataLakeMigration","line":243,"kind":"procedure","params":3,"steps":[[249,"call","TryInitiateDataLakeMigration",3],[252,"call","RetryGetStatus",3],[254,"ext","codeunit",5459,"InitializeObject",1],[255,"ext","codeunit",5459,"GetStringPropertyValueByName",2]]},{"name":"PrepareTablesForReplication","line":259,"kind":"procedure","params":0,"steps":[[261,"call","TryPrepareTablesForReplication",0]]},{"name":"RegenerateIntegrationRuntimeKeys","line":266,"kind":"procedure","params":2,"steps":[[272,"call","TryRegenerateIntegrationRuntimeKeys",1],[275,"call","RetryGetStatus",3],[277,"ext","codeunit",5459,"InitializeObject",1],[278,"ext","codeunit",5459,"GetStringPropertyValueByName",2],[279,"ext","codeunit",5459,"GetStringPropertyValueByName",2]]},{"name":"ResetCloudData","line":283,"kind":"procedure","params":0,"steps":[[287,"write",2000000173,"ModifyAll"]]},{"name":"RunReplication","line":292,"kind":"procedure","params":2,"steps":[[298,"event","OnBeforeRunReplication",0],[300,"call","TryRunReplication",2],[303,"call","RetryGetStatus",3],[305,"ext","codeunit",5459,"InitializeObject",1],[306,"ext","codeunit",5459,"GetStringPropertyValueByName",2]]},{"name":"StartDataUpgrade","line":310,"kind":"procedure","params":0,"steps":[[312,"event","OnStartDataUpgrade",0]]},{"name":"RunUpgrade","line":316,"kind":"procedure","params":0,"steps":[[321,"call","TryRunUpgrade",1],[324,"call","RetryGetStatus",3]]},{"name":"SetReplicationSchedule","line":328,"kind":"procedure","params":4,"steps":[[333,"call","TrySetReplicationSchedule",5],[336,"call","RetryGetStatus",3]]},{"name":"SanitizeCompanyBeforeUpgrade","line":339,"kind":"procedure","params":0,"steps":[[345,"ext","codeunit",9999,"HasUpgradeTag",1],[345,"ext","codeunit",9998,"SanitizeCloudMigratedDataUpgradeTag",0],[349,"call","SanitizeFields",2],[351,"ext","codeunit",9999,"SetUpgradeTag",1],[351,"ext","codeunit",9998,"SanitizeCloudMigratedDataUpgradeTag",0]]},{"name":"HandleCompanyInit","line":372,"kind":"procedure","access":"local","params":0,"steps":[[380,"write",6060,"Insert"]]},{"name":"EnableIntelligentCloud","line":383,"kind":"procedure","access":"local","params":1,"steps":[[390,"write",2000000146,"Insert"],[393,"write",2000000146,"Modify"]]},{"name":"RetryGetStatus","line":402,"kind":"procedure","access":"local","params":4,"steps":[[412,"call","GetRequestStatus",2],[416,"call","GetErrorMessage",2]]},{"name":"TryCreateIntegrationRuntime","line":524,"kind":"procedure","access":"local","params":1,"steps":[[526,"event","OnCreateIntegrationRuntime",0]]},{"name":"TryDisableDataLakeMigration","line":530,"kind":"procedure","access":"local","params":1,"steps":[[532,"event","OnDisableDataLakeMigration",0]]},{"name":"TryDisableReplication","line":536,"kind":"procedure","access":"local","params":1,"steps":[[538,"event","OnDisableReplication",0]]},{"name":"TryEnableReplication","line":542,"kind":"procedure","access":"local","params":13,"steps":[[544,"event","OnEnableReplication",0],[547,"call","ValidateInstanceId",1]]},{"name":"TryGetIntegrationRuntimeKeys","line":551,"kind":"procedure","access":"local","params":1,"steps":[[553,"event","OnGetIntegrationRuntimeKeys",0],[554,"call","ValidateInstanceId",1]]},{"name":"TryGetReplicationRunStatus","line":558,"kind":"procedure","access":"local","params":2,"steps":[[560,"event","OnGetReplicationRunStatus",0],[561,"call","ValidateInstanceId",1]]},{"name":"TryGetVersionInformation","line":565,"kind":"procedure","access":"local","params":1,"steps":[[567,"event","OnGetVersionInformation",0],[568,"call","ValidateInstanceId",1]]},{"name":"TryInitiateDataLakeMigration","line":572,"kind":"procedure","access":"local","params":3,"steps":[[574,"event","OnInitiateDataLakeMigration",0],[575,"call","ValidateInstanceId",1]]},{"name":"TryPrepareTablesForReplication","line":579,"kind":"procedure","access":"local","params":0,"steps":[[581,"event","OnPrepareTablesForReplication",0]]},{"name":"TryRegenerateIntegrationRuntimeKeys","line":585,"kind":"procedure","access":"local","params":1,"steps":[[587,"event","OnRegenerateIntegrationRuntimeKeys",0],[588,"call","ValidateInstanceId",1]]},{"name":"TryRunReplication","line":592,"kind":"procedure","access":"local","params":2,"steps":[[594,"event","OnRunReplication",0],[595,"call","ValidateInstanceId",1]]},{"name":"TryRunUpgrade","line":599,"kind":"procedure","access":"local","params":1,"steps":[[601,"event","OnRunUpgrade",0],[602,"call","ValidateInstanceId",1]]},{"name":"TrySetReplicationSchedule","line":606,"kind":"procedure","access":"local","params":5,"steps":[[608,"event","OnSetReplicationSchedule",0],[609,"call","ValidateInstanceId",1]]},{"name":"TryGetError","line":613,"kind":"procedure","access":"local","params":3,"steps":[[617,"ext","codeunit",5459,"InitializeObject",1],[618,"ext","codeunit",5459,"GetStringPropertyValueByName",2],[619,"ext","codeunit",5459,"GetStringPropertyValueByName",2]]},{"name":"GetErrorMessage","line":627,"kind":"procedure","access":"local","params":2,"steps":[[632,"call","TryGetError",3],[638,"event","OnGetErrorMessage",0]]},{"name":"VerifyCanStartUpgrade","line":687,"kind":"procedure","access":"internal","params":1,"steps":[[701,"event","OnHandleVerifyCanStartUpgrade",0],[710,"event","OnSkipMinorAndMajorVersionCheck",0],[716,"event","OnCanStartUpgrade",0]]}]}