Trying to get a flow to send emails using the OrgWideEmailAddress for that profile. So I created a record lookup to search for the OrgWideEmailAddress, using (for now) a string to match the name.
I was able to save the flow no problem, but when I try to run it I get the following error (via email):

Error element GetOrgAddress (FlowRecordLookup). This error occurred when the flow tried to look up records: sObject type 'OrgWideEmailAddress' is not supported
Find one OrgWideEmailAddress record where:
DisplayName Equals DNR Email
Failed to find record.

That OrgWideEmailAddress is set for the profile of the user that initiated the flow.


This is a workaround, and it sucks, but it's the best I've been able to come up with.
Create an @InvocableMethod to return the OrgWideEmailAddress and call that in the flow.

[SELECT Id, DisplayName, Address FROM OrgWideEmailAddress WHERE DisplayName = :addressName]

The problem here is that there is (as far as I could discern) no way to pick any specific OrgWideEmailAddress from the DB based on anything useful (need to provide addressName somehow. I get mine from a Meta Data object).
So if I have 3 addresses set up for 3 different bunches of profiles, there is no way to say 'Oh, a user with this profile initiated the flow? Great, I'll use that address.' It's got to be known in advance.


Try using Email Alert Actions as mentioned in this post: Use SenderType parameter to create email alerts in a Flow

  • Email Alerts won't work here, it needs to be part of an interactive user interface. Additionally, using an OrgWideEmailAddress in an Email Alert will prevent us from being able to modify the OrgWideEmailAddress in the future. – AvailableName Oct 11 '18 at 8:38

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.