cancel
Showing results for 
Search instead for 
Did you mean: 

Connect to sboGuiApi

ramco1917
Participant
0 Kudos
83

Hi

  In below code what value should be passed to sboGuiApi.Connect. Currently it is Dummy value.

sboGuiApi.Connect("0030002");

oCompany = new SAPbobsCOM.Company();
oCompany.Server = "NDB@10.0.1.28:30015";
oCompany.DbServerType = BoDataServerTypes.dst_HANADB;
oCompany.CompanyDB = "LIVE_Database";
oCompany.UserName = "manager";
oCompany.Password = "123";
oCompany.language = BoSuppLangs.ln_English;
oCompany.UseTrusted = true;

int connectionResult = oCompany.Connect();
if (connectionResult != 0)
{
throw new Exception("Error connecting to SAP Business One: " + oCompany.GetLastErrorDescription());
}

SboGuiApi sboGuiApi = new SboGuiApi();
sboGuiApi.Connect("0030002");

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi ramco1917,

Kindly always use the following value to make the UI API connection:

0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056

It is supplied by SAP and is valid for both development and run time.

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

ramco1917
Participant
0 Kudos
Thanks a lot
ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi ramco1917,

If you have got the solution, please help to close the thread.

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

Answers (0)