Syntax
Public Function GetAccountHistroy (AccountID As Integer, Optional LastXDays As Integer = -1, Optional FromDate As String = "", Optional ToDate As String = "") As CallingResultsEnum
Description
This function is used to show the entire transactions done in the whole system for a certain account. After GetAccountHistroy method executes, the AccountHistoryReceived event fires.
Parameters
Parameter |
Description |
AccountID |
Account number to show the entire transaction done for it, value of type it Integer |
LastXDays |
To get the entire transaction done for last X value, value of type Integer -1: for Custome period 1: for the last day 2: for the last two days 4: for the last four days 7: for the last week 14: for the last two weeks 30: for thelast month 60: for the last two months
|
FromDate |
Specify the duration if LastXDays = -1 Date in this format ”DD/MM/YYYY HH:NN:SS” “” means from Beginning |
ToDate |
Specify the duration if LastXDays = -1 Date in this format ”DD/MM/YYYY HH:NN:SS” “” means till now |
Return value
Returns value of type CallingResultsEnum if the request was sent to the server successfully, the value will be SuccessResult.
Sample
Private Sub GetHistory_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GetHistory.Click
‘BOAPI is predefined variable as CVertexBOAPI
Dim Result as CallingResultsEnum
Dim vAccount As COAccount
Dim vClient As COClient
vClient = m_oBOAPI.ClientByIndex(1)
vAccount = m_oBOAPI.AccountByIndex(vClient.ClientID,1)
Dim AccountId as Integer = vAccount.AccountID
Dim DateFrom as string = “10/02/2012 03:00:00”
Dim DateTo =””
Result=BOAPI.GetAccountHistory (AccountId,-1, DateFrom, DateTo)
Msgbox (Result.ToString)
End Sub
See Also
VertexFX Backoffice API Index
|