Article Details
| Id: | 10833 |
| Product: | finPOWER Connect |
| Type: | NEW |
| Version: | 1.06.06 |
| Opened: | 06/11/2012 |
| Closed: | 09/01/2013 |
| Released: | 29/01/2013 |
| Job: | J010669 |
Credit Enquiry; Business layer updated and new 'ExecuteCreditEnquiryPost' Script event added
A new 'ExecuteCreditEnquiryPost' Script event has been added. This is executed after a Credit Enquiry has been performed and allows custom functionality such as saving the Credit Bureau File Id to a Client's User Data as per the example below:
Dim Client As finClientDim Request As ISCreditEnquiryRequestDim Response As ISCreditEnquiryResponseDim ServiceId As String' Assume SuccessMain = True' Handle EventsSelect Case eventIdCase "ExecuteCreditEnquiryPost"' Runs after the Credit Enquiry has been executedRequest = DirectCast(source, ISCreditEnquiryRequest)ServiceId = DirectCast(contextdata1, String)Response = DirectCast(contextdata2, ISCreditEnquiryResponse)' Update Client to record Bureau File IdIf Len(Request.ClientId) <> 0 ThenDim Client2 As finClient' Load ClientClient2 = finBL.CreateClient()Main = Client2.Load(request.ClientId)' UpdateIf Main Then' UpdateClient2.UserData.SetString("LatestCreditBureauFileId", Response.CreditBureauFileId)' SaveMain = Client2.Save()End IfEnd IfEnd Select
Client Logs created via a Credit Enquiry now have a Source value of CreditEnquiry (500).