Knowledgebase: > Methods
Posted by Angham Al-Banawien, Last modified by Diana Alkouni on 24 August 2020 10:55 AM


Public Function UpdateDealerInfo(DealerID As Integer, Username As String, Password As String, ClientID As Integer, GMTOffset As String, DealerDesc As String, DealerTreePriv As Integer,Optional IsBranch As Boolean = False) As CallingResultsEnum 


This function is used to update the requested dealer information with new values, After  UpdateDealerInfo executed the UpdateDealerResultReceived event fired.


Parameters Description 
DealerID The dealer identifier to be updated, a value of type Integer.
Username New value of the dealer username, value of type String.
Password New value of the dealer password, value of type String. 
ClientID Client identifier that the new dealer will be has a privilege on, a value of Integer.
GMTOffset The value of the dealer country GMT offset, a value of type String.
DealerDesc New value of the dealer description, value of type String.
DealerTreePriv The Dealer Id that the updated dealer has privilege on, Value of type is Long. pass it -1 if want to create a dealer without specific privilege 
IsBranch If dealer type is department type then this value used to indicate it a 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.


Private Sub CreateDealer _Click()

     Dim Res as CallingResultsEnum
     Dim vClient as COClient = BOAPI.ClientByIndex(1)
     DealerId = BOAPI..DealerIDByUsername(“Dealer Username”)
     Res = BOAPI .UpdateDealerInfo (DealerId,,”Username”,”Password”, vClient.clientID, Cstr(BOAPI.GMTOffset),”DealerDes”,-1,false)

End sub


See Also

VertexFX Backoffice API Index


Last Modified: 29 June 2018 

(0 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
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