function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Anshul Agrawal 27Anshul Agrawal 27 

Interaction with Custom Case Quick Actions

I am able to interact and send the email on Case.Email using template Id and using canvas
Sfdc.canvas.publisher.publish({name: 'publisher.selectAction', 
        payload: { actionName: 'Case.Email'}}); 
        Sfdc.canvas.publisher.publish({name: 'publisher.setActionInputValues', 
        payload: {
               actionName: 'Case.Email',
               emailFields: {
                template: {id: id}, 
            }
               //emailTemplate:{id:id}
        }});

However, i want to also interact with Custom Quick Email Action(apex:emailPublisher). We do get a option to select a template in the Custom action. But i want to pass the template from a custom console component. I tried a remote call to controller to set the emailbody. But couldn't find a way to rerender and update the email body just like it works when we select the template already available on email action. Any help/direction is appreciated on how can i pass templates to custom email action. Thanks

 
Anshul Agrawal 27Anshul Agrawal 27
Worked with 15 digits ID