function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Using Mailmerge feature directly from an S-Control

I'd like to know if it's possible to use the mail merge feature of Salesforce directly from an S-Control?
I've been looking through the documentation but haven't been able to find any API methods or code snippets examples.


I have written few lines code in sControl for Mail merge and it is working fine: -

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<script type="text/javascript" src="/js/functions.js"></script>
<script src="/soap/ajax/9.0/connection.js"></script>
<script language="javascript">

function pageInit()
sforce.connection.init("{!API.Session_ID}", "{!API.Partner_Server_URL_70}");


<body onload="pageInit()">



First I did mail merge manually and when it generates mail merge file, I copied url from address bar of the explorer and updated mail merge templated id 01H600000005sJi with the related documents to generate.
Please let me know if you have any questions.

Message Edited by Sunil on 03-20-2008 12:48 AM

Message Edited by Sunil on 03-20-2008 02:55 AM

Message Edited by Sunil on 03-20-2008 03:18 AM

Message Edited by Sunil on 03-20-2008 03:19 AM