Knowledgebase:
GetDepartments
Posted by Angham Al-Banawien, Last modified by Rawan Al Hourani on 04 July 2018 09:56 AM

Syntax 

Public Function GetDepartments(As CallingResultsEnum 

Description

This function is used to get all departments that the logged in dealer has a privilege on it After the GetDepartments method executes the DepartmentsResultReceived event fires.

Parameters

No parameters.

Return value

Returns a value of type CallingResultsEnum, If the request was sent to the server successfully it will return SuccessResult.

Sample

Private Sub GetDepartments _Click()
                    Dim result As CallingResultsEnum
          result = BOAPI.GetDepartments()
          Msgbox(result)
     End sub

     Private Sub BOAPI_DepartmentsResultReceived(ByRef Departments As CDepartments, ByRef Count As Integer) Handles BOAPI.DepartmentsResultReceived

      If Count > 0 then
           For i As Integer = 0 To Count -1
                Dim dep As CDepartment
               dep = Departments.Item(i)
               MsgBox(dep.DeptID)
           Next
      End if

End sub

 


See Also


VertexFX Backoffice API Index

 

Last Modified: 29 June 2018 

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions