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

Send an Email button override
Send an Email can be overridden from Admin>App Setup>Activities>Activity Buttons with an s-control. This overrides the Send an Email button as well as the Reply and Reply To All links on the email related list. Does anyone know how to identify within the overriding s-control which email/activity was clicked when a reply link is clicked. There doesn't seem to be any relevant merge fields but I assume, seeing as the email related list reply links are overridden, that there must be a way to identify which item in the list was actually clicked.
Any ideas?
It's a parameter that's passed in the URL. You need to use javascript to parse it out. Try something like this.
<script type="text/javascript" src="/js/functions.js"></script>
<script src="/soap/ajax/12.0/connection.js"></script>
<script language="javascript">
function newEmailPage() {
var callingPage=new String(window.top.location);
if(callingPage.match("p2_lkid")!=null) {
var u1=callingPage.substr(callingPage.indexOf("p2_lkid=")+8,15);
}
Quick caution, there are different parameters passed if they click Send an email versus forward or reply. You'll need to handle those differently.
All Answers
It's a parameter that's passed in the URL. You need to use javascript to parse it out. Try something like this.
<script type="text/javascript" src="/js/functions.js"></script>
<script src="/soap/ajax/12.0/connection.js"></script>
<script language="javascript">
function newEmailPage() {
var callingPage=new String(window.top.location);
if(callingPage.match("p2_lkid")!=null) {
var u1=callingPage.substr(callingPage.indexOf("p2_lkid=")+8,15);
}
Quick caution, there are different parameters passed if they click Send an email versus forward or reply. You'll need to handle those differently.
Perfect, thanks for that.
is there a way to create an email button on the quote page so that you can pass an email template ID into the URL as well as attach the quote.pdf?
thanks!