To export your e-mail data, perform the following steps in RMS:
Open RMS Store Operations Administrator and connect to your database.
Select Query, then New (or press Ctrl+N).
Enter the following query:
select EmailAddress as "Email Address", FirstName as "First Name", LastName as "Last Name", Company as "Company Name", PhoneNumber as "Home Phone", Address as "Address Line 1", Address2 as "Address Line 2", City as "City", State as "State", Country as "Country", Zip as "Postal Code" from customer where len(EmailAddress) > 0
To run your query, select Query, then Run, or press F5. The query results will be displayed.
Select File, then Export. Save the file using the name customers.csv.
Next, to import this data into Constant Contact, perform the following steps:
Open RMS Store Operations Administrator and connect to your database.
Select Query, then New (or press Ctrl+N).
Enter the following query:
select * from item
To run your query, select Query, then Run, or press F5. The query results will be displayed.
Select File, then Export. Save the file using the name item.csv.
That’s brilliant thank you very much.
Just one small problem the Departments and Categories are coming up as numbers.
Is there any way to display these as the names please.
Many thanks
You’ll need to join the other table by linking the mentioned id’s to the id fields in those two respective tables.
I haven’t tested but I believe this should do the trick.
SELECT itemtable.*, dep.name as department_name, cat.name as category_name
FROM [item] itemtable
LEFT JOIN [department] dep ON itemtable.departmentid = dep.id
LEFT JOIN [category] cat ON itemtable.categoryid = cat.id
Hi Andy
Another brilliant answer thank you - works a treat.
Just to confirm this adds two extra columns at the end with the named Department and Category.
Many thanks for your help.
From memory it’s possible to have multiple suppliers per product so only the last supplier is stored/updated in the item table. If that’s all you need then this should do it.
SELECT itemtable.*, dep.name as department_name, cat.name as category_name, sup.suppliername, barcode.alias as barcode
FROM [item] itemtable
LEFT JOIN [department] dep ON itemtable.departmentid = dep.id
LEFT JOIN [category] cat ON itemtable.categoryid = cat.id
LEFT JOIN SUPPLIER sup ON itemtable.supplierid = sup.id
LEFT JOIN ALIAS barcode ON barcode.itemid = itemtable.id