GetGLDefaults - accountsIQ/API-Wiki GitHub Wiki

The GetGLDefaults function retrieves all default values used when creating new GL Accounts.

Declaration

C#

public WSResult2OfGLDefaults GetGLDefaults(string token)

Visual Basic

Public Function GetGLDefaults(ByVal token As String) As WSResult2OfGLDefaults

Parameter List

Parameter Type Description
token String The session token retrieved during authentication.

Example

The following example loads a the current GL defaults.

C#

Integration ws = new Integration();

String auth = ws.Login(entityID, partnerKey, userKey);
if( auth != null )
{
  WSResult2OfGLDefaults defaults = this.ws.GetGLDefaults(this.auth);
  if( defaults.Status == OperationStatus.SUCCESS )
  {
    String code = defaults.CurrencyCode;
    String glCat = defaults.GLCategoryID;
    String glSubCat = defaults.GLSubCategoryID;
    String taxID = defaults.TaxID;
  }
}

Visual Basic

Dim ws As New Integration_1_1

Dim auth As String = ws.Login(entityID, partnerKey, userKey)      
If (Not Me.auth Is Nothing) Then
  Dim defaults As WSResult2OfGLDefaults = Me.ws.GetGLDefaults(Me.auth)
  If (defaults.Status = OperationStatus.Success) Then
      Dim code, glCat, glSubCat, taxID As String
      code = defaults.CurrencyCode
      glCat = defaults.GLCategoryID
      glSubCat = defaults.GLSubCategoryID
      taxID = defaults.TaxID
  End If
End If

See Also

⚠️ **GitHub.com Fallback** ⚠️