Business Case: Client has a lot of email-to-case addresses and wants their quick action ‘From’ to be preselected in order to cut down on clicks and ensure the email goes out from an address that is not the agent and that will be returned directly to Salesforce. Seems easy enough! When looking at the predefined field values for the email quick action it can get confusing as to which one to use and the correct formula to use so here’s how I solved it:
if(ISPICKVAL(Case.Origin, “Product_Name_1 Email”),
if(ISPICKVAL(Case.Origin, “Product_Name_2 Email”),
The trick was using the ‘From’ field AND NOT the ‘From Name’ or ‘From Address’ AND using only the email address and not the name or name + email address (believe me I tried both). It was looking at the html source code of the New Predefined Values page that clued me in. Predefined Field Values on picklists are just so awesome!