Article Details
Id:16381
Product:finPOWER Connect
Type:NEW
Version:3.02.03
Opened:16/09/2019
Closed:25/09/2019
Released:22/11/2019
Job: J022942

Business Layer; GetPendingUpdateRequests function has been added to finClient

The following new Function has been added to the finClient Class:

  • GetPendingUpdateRequests

This can be used to retrieve any Pending Update Requests which are saved within the Client's Logs.

Additionally a new Class finUpdateRequestDetail has been added, and a list of objects of this type are returned by the above Function to access Pending Update Requests. Requests can be Approved or Declined directly from this new Class.

Sample Code:

Public Function Main(parameters As ISKeyValueList) As Boolean

  Dim Client As finClient
  Dim UpdateRequestDetail As finUpdateRequestDetail
  Dim UpdateRequestDetails As List(Of finUpdateRequestDetail)

  ' Assume Success
  Main = True

  ' Initialise
  Client = finBL.CreateClient()

  ' Load Client and retrieve information
  If Client.Load("C10005") Then
    If Client.GetPendingUpdateRequests("EMAIL", UpdateRequestDetails) Then
      For Each UpdateRequestDetail In UpdateRequestDetails
        ' Code goes here
      Next
    Else
      Main = False
    End If
  Else
    Main = False
  End If

End Function