C General Ledger Accounts
From Sage Evolution SDK | Documentation Portal
The supplier class is used to create General Ledger Accounts which can be used on Ledger related processes.
The following code displays how a new GL Account is created with the basic necessary properties like Code and Account Type specified.
//Assign variable gl to GLAccount class GLAccount gl = new GLAccount(); //Specify Account properties like code and Account Type gl.Code = "SDKAccount"; gl.Type = GLAccount.AccountType.CurrentAsset; //Use the save method to Save the Account gl.Save();