• Henry Chen 1
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
<apex:page standardController="Case">

<apex:includeScript value="/support/console/35.0/integration.js" />

<script type="text/javascript">

    sforce.console.addEventListener(sforce.console.ConsoleEvent.CLOSE_TAB, function() {
        console.log("before closing ");
    });
</script>

</apex:page>
Hi guys, code above,

I tried to follow the documentation (https://developer.salesforce.com/docs/atlas.en-us.198.0.api_console.meta/api_console/sforce_api_console_addeventlistener.htm), 

but kept getting errors saying addEventListener: Unsupported Operation: This API cannnot be used on this component

Please Help!
Default approval email will be sent by Salesforce to approver for every step in an approval process. I want to send out this approval email again after 3 days if the approver didn't approve it so that the approver can reply to this with Approval status. This new mail helps to remind the approver or will be useful if the original approval mail got deleted. Is it possible to do so?