QSRules -> Altering Customer Information

Hi, I need to build a COM Plugin for RMS where a new customer is created that hooks in and checks to see if the customers email field has been populated, if its not populated it needs to bring up a box requesting the customers email with a tick box that is 'opt out of mailer' (i've done everything but write back) i'm using Session.Transaction.Customer.EmailAddress and Session.Transaction.Customer.CustomNumber5 for the OptOut.

My Question is: How on earth do I write data to the customer in the com addin? Is it possible??

Reply to
BTL Developer
Loading thread data ...

If you are using the SaveCustomer hook to fire you COM addin, try just running an SQL Update statement on the newly created customer record. This of course is assuming that the SaveCustomer hook is actually fired after the customer record was saved to the database as the description suggests. If that doesn't work maybe update the record after 'Process = True'.

Rob SaveCustomer Hook The SaveCustomer hook is activated when a customer is saved to the database.

HookType value 11

Parameter value 5

The parameter passed to the hook will be the ID of the customer in the database.

The SaveCustomer hook is activated under the following conditions.

a.. A new customer is added to the database.

b.. An existing customer is changed.

Reply to
Rob

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.