Hi all,
We all have used Codeunit 1 "ApplicationManagement" some way or other. It was used for so many customizations till NAV 2018 using Codeunit 1.
Remember - Report Logger, ChangeLog, Checking Build Number, System Indicators, DateText Functions, and others that we would have used in Codeunit 1.
But Microsoft decided to drop codeunit 1 going forward with Business Central Release and it's not a bug.
So what happens to our functions that we were using. Don't worry Microsoft have moved those function to other code units which can be rewritten during an upgrade to business Central.
Few other updates -
1. New ‘system’ codeunits have been introduced in the 2 billion range.
2. These special codeunits are created by C/SIDE when a database is created automatically.
3. These new system codeunits do not contain code, all they contain are event publishers.
4. Microsoft added subscribers to these new business events in various places.
5. All the functionality still works as before, no functionality was removed.
Official Announcement - https://blogs.msdn.microsoft.com/nav/2018/09/12/new-system-events-replace-codeunit-1-in-business-central-october18-release/
Which functions become which events?
Will try to come back at the same pace for blogging and will keep you updated. I have so much to share about the learnings that I had during the last 6-8 months.
Stay tuned.
Regards,
Saurav Dhyani
www.sauravdhyani.com
We all have used Codeunit 1 "ApplicationManagement" some way or other. It was used for so many customizations till NAV 2018 using Codeunit 1.
Remember - Report Logger, ChangeLog, Checking Build Number, System Indicators, DateText Functions, and others that we would have used in Codeunit 1.
But Microsoft decided to drop codeunit 1 going forward with Business Central Release and it's not a bug.
So what happens to our functions that we were using. Don't worry Microsoft have moved those function to other code units which can be rewritten during an upgrade to business Central.
Few other updates -
1. New ‘system’ codeunits have been introduced in the 2 billion range.
2. These special codeunits are created by C/SIDE when a database is created automatically.
3. These new system codeunits do not contain code, all they contain are event publishers.
4. Microsoft added subscribers to these new business events in various places.
5. All the functionality still works as before, no functionality was removed.
Official Announcement - https://blogs.msdn.microsoft.com/nav/2018/09/12/new-system-events-replace-codeunit-1-in-business-central-october18-release/
Which functions become which events?
Codeunit 1 function name | New Object Type | New Object ID | New function name |
CompanyOpen | Codeunit | 40 | CompanyOpen |
GetSystemIndicator | Codeunit | 40 | GetSystemIndicator |
CompanyClose | Codeunit | 40 | CompanyClose |
FindPrinter | Codeunit | 44 | GetPrinterName |
ApplicationVersion | Codeunit | 9015 | ApplicationVersion |
CustomApplicationVersion | N/A | N/A | N/A |
ReleaseVersion | Codeunit | 9015 | ReleaseVersion |
ApplicationBuild | Codeunit | 9015 | ApplicationBuild |
CustomApplicationBuild | N/A | N/A | N/A |
ApplicationLanguage | Codeunit | 43 | ApplicationLanguage |
DefaultRoleCenter | Codeunit | 9170 | DefaultRoleCenterID |
MakeDateTimeText | Codeunit | 41 | MakeDateTimeText |
GetSeparateDateTime | Codeunit | 41 | GetSeparateDateTime |
MakeDateText | Codeunit | 41 | MakeDateText |
MakeTimeText | Codeunit | 41 | MakeTimeText |
MakeText | Codeunit | 41 | MakeText |
MakeDateTimeFilter | Codeunit | 41 | MakeDateTimeFilter |
MakeDateFilter | Codeunit | 41 | MakeDateFilter |
MakeTextFilter | Codeunit | 41 | MakeTextFilter |
MakeCodeFilter | Codeunit | 41 | MakeTextFilter |
MakeTimeFilter | Codeunit | 41 | MakeTimeFilter |
AutoFormatTranslate | Codeunit | 45 | AutoFormatTranslate |
ReadRounding | Codeunit | 45 | ReadRounding |
CaptionClassTranslate | Codeunit | 42 | CaptionClassTranslate |
GetCueStyle | Codeunit | 9701 | GetCueStyle |
SetGlobalLanguage | Codeunit | 43 | SetGlobalLanguage |
ValidateApplicationlLanguage | Codeunit | 43 | ValidateApplicationLanguage |
LookupApplicationlLanguage | Codeunit | 43 | LookupApplicationLanguage |
GetGlobalTableTriggerMask | Codeunit | 49 | GetGlobalTableTriggerMask |
OnGlobalInsert | Codeunit | 49 | OnGlobalInsert |
OnGlobalModify | Codeunit | 49 | OnGlobalModify |
OnGlobalDelete | Codeunit | 49 | OnGlobalDelete |
OnGlobalRename | Codeunit | 49 | OnGlobalRename |
GetDatabaseTableTriggerSetup | Codeunit | 49 | GetDatabaseTableTriggerSetup |
OnDatabaseInsert | Codeunit | 49 | OnDatabaseInsert |
OnDatabaseModify | Codeunit | 49 | OnDatabaseModify |
OnDatabaseDelete | Codeunit | 49 | OnDatabaseDelete |
OnDatabaseRename | Codeunit | 49 | OnDatabaseRename |
OnDebuggerBreak | Codeunit | 9500 | ProcessOnDebuggerBreak |
LaunchDebugger | Codeunit | 9500 | OpenDebugger |
OpenSettings | Codeunit | 9170 | OpenSettings |
OpenContactMSSales | Codeunit | 50 | OpenContactMSSales |
InvokeExtensionInstallation | Codeunit | 2501 | InvokeExtensionInstallation |
CustomizeChart | Codeunit | 9180 | CustomizeChart |
HasCustomLayout | Codeunit | 44 | HasCustomLayout |
MergeDocument | Codeunit | 44 | MergeDocument |
ReportGetCustomRdlc | Codeunit | 44 | ReportGetCustomRdlc |
ReportScheduler | Codeunit | 44 | ScheduleReport |
OnBeforeOpenSettings | Codeunit | 9170 | OnBeforeOpenSettings |
OnAfterGetApplicationVersion | Codeunit | 9015 | OnAfterGetApplicationVersion |
OnBeforeCompanyOpen | Codeunit | 40 | OnBeforeCompanyOpen |
OnAfterCompanyOpen | Codeunit | 40 | OnAfterCompanyOpen |
OnRoleCenterOpen | Codeunit | 9170 | OnRoleCenterOpen |
OnBeforeCompanyClose | Codeunit | 40 | OnBeforeCompanyClose |
OnAfterCompanyClose | Codeunit | 40 | OnAfterCompanyClose |
OnAfterGetSystemIndicator | Table | 79 | OnAfterGetSystemIndicator |
OnAfterFindPrinter | Codeunit | 44 | OnAfterGetPrinterName |
OnAfterGetDefaultRoleCenter | Codeunit | 9170 | OnAfterGetDefaultRoleCenter |
OnAfterMakeDateText | N/A | N/A | N/A |
OnAfterMakeTimeText | N/A | N/A | N/A |
OnAfterMakeText | N/A | N/A | N/A |
OnAfterMakeDateTimeFilter | Codeunit | 41 | OnAfterMakeDateTimeFilter |
OnAfterMakeDateFilter | Codeunit | 41 | OnAfterMakeDateFilter |
OnAfterMakeTextFilter | Codeunit | 41 | OnAfterMakeTextFilter |
OnAfterMakeCodeFilter | N/A | N/A | N/A |
OnAfterMakeTimeFilter | Codeunit | 41 | OnAfterMakeTimeFilter |
OnAfterAutoFormatTranslate | Codeunit | 45 | OnAfterAutoFormatTranslate |
OnAfterCaptionClassTranslate | Codeunit | 42 | OnAfterCaptionClassTranslate |
OnAfterGetGlobalTableTriggerMask | Codeunit | 49 | OnAfterGetGlobalTableTriggerMask |
OnAfterOnGlobalInsert | Codeunit | 49 | OnAfterOnGlobalInsert |
OnAfterOnGlobalModify | Codeunit | 49 | OnAfterOnGlobalModify |
OnAfterOnGlobalDelete | Codeunit | 49 | OnAfterOnGlobalDelete |
OnAfterOnGlobalRename | Codeunit | 49 | OnAfterOnGlobalRename |
OnAfterGetDatabaseTableTriggerSetup | Codeunit | 49 | OnAfterGetDatabaseTableTriggerSetup |
OnAfterOnDatabaseInsert | Codeunit | 49 | OnAfterOnDatabaseInsert |
OnAfterOnDatabaseModify | Codeunit | 49 | OnAfterOnDatabaseModify |
OnAfterOnDatabaseDelete | Codeunit | 49 | OnAfterOnDatabaseDelete |
OnAfterOnDatabaseRename | Codeunit | 49 | OnAfterOnDatabaseRename |
OnAfterHasCustomLayout | Codeunit | 44 | OnAfterHasCustomLayout |
OnAfterReportGetCustomRdlc | Table | 9650 | OnAfterReportGetCustomRdlc |
OnBeforeOnDatabaseInsert | Codeunit | 49 | OnBeforeOnDatabaseInsert |
OnBeforeOnDatabaseModify | Codeunit | 49 | OnBeforeOnDatabaseModify |
OnBeforeOnDatabaseDelete | Codeunit | 49 | OnBeforeOnDatabaseDelete |
OnBeforeOnDatabaseRename | Codeunit | 49 | OnBeforeOnDatabaseRename |
OnEditInExcel | Codeunit | 6710 | OnEditInExcel |
OnInstallAppPerDatabase | N/A | N/A | N/A |
OnInstallAppPerCompany | N/A | N/A | N/A |
OnCheckPreconditionsPerDatabase | Codeunit | 9900 | OnCheckPreconditionsPerDatabase |
OnCheckPreconditionsPerCompany | Codeunit | 9900 | RaiseOnCheckPreconditionsPerCompany |
OnUpgradePerDatabase | Codeunit | 9900 | OnUpgradePerDatabase |
OnUpgradePerCompany | Codeunit | 9900 | OnUpgradePerCompany |
OnValidateUpgradePerDatabase | Codeunit | 9900 | OnValidateUpgradePerDatabase |
OnValidateUpgradePerCompany | Codeunit | 9900 | OnValidateUpgradePerCompany |
Will try to come back at the same pace for blogging and will keep you updated. I have so much to share about the learnings that I had during the last 6-8 months.
Stay tuned.
Regards,
Saurav Dhyani
www.sauravdhyani.com
Comments
Post a Comment