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

Custom Button To send mail to specific mail Id
Hi all
I have created a custom button.i want to send mail when i press the button .its working perfectly.but i need to send to specific id like owner of this object and one more id not to all
I have created a custom button.i want to send mail when i press the button .its working perfectly.but i need to send to specific id like owner of this object and one more id not to all
if({!ISBLANK(KYC__c.Email__c)}) { alert('Add "KYC sent to" email address'); } else { {!REQUIRESCRIPT("/soap/ajax/16.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/16.0/apex.js")} var msg =sforce.apex.execute("SendkycEmail","kycSendEmail",{id:"{!KYC__c.Id}"}); window.alert(msg); }
You can add another Parameter in execute Method Like:-
var msg =sforce.apex.execute("SendkycEmail","kycSendEmail",{id:"{!KYC__c.Id}"}, {AnotherId:"{!anotherId});
Thanks..
Yes..