• Hendrik Adam
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi,

I have a case related console view. In that view I have two visualforce pages on the right.
These pages show me information, related to data in the opened case.

If I update these - controlling - information, I want to refresh my two visualforce pages.
How this can be done?
sforce.console.onEnclosingTabRefresh(eventHandler:Function)
Does not work.

Thanks for support!
 
In order to send an email with a predefined email template (from the case feed email action), I am using this code (based on the example in p.29 in https://resources.docs.salesforce.com/sfdc/pdf/case_feed_dev_guide.pdf):
function emailSolution(content) {   
    Sfdc.canvas.publisher.publish({name: 'publisher.selectAction', 
    payload: { actionName: 'Case.Email'}}); 
    Sfdc.canvas.publisher.publish({name: 'publisher.setActionInputValues', 
    payload: {
       actionName: 'Case.Email',
       emailFields: {
            template: 'folderName/templateName', 
            body: { value:content, format:'richtext', insert: true}
       }
}});

However, the template parameter has no effect on the email (the email body contains only the string 'content'). If the body parameter is omitted, the email body is empty. I couldn't find any example for usage of the template parameter in the online documentation, has anyone tried already to use it and can provide a code sample?
  • August 26, 2015
  • Like
  • 0