Author Topic: importing custom field information ??  (Read 1768 times)

james2

  • Posts: 4
    • View Profile
importing custom field information ??
« on: October 25, 2004, 10:06:35 am »
I would like to import/insert data into one of the custom fields depending upon the domain of the email address

To be specific,
- At the moment in the list there are email addresses ending in .com.au but the country field is blank. I would like to insert "Australia" into the this field.

There are about 1000 adresses ( i dont want to do this one by one through the browser).

What is the best way to do this ?

james2

  • Posts: 4
    • View Profile
importing custom field information ??
« Reply #1 on: October 25, 2004, 10:39:09 am »
Alternatively,
is there an SQL command that could do this ?[/i]

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
importing custom field information ??
« Reply #2 on: October 25, 2004, 02:05:12 pm »
Assuming your custom field is field #1, the following command would take care of it for all lists:

update lm_users set user1 = 'Australia' where email like '%.com.au'
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

james2

  • Posts: 4
    • View Profile
importing custom field information ??
« Reply #3 on: October 26, 2004, 11:08:29 pm »
thanks dean,
the quick response is much appreciated !