Possibility to connecto to the DI Object without starting B1
Sebastian Schweer
Hallo everybody,i have the following problem. We have to ERP Systems. An old-selfprogrammed ERP which is the Master System for all Master Data and Business One.
So there have to be a matching between this two systems. If somethings change in the old system, the changes also have to been set in Business One.
So the old System creates an csv file with all changes and i want to run an exe, which match all changes to B1. But this should been done automatically
and i don't can start B1 automatically at night.
Did anybody know, to connect to the DI Object of Business One, so that I can create or Update Business Partners or the Item Object without starting B1?
If anybody have a solution for this, please let me know.
Thanks and best regards,
Sebastian
Sebastian Schweer
Hi Everybody,i found a solution:
[CODE]
SAPbobsCOM.Company Vcmp = new SAPbobsCOM.Company();
Vcmp.Server = "DB_SERVER_NAME";
Vcmp.CompanyDB = "DB_NAME";
Vcmp.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2008;
Vcmp.UserName = "manager";
Vcmp.Password = "password";
Vcmp.language = SAPbobsCOM.BoSuppLangs.ln_English;
Vcmp.LicenseServer = "Server_Name:Port";
Vcmp.UseTrusted = true;
//Vcmp.DbUserName = "DB_User_Name";
//Vcmp.DbPassword = "DB_User_Password";
int connected = Vcmp.Connect();
SAPbobsCOM.Items oItem = (SAPbobsCOM.Items) Vcmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems);
oItem.ItemCode = "TestCode";
oItem.ItemName = "TestName";
oItem.Add();[/CODE]
Best Regards,
Sebastian
0
Please sign in to leave a comment.
Comments
0 comments