Email Purposes

Former Member
Former Member $organization

Has anyone written code to insert a value into the mail_purpose field in T_EADDRESS without overwriting the existing values in that field? This field has 10 positions and I want to insert a value into one of the positions without erasing what's there. So the SET command won't work. I'm thinking there is a way to identify the position of the value you want to enter.

Parents Reply
  • You what create this function in your database.  The mode parameter is 0 for remove and 1 for add.  This could be run for a list example:

    update

     

    t_eaddress set mail_purposes= dbo.LF_UPDATE_EPURPOSES(mail_purposes,'3',1) where customer_no=2187966

    This adds the 3 purpose to my email address purposes record. 

    Yes it puts them in the correct order.

Children