Unknown 'Sender Type' Field in Send Email Action

  • 1
  • Problem
  • Updated 10 months ago
  • Solved
I am trying to create an action framework which alerts community users that there is a problem with a document. This email should come from the email address of the agent who owns the account, which are all registered as org-wide email addresses. The action framework requires a 'sender type' parameter to send as anything other than the current user, however any value I insert here results in a Bad Request error on fire. Digging deeper into the error message reveals that the problem is an "INVALID_ARGUMENT_TYPE". Does anyone have any idea what a valid argument for this field would be? 
Photo of Matt Bartholomew

Matt Bartholomew

  • 122 Points 100 badge 2x thumb

Posted 10 months ago

  • 1
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
I found the following: not sure if it helps.
Sender Type is the email used as the sender's from and Reply-To addresses. The following values are valid:
CurrentUser —the email address of the person updating the record. This is the default setting.
DefaultWorkflowUser —the email address of the default workflow user.
OrgWideEmailAddress —a verified global email address for your organization, such as support@company.com
Note: If you would like to use OrgWideEmailAddress, create an email alert using the organization-wide address as described in https://help.salesforce.com/apex/HTVi...

Then, in the Flow Designer, you can add the email alert to your flow.
Photo of Matt Bartholomew

Matt Bartholomew

  • 122 Points 100 badge 2x thumb
Yup, that was exactly what I was looking for! Thank you.