CheckGLDefaultsValidity - accountsIQ/API-Wiki GitHub Wiki

The CheckGLDefaultsValidity function indicates whether the GL defaults currently saved in the system are valid or not. They could be invalid following an import which changed all GL categories and tax codes for example.

This way, it is possible to determine whether the defaults are correct and can be used to create new codes or need to be adjusted with the GetGLDefaults/SaveGLDefaults methods.

Declaration

C#

public WSResult2OfBoolean CheckGLDefaultsValidity(string token)

Visual Basic

Public Function CheckGLDefaultsValidity(ByVal token As String) As WSResult2OfBoolean

Parameter List

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

Example

The following example checks the validity of the current GL defaults:

C#

Integration ws = new Integration();

String auth = ws.Login(entityID, partnerKey, userKey);
if( auth != null )
{
  WSResult2OfBoolean validity = this.ws.CheckGLDefaultsValidity(this.auth);
  // etc.
}

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 validity As WSResult2OfBoolean = Me.ws.CheckGLDefaultsValidity(Me.auth)
  ' etc.
End If

See Also

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