You need to sign in to do that
Don't have an account?
James Cotterell 5
Is the Console Integration Toolkit available inside a publisher action
I have a custom Visualforce page as a Publisher Action that looks like this:
Previously this enabled me to dynamically refresh the visualforce page when the user switched between (primary or sub) tabs in Service Console.
This no longer works. On loading the publisher action I see the following message written to the developer console from ServiceDesk.js.
Is the API no longer available for use within a publisher action? Or is there an alternative way to do this?
<apex:page controller="PageController" action="{!Init}" > <apex:includeScript value="/support/console/31.0/integration.js" /> <apex:includeScript value="https://code.jquery.com/jquery-1.7.1.js" /> <apex:form> <apex:actionFunction action="{!Init}" name="refresh" reRender="ContainerToBeRefreshed"/> <apex:outputPanel id="ContainerToBeRefreshed" layout="block"> ... </apex:outputPanel> </apex:form> <script type="text/javascript"> $(function(){ function eventHandler(msg){ var focusedPrimaryTabId = msg.message; sforce.console.getEnclosingPrimaryTabId(function(result){ var enclosingPrimaryTabId = result.id; if(focusedPrimaryTabId === enclosingPrimaryTabId){ refresh(); } }); }; sforce.console.addEventListener('EventName', eventHandler); sforce.console.onFocusedSubtab( function ( result ) { refresh(); }); }); </script> </apex:page>
Previously this enabled me to dynamically refresh the visualforce page when the user switched between (primary or sub) tabs in Service Console.
This no longer works. On loading the publisher action I see the following message written to the developer console from ServiceDesk.js.
Is the API no longer available for use within a publisher action? Or is there an alternative way to do this?
I have a Custom Console Component that calls this function to send a message to the Publisher Action.
And the VF page for my Publisher Action has this:
This seems to be working quite well for us so far. Hope it helps.
All Answers
Please email me at ssrivatsavaya@salesforce.com with your org id (cannot be a developer edition org), detailed steps to replicate the issue.
Thanks,
Shashank
I have a Custom Console Component that calls this function to send a message to the Publisher Action.
And the VF page for my Publisher Action has this:
This seems to be working quite well for us so far. Hope it helps.
I'm unable to succesfully subscribe to publish.customActionMessage event. I've a custom Knowledge Sidebar and my goal is to send an event to a custom publisher action in the case feed. I tried the basic example by publishing a message with actionName = my VF page name. But it never works. I've tried debugging the problem but couldn't find the right way to do it.
@James Can you please help me out? Or tell me what I may be doing wrong?
Thanks
Hi ,
I know this question may not be completely related to this thread. But I see the people working on similar stuff.
Our team is planning to move to new lightning service console(released in spring 17) from the Salesforce console app(classic) (not migrating but building the new application). I am not sure of what would be the consequences that we may face in Lightning service console to Classic.
Also what would happen to the components / visualforce pages / integrationtoolkit methods that were using the integrationtoolkit when in Salesforce console app classic moved into the Lightning Service Console.