5

Use Case
I am replacing the standard Email publisher action on case with a custom VF page using the apex:emailPubilsher tag. For certain cases, we need to be able to include an extra "From" address as an option.

Problem
The problem is when you specify the "fromAddresses" option in the emailPublisher tag, it replaces the entire list with what is supplied. I don't want to replace the list, just append a value to it.

TLDR
I am looking for a way to query for the email addresses listed under the Routing Address section of the Email-To-Case Settings page. Specifically those listed as Email2Case.

What I've tried
I know the OrgWideEmailAddress object is not what I'm looking for here. I did find a CaseSettings description but it doesn't seem like I can access that from within SFDC.

Any help would be appreciated. Thanks!

  • 1
    Could you get at that EmailToCaseRoutingAddress object through the Apex MDAPI wrapper? github.com/financialforcedev/apex-mdapi – Thomas Taylor Apr 9 '15 at 22:05
  • Will look into that and report back – Danny Apr 9 '15 at 22:06
  • 2
    Client ended up changing their requirement so didn't get a chance to test this. I'll see if I get time to test it on my own to help anyone else who may run into this issue in the future and post my results – Danny Apr 16 '15 at 21:52
1

You can query the case-to-email address using the EmailServicesAddress object.

SELECT Id,AuthorizedSenders,EmailDomainName,IsActive,LocalPart FROM EmailServicesAddress

The LocalPart plus the EmailDomainName make up the routing email address.

Reference:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.