Archive | February, 2010

GoldMine SQL Query To Display Undeliverable / Malformed Emails

Posted on 25 February 2010 by Bob Ritter

The following SQL Query will display all the email addresses in your GoldMine database that will not be deliverable if you attempt to send to the contacts associated with the email address.  Running this query will allow you to update/correct the addresses and cleanse your database for better email marketing.
Because the below SQL query is looking for special characters it doesn’t display properly in a web page – please cut and paste the text of the query from the following  link: Find Malformed Email Addresses

SELECT
 accountno
,cs.contsupref + cs.Address1 AS ‘E-Mail Address’
FROM
 contsupp cs
WHERE
 (cs.CONTACT = ‘E-mail Address’)
 AND (SELECT
  CASE
  WHEN cs.contsupref + cs.Address1  IS NULL
  OR CHARINDEX(‘@.’,cs.contsupref + cs.Address1 ) > 0 
  OR CHARINDEX(‘.@’,cs.contsupref + cs.Address1 ) > 0 
  OR CHARINDEX(‘..’,cs.contsupref + cs.Address1 ) > 0 
  OR CHARINDEX(‘”‘, cs.contsupref + cs.Address1 ) <> 0 
  OR CHARINDEX(‘(‘, cs.contsupref + cs.Address1 ) <> 0 
  OR CHARINDEX(‘)’, cs.contsupref + cs.Address1 ) <> 0 
  OR CHARINDEX(‘,’, cs.contsupref + cs.Address1 ) <> 0 
  OR CHARINDEX(‘<’, cs.contsupref + cs.Address1 ) <> 0 
  OR CHARINDEX(‘>’, cs.contsupref + cs.Address1 ) <> 0 
  OR CHARINDEX(‘;’, cs.contsupref + cs.Address1 ) <> 0 
  OR CHARINDEX(‘:’, cs.contsupref + cs.Address1 ) <> 0 
  OR CHARINDEX(‘[', cs.contsupref + cs.Address1 ) <> 0 
  OR CHARINDEX(']‘, cs.contsupref + cs.Address1 ) <> 0 
  OR RIGHT(RTRIM(cs.contsupref + cs.Address1 ),1) = ‘.’ 
  OR CHARINDEX(‘ ‘,LTRIM(RTRIM(cs.contsupref + cs.Address1 ))) > 0 
  OR LEN(cs.contsupref + cs.Address1 )-1 <= CHARINDEX(‘.’, cs.contsupref + cs.Address1 ) 
  OR cs.contsupref + cs.Address1  LIKE ‘%@%@%’ 
  OR cs.contsupref + cs.Address1  NOT LIKE ‘%@%.%’ THEN 0
 ELSE 1
END) = 0

Comments (0)

How to Copy/Move Contacts From One GoldMine Database to Another

Posted on 25 February 2010 by Bob Ritter

Many GoldMine users prefer to have seperate databases for their Prospects and Customers, and when a Prospect finally becomes a Customer they simply Copy/Move the contact from the “Prospects” Database to the “Customers” Database.

Here is how to do it:

1. Ensure you have current backups of both databases.

2. In GoldMine, open the database that records will be copied or moved from.

3. For those using  GoldMine 4.x – 7.x, Select File >> Synchronize >> Copy/Move Records

For those using GoldMine 8.x, Select Tools >> Data Management >> Copy/Move Records

4. Select the target database that the records will be copied or moved to from the Select Target Contact Set drop down.

5. Specify the Record Selection by selecting Current Record (to move the contact record you are on) or Group of Contact Records. This option will allow selection of a filter or contact group.

6. Select the Transfer Method. Copy will move a copy of the selected records to the target contact set and leave the original in the source contact set. Move will remove the original from the source contact set and place it in the target contact set.

7. Click the Go button. Note: There is no undo for this operation. It is essential to have a current backup before begining this procedure

Comments (0)

How to Suppress a GoldMine Word Merge Field if the GoldMine Value is 0 or Empty

Posted on 25 February 2010 by Bob Ritter

1. In your Word template, put the cursor at the position you want the field.
2. Press CTRL + F9.
3. This puts a blank field code in the documents.  Your cursor is now between the braces.
4. Type the word IF then a space then the ” symbol.
5. Press CTRL + F9 to insert another field inside the first one.
6. Now type our Goldmine codes as follows:
DDEAUTO GOLDMINE DATA CONTACT2->UFIELD \* CHARFORMAT
where UFIELD is your Goldmine field.  This will vary depending on the table and field.
7. Move the cursor past the first } symbol.
8. Type another symbol.
9. Type the two symbols < and > followed by a space.
10. Type another symbol.
11. Press CTRL + F9 to insert another field.
12. Again type DDEAUTO GOLDMINE DATA CONTACT2->UFIELD \* CHARFORMAT.
13. Between the last to } symbols type ” a space then two ” symbols.

You should end up with a series of codes that looks like this:
{IF “{DDEAUTO GOLDMINE DATA CONTACT2->UFIELD \* CHARFORMAT}” <> “0″ “{DDEAUTO GOLDMINE DATA CONTACT2->UFIELD \* CHARFORMAT}” “”}
In English this field is saying If the contents of UFIELD is less than or greater than 0 put the contents of UFIELD into this position otherwise put nothing in (this is the text between the last two “” symbols).  If the value is -1 it gets printed, if it’s 1 it gets printed, if it’s zero the field is not put in.
Highlight what you typed, right mouse click and select Toggle Field Codes to view the result.
FYI, while working on this use DDE instead of DDEAUTO.  That way you can change the value in GM, highlight the field in Word and press F9 to update it without having to close and reopen the document.  Once you’re happy with the result, change DDE to DDEAUTO.

Comments (0)

How to Easily Find Duplicate GoldMine Contact Records Based on Company

Posted on 24 February 2010 by Bob Ritter

GoldMine has really good duplicate checks on the entry of new records (checking on one or combination of fields) and also the merge-purge feature.  Here’s a quick SQL Query you can run in GoldMine (go to your Filters and Groups, and click on the SQL Query Tab) to check on duplicate Company Records.

select company from contact1 group by company having count(company)>1

If the query finds any, then use GoldMine’s Merge Purge feature to remove them.

NOTE: Keep in mind that there are some organizations that prefer to have Duplicate Company Records, for example; companies with different office locations, they may create multiple contact records for the same company, with different address information.


Comments (0)

How Many Emails Can I Preview / See In My Inbox?

Posted on 24 February 2010 by Bob Ritter

Did you know that GoldMine’s e-mail inbox, and each e-mail center folder can only display 1000 e-mails at any one time.  So it is really important to file or delete your e-mails if you are receiving large numbers into your inbox. If you don’t when you go to retrieve new email you won’t be able to preview/ see them because you have exceeded the 1000 email limit for the preview que. Your emails are in the inbox you just can’t see them. Once you delete/file your old email you will be able to see them.

Comments (0)

How To Make GoldMine’s E-mail Template Name Something Other Than The Subject Line

Posted on 24 February 2010 by Bob Ritter

When designing E-mail Templates, normally the default subject line of the template will be the name of the template in the Document Management Center, as you saved it.  This does not have to be the case.

Design your template, and make the subject line the default as you wish it to appear on the outgoing e-mail, then save the template.  The template will now appear in your Document Management Center and will have the name of the subject line as it’s file name.

To rename the template, click on the template once, then press F2 on the keyboard and then click on the template name again.  It will now allow you to rename the template to what ever you want.

Comments (0)

How to Close / Exit Out Of GoldMine Properly

Posted on 24 February 2010 by Bob Ritter

Get into the habit of closing GoldMine correctly. There is a right way and a wrong way to close GoldMine. To exit GoldMine, go to File and click on Exit. Resist temptation to use the X in the upper right of your screen. When you close by File >> Exit, GoldMine closes open processes and saves the appropriate settings.

Comments (0)

GoldMine SQL Query- Primary Contacts and Primary Email Address with Email & Mail Merge Code

Posted on 24 February 2010 by Bob Ritter

The following is a SQL Query that will display the Primary Contact with their Mailing Address, Email Address and the associated Email Merge Code and Mail Merge Code.

Select c1.Accountno, c1.Company,  c1.City, c1.Address1, c1.State, c1.Zip, cs.ADDRESS2 as Primary_Contact, cs.CONTSUPREF as Email_Address, cs.Mergecodes as Email_Merge, c1.Mergecodes as Mail_Merge, cs.zip
From contsupp as cs, contact1 as c1
Where (cs.rectype = ‘P’ and cs.contact = ‘E-mail Address’) and c1.key1 = ‘CUSTOMER’ and substring(cs.zip,2,1)=’1′ and c1.accountno=cs.accountno

Comments (0)

Automatically Update The ‘Dear’ Field With First Name When Contact Field Is Filled In

Posted on 24 February 2010 by Bob Ritter

The script below when added to the lookup.ini file will automatically populate the Dear field when a name containing at least two words are entered into the Contact field.

Lookup.ini Script

[AutoUpdate]
Contact=Dear

[Dear]
Lookup1=Contact
Otherwise=&trim(substr(contact1->contact, 1, at(” “, contact1->contact)))
Overwrite=1

Instructions for use.

Open the lookup.ini file (Notepad is ideal for this)
Add the lines above to the file, including the lines into the Autoupdate section.
For more details on the lookup.ini file see the GoldMine help files.
Save the lookup.ini file
Restart GoldMine.

This script is supplied on an as-is basis, and First Direct Corp. makes no claims as to its suitability and takes no responsibility for misuse, data corruption or system downtime as a result of its use. No support is provided and it is assumed that the user will have a working knowledge of GoldMine.

Comments (0)

My SQL Query Window Only Shows 10000 Records

Posted on 24 February 2010 by Bob Ritter

When running sql queries in the GoldMine SQL query window by default it will only show the first 10000 records of the results.

This can be expanded by adding the following line into the [goldmine] section of the gm.ini file.

Sqlquerylimit=xxxxxx

Where xxxxxx is the number of records you wish to display.

NB: the gm.ini file is stored within the GoldMine application folder and should be modifed in a plain text editor like notepad.

Comments (0)

Live chat