4

A part of the procedures in the base apps still have the Scope Attribute (https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/attributes/devenv-scope-attribute) defined as OnPrem. Reference is made to base apps and not base app, as there is a base app per localization, eg. W1, BE, etc.


With the Universal Code being introduced, we can no longer call these procedures from our own apps that are dependent on those base app procedures. Reason being Microsoft wants us to have our app build with Scope Attribute set to Cloud.


An example of such a procedure in the base app for BE being procedure WasEntrySelected() in Codeunit "CODA Write Statements".

Category: Development
STATUS DETAILS
Needs Votes
Ideas Administrator

Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team

Comments

F

Maybe the proposal of the idea is too general and needs more examples to gather more votes:


I found 12 matches of Scope('OnPrem') in the sales line table. I was wondering, why the procedure CopyFromSalesLine(FromSalesLine: Record "Sales Line") for example needs the scope OnPrem?


These examples make it extremely difficult for us to program an app that complies with the universal code initiative.


Category: Development