Hi Renjan, include: using Microsoft.Dexterity.Applications; Reference the following static readonly global settings to get what you need: // SQL company database name (ie. TWO) public static readonly string DataBase = Dynamics.Globals.IntercompanyId.Value; // current user's login public static readonly string UserID = Dynamics.Globals.UserId.Value; // references the ODBC name in registry holding the SQL server instance name public static readonly string DataSource = Dynamics.Globals.SqlDataSourceName.Value; // company id index public static readonly short CompanyId = Dynamics.Globals.CompanyId.Value; // gp date public static readonly DateTime UserDate = Dynamics.Globals.UserDate.Value;
↧