Gravatar for jpdery@coveo.com

Question by jpdery, May 21, 2014 8:24 PM

Salesforce: How to refresh case console after click AttachToCase in InsightPanel

In Salesforce Console, clicking on InsightPanels AttachToCase control of a KB article attaches allright, but the Case's central panel does not refresh / update to display the change.

1 Reply
Gravatar for jpdery@coveo.com

Answer by jpdery, May 21, 2014 8:25 PM

This solved my issue:

  //Refresh tabs after Attach/Detach article from case.
  $('.CoveoPanel').on('afterInitialization', function(e, args) {
        $('.CoveoPanel').on('deferredQuerySuccess', function(){
          $('.CoveoAttachToCase').on('click', function(){
              sforce.console.getEnclosingTabId(function(result) {
                  sforce.console.refreshSubtabById(result.id, true);
              });
          });
        }); 
  });
Gravatar for vikas@italentdigital.com

Comment by Vikas_Sachdeva, Jun 14, 2018 3:05 PM

Hello,

I am facing this issue and would like to know, where should this code be placed? Cheers, Vikas

Gravatar for ashwini.kachapeswaran@watchguard.com

Comment by Ashwini, Nov 13, 2018 6:31 PM

We recently implemented this, and now I am seeing that after the refresh, the InsightPanel also refreshes and removes the search term. How to prevent the IP from refreshing or prevent the refresh from removing the search term.

Ask a question