How to execute functions in codeunit across multiple database

stnavstnav Member Posts: 1
Hi,
We have four databases ( and some companies on each of them) , and we want to write the codes of functions in only one of the database and execute functions( as job) on all of them. Is there a way to do this? Our aim is having the code in one place so that we can ensure that it is same for all databases, companies.

Answers

  • ShaiHuludShaiHulud Member Posts: 190
    You cannot execute code without having it in the system :) Unless you have some very complex situation with Data Exchange Definitions or something...

    Alternatively, if you have the same exact code base and version for all databases, have you considered remaking them as multi-tenant environment? Then you will have 1 application database and 4 data databases. That way you will not have your initial problem to begin with as the 4 databases will run the same application at all times
Sign In or Register to comment.