Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, February 23, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Automate Mail Merge
Martin Rudnick
Posts: 52
 
Automate Mail MergeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Aug 08 4:29 PM
SLX 7.0.1 SQL2K
The goal is to develop a button click event to automate a mail merge with a standard template. Trying techniques using either the MergeFromPlugin or the SLXDoc object (preferred) fails when using a public template released to everyone. The error message is:

The Mail Merge Engine encountered an error and cannot continue. The requested Microsoft Word template was either not found in the database, or your security rights prevent you from using this template.

Despite the fact that the template is released to everyone, is it a requirement that the template be copied as a Private Template of the user running the merge? Any insight is appreciated.
[Reply][Quote]
Mark Hallberg
Posts: 59
 
Re: Automate Mail MergeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Aug 08 4:18 PM
howdy, on this same note, has anybody developed a button click event to automate a mail merge with customer template? We would like the ability to call a mailmerge template from the opportunity detail form.

any help for this newbie would be appreciated
mark
[Reply][Quote]
Walter Shpuntoff
Posts: 167
 
Re: Automate Mail MergeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Aug 08 5:14 AM
You should be using MergeFromFile for that.
You can specify the plugin id in your code and as long as the user has access to it you should be fine.
There was a document a few years ago - often referred to as the MailMerge SDK that has sample code.
You might want to look on the support site to see if it's there.

Start Shameless plug:
we have a documentbuilder add on that is going to be going into beta in a week or two that may be of interest. contact me offline if you are interested.

ws
[Reply][Quote]
Martin Rudnick
Posts: 52
 
Re: Automate Mail MergeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Aug 08 9:31 AM
Thanks Walter. I have got the automation to work using the MergeFromFile aka MM SDK but users are only able to run the process for templates copied down to there Private Template folder. I would like to take the copy down process out of the picture but the access to the template plug in is blocked for some reason despite being release to Everyone. When logged in as the admin, the process works fine using the template from the Public Templates folder. Even releasing the plugin to the individual user doesn't work.
Seems to be some rights aren't recognized using MergeFromFile...
[Reply][Quote]
Walter Shpuntoff
Posts: 167
 
Re: Automate Mail MergeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Aug 08 9:38 AM
When you are referencing the plugin id, are you using the source, or the released copy?

select pluginid from plugin where type = xx and name = 'xxxxxx' and user = 'SYST00000001'

If you are using the source, security will prevent them from accessing it.

Feel free to post some code...

ws
[Reply][Quote]
Martin Rudnick
Posts: 52
 
Re: Automate Mail MergeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Aug 08 10:03 AM
Hazaa, problem solved!! I hard coded the plugin id as seen in architect thereby giving me the security errors. Looking at the Plugin table, I was able to get the correct plugin id where the user id is SYST00000001. Thanks Walter!!
[Reply][Quote]
slxuser
Posts: 2
 
Re: Automate Mail MergeYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Jun 12 6:24 PM
fiogf49gjkf0d

I am trying to automate Mail Merge to print Letters. Do you happen to have source code for this automation?


 


I am fairly new and can use  any help in achieving this.


 


Thank you

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 2/23/2025 7:39:45 AM