You need to sign in to do that
Don't have an account?

Using Mailmerge feature directly from an S-Control
Hi,
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.
thanks
Hi,
I have written few lines code in sControl for Mail merge and it is working fine: -
<html>
<head>
<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}");
document.location.href="https://na1.salesforce.com/mail/mmgen.jsp—retURL=%2F{!XYZ__c.Id}&dataURL=%2Fservlet%2Fservlet.SForceCommander%3Fp_type%3Dmailmerge%26id%3D{!XYZ__c.Id}%26did%3D01H600000005sJi%26cid%3D00000000000000"
}
</script>
</head>
<body onload="pageInit()">
</body>
</html>
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