How to do a SalesLogix6.2 Mail Merge

    Dim strPluginId,strField,strTable,strWhere,strContactId, strOpportunityId,strTemplate

    strContactId = Application.BasicFunctions.CurrentContactID
    strOpportunityId = Application.BasicFunctions.CurrentOpportunityID

   strTemplate = “<Template Name>”

    strField = “PLUGINID”
    strTable = “PLUGIN”
    strWhere = “TYPE = ’25’ AND NAME = ‘” & strTemplate & “‘ AND userid = ‘SYST00000001′”‘”‘ AND RELEASED = ‘T'”
    strPluginId = GetField(strField,strTable,strWhere)

    Application.BasicFunctions.MergeFromPlugin strPluginId, 2, strContactId, strOpportunityId

   Merge Modes

            1 – Fax

            2 – Word Document 

            3 – E-Mail

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s