26 thoughts on “Send an HTML Email from Flow

  1. First of all thanks for this automation tutorial. I was utilizing the above use case but cannot able to use email alert in new version of Flow.

    If I try to add Email using action it really does not provide option to import the email template created. Can you advise in this regard.

  2. When I try to run the flow, Salesforce gives me this error: Please help!

    “An unhandled fault has occurred in this flow
    An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information.”
    What could be a possible error?
    Thank you very much

    I also received email saying

    FlowApplication
    10:16 AM (1 hour ago)
    to me

    Error element Send_out_a_confirmation_email (FlowActionCall).
    Missing required input parameter: SObjectRowId
    Flow Details
    Flow Name: Send_an_HTML_Email_From_Flow
    Type: Autolaunched Flow
    Version: 1
    Status: Active
    Org: Universal Container (00D41000002kAze)
    Flow Interview Details
    Interview Label: Send an HTML Email From Flow 2/7/2019 12:16 PM
    Current User: Kajal Kantaria (00541000001dMqm)
    Start time: 2/7/2019 12:16 PM
    Duration: 0 seconds
    How the Interview Started
    Kajal Kantaria (00541000001dMqm) started the flow interview.
    RECORD UPDATE: Update_Case_Status
    Find all Case records where:
    Id Equals {!VarTCaseID} ()
    Update the records’ field values.
    Status = Closed
    Result
    All records that meet the filter criteria are ready to be updated when the next Screen or Wait element is executed or when the interview finishes.
    CASE.CLOSE_CASE_EMAIL (EMAIL ALERTS): Send_out_a_confirmation_email

    Inputs:
    SObjectRowId = {!VarTCaseID} ()
    Error Occurred: Missing required input parameter: SObjectRowId

  3. Great tutorial, quick question though. Can you pass anything else to the email template? Such as a specific To: email address or maybe a bulleted list that might have to be dynamic?

  4. Hello – thanks for the great tutorial.Is it possible to use a loop to collect a number of records and then email all of the records from the loop?

    1. It is possible but currently Text Template doesn’t support HTML format outside Flow so it will not render properly in the email client.

      If you want to display data in tabular format inside flow or salesforce yes it is 100% possible

  5. Hello Rakesh,
    I’ve followed this guide to create a simple flow wth only one Email Alert element.
    This is the url for the button /flow/Invio_Email_Caso_Ecommerce?VarCaseID={!Case.Id}&Returl=/{!Case.Id}
    I take the case ID from URL to put in the flow variable called “CaseID” and used like input on Email Alert element. as you described.
    When I try to run the flow from the button in the case layout page, Salesforce gives me this error:
    “An unhandled fault has occurred in this flow
    An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information.”
    What could be a possible error?
    Thank you very much

    1. There are numerous error

      –> your URL should look like this
      /flow/Invio_Email_Caso_Ecommerce?VarCaseID={!Case.Id}&retURL={!Case.Id}

      –> You said, I take the case ID from URL to put in the flow variable called “CaseID”
      In URL you are using VarCaseID and your flow varibale name is CaseID.

      Make sure to use the correct variable name in custom button URL.

      1. Great Rakesh! That was the errori. Thank you very much.
        Now the flow send the email but I receive the same error when I click to finish button 🙁
        Regards

        1. You mean Flow is sending the email to recipients but you still getting the error.
          If yes, could you please post complete error email here (Flow fault error email which is sent to the creator of the Process that is failing).

          1. The flow is sending the email and show me the next step, that is a screen element with a Display text output where I wrote a confirmation message: “The Email message has been sent to the case owner”

            I click finish and Salesforce shows me this error:

            “An unhandled fault has occurred in this flow
            An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information.”

            Thank you very much for your help!

              1. I’m sorry!
                Here you are:

                Missing required input parameter: SObjectRowId
                Inputs:
                SObjectRowId = {!CaseID} ()
                Error Occurred: Missing required input parameter: SObjectRowId

                1. It means Flow is unable to pass the value to field SObjectRowId.

                  What you are trying to achieve?
                  Do one thing document your complete flow, upload it on GoogleDrvice and share the link here

  6. Thank you for the tutorial Rakesh. What about if we need to send an email (with a Quote in PDF) in a Flow but filled with fields from 2 related objects (lookup relationship)? What would be the better solution?

  7. Just desire to say your article is as amazing. The clarity on your put up is simply spectacular and i can think you are an expert in this subject.
    Fine together with your permission let me to
    seize your feed to stay up to date with coming near near post.
    Thanks 1,000,000 and please carry on the gratifying
    work.

  8. Hi Rakesh, thank you for this tutorial! I have not yet build this solution but what I was wondering: the email that is send, will it show up in the Activity History? My experience with a Workflow triggered Email Alert is that it does not and thats a pity. Is that different when you trigger the email with help of a flow?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from Automation Champion

Subscribe now to keep reading and get access to the full archive.

Continue reading