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
Toby MeiToby Mei 

User apex:emailPublisher to auto select the fromAddresses

Hi I am new to Apex and would like to ask some direction here.

What's the code to put if I want to use apex:emailPublisher to set the fromAddresses based on the Case Origin?

For example:
  1. sales@company.com; Case Origin is Sales Inquiry
  2. support@company.com; Case Origin is Customer Support
  3. orders@company.com; Case Origin is Order Inquiry
User-added image
Anshul Agrawal 27Anshul Agrawal 27
 implement the QuickAction.QuickActionDefaultsHandler interface