web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Correct approach for application written for BC OnPrem to the cloud?

(0) ShareShare
ReportReport
Posted on by 441

Hi All,
We faced the error "implemented cloud is not cloud-optimized", thus we added the granule to the license for our endusers, but now, we would like to make our code cloud compatible, thus I have to rewrite the code of our application to be cloud compatible, and still usable for OnPrem deployment. So, the code has to be written for the cloud, but it will work also on OnPrem deployment. Is this correct?

I have some ideas what to do for an app to be cloud compatible, but still I cannot find the exact steps what has to be changed in the code and objects, so that the app is cloud compatible, for example:

1. app.json file -> change the property "target":"OnPrem" -> "target":"Cloud"

2. everywhere where we are referring our code [OnPrem] has to be commented.

2. all .nets have to be replaced with the Azure Functions or some 3rd party application with the use of WebService to handle .net code.

3. for any file storage in the FTP has to be switched to the OneDrive or Sharepoint. We will not store files directly in the BLOB fields in the database, anymore.

4. any custom table fields have to be written with prefix "Rec." => Rec."FieldName"

Is the procedure exactly the same as when I am writting the custom code on BC SaaS Sandbox environment?

Thank you

BR Damjan

I have the same question (0)
  • Suggested answer
    DAnny3211 Profile Picture
    11,397 on at

    hi

    look this

    learn.microsoft.com/.../migrate-data

    DAniele

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,105 Moderator on at

    You should start by implementing the code analysis tool in your applications. Those will make sure you are cloud compliant.

    You can also use them if you want to put your app on AppSourse.

    learn.microsoft.com/.../devenv-using-code-analysis-tool-with-rule-set

    You will also find lots of useful information here.

    learn.microsoft.com/.../readiness-ready-to-go

    Especially look at the links around al-go for gihub.

    github.com/.../al-go-appsource

    github.com/.../al-go-pte

  • Suggested answer
    YUN ZHU Profile Picture
    95,483 Super User 2025 Season 2 on at

    Hi, Yes, as long as the version is the same, the code you write for SaaS can be installed on On-Pre. The SaaS version is updated at any time, and On-Pre is updated monthly and needs to be manually upgraded.

    Generally, developers will choose Docker, but there is no problem in developing in SaaS Sandbox.

    Hope this helps as well.

    Thanks.

    ZHU

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,098

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,556 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,108 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans