I have added a hook when adding new customers. I want to get the customer number when I save the customer. My code is as follows:-
Public Function Process(mySession As QSRules.SessionClass) As Boolean
Dim StrSql As String Dim ConConnection As New ADODB.Connection Dim rstRecordSet As New ADODB.Recordset Dim QsCustomer1 As QSRules.Customer 'Need to populate referralcode and age group
MsgBox mySession.Transaction.Customer.AccountNumber, vbInformation, "test"
Process = True End Function
When I run the function the customer.accountnumber is blank and customer.loaded returns false. Why is this the case?
Cheers, Sos