Knowledgebase:
CreateDealer
Posted by Angham Al-Banawien, Last modified by Rawan Al Hourani on 04 July 2018 08:31 AM

Syntax 

Public Function CreateDealer(ParentUsername As String, vDealerType As DealerType, Username As  String, Password As String, ClientID As Integer, DealerDesc As String, GMTOffset As String, Optional IsBranch As Boolean = False) As CallingResultsEnum 

Description

This function is used to create a new dealer , Group or department type under the giving dealer username. After CreateDealer executed the CreateDealerResultReceived event fired.

Parameters

Parameter Description 
ParentUsername Dealer username that wants to create a dealer under it, a value of type string.
vDealerType A created dealer type can be one of the DealerType.
Username New dealer username, a value of type string.
Password The dealer password, a  value of type String.
ClientID Client identifier that the new dealer will be has a privilege on. Value of Integer.
DealerDesc The dealer description, a value of type String.
GMTOffset The value of the dealer country GMT offset, a value of type String.
IsBranch If dealer type is department type then this value used to indicate it branch or not, an Optional value of type Boolean.

Return value

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

Sample

Private Sub CreateDealer _Click()

     Dim Res as CallingResultsEnum
     Dim vClient as COClient = BOAPI.ClientByIndex(1)
     Res = BOAPI.CreateDealer(“ParentUsername”,1,”Username”,”Password”, vClient.clientID, ”DealerDes”, Cstr(BOAPI.GMTOffset),false)

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