You need to sign in to do that
Don't have an account?
Sivarajan
Redirect from Visualforce to Service console
I have a quick Action button which is overridden with vf page on Case feed. Once I fill all the information and click Submit, it gets redirected to standard case feed record page instead of staying on Service console.
I call the following javascript method in action function:
oncomplete="Sfdc.canvas.publisher.publish({name : 'publisher.refresh', payload : {refresh: true }});"
I also tried the following but it does not work.
oncomplete="Sfdc.canvas.publisher.publish({name : 'publisher.refresh', payload :{refresh: "true" objectRelatedLists: {}}});"
I want to stay on Service console Once i complete the action. Any help much appreciated.
I call the following javascript method in action function:
oncomplete="Sfdc.canvas.publisher.publish({name : 'publisher.refresh', payload : {refresh: true }});"
I also tried the following but it does not work.
oncomplete="Sfdc.canvas.publisher.publish({name : 'publisher.refresh', payload :{refresh: "true" objectRelatedLists: {}}});"
I want to stay on Service console Once i complete the action. Any help much appreciated.
oncomplete="Sfdc.canvas.publisher.publish( {name : 'publisher.refresh', payload : {feed: true, objectRelatedLists: {}}});"/>
All Answers
I've solved it the following way:
In my controller I have an attribute that gives me the Salesforce Base URL:
In my page I have a javascript function that redirects to the console:
Hope this helps!
Best regards,
Martijn Schwärzer
Thanks for your reply. I tried that option already but the only problem here is that it takes visualforce instance instead of Salesforce instance.
Is there any other easy way get Salesforce instance instead of applying regrex on the visualforce instance.
I would like to redirect to https://xxx.Salesforce.com/console.
I want to refresh only the case feed updates not the entrie page.
oncomplete="Sfdc.canvas.publisher.publish( {name : 'publisher.refresh', payload : {feed: true, objectRelatedLists: {}}});"/>