Use Flow Builder to Convert Leads to Patients

Enable care coordinators to convert leads to patient records within Health Cloud by setting up a simple conversion process in Flow Builder.

Available in: Lightning Experience

Available in: Enterprise and Unlimited Editions with Health Cloud


User Permissions Needed
To open, edit, or create a flow in Flow Builder: Manage Flow

This flow isn't compatible with custom fields on the Account object that are marked as required. Before activating this flow, review the custom fields on the Account object. Instead of marking these fields required, use a custom validation rule to check for a value in these fields when an account is saved.

Note

To use this flow in a Health Cloud org with person accounts enabled, you must configure a default mapping record to create patients or members. See Map Person Accounts in Health Cloud.

  1. From Setup, in the Quick Find box, enter Flows, and then select Flows
  2. Click New Flow.
  3. Click Record-Triggered Flow.
  4. Configure the Start element.
    Field Description
    Select Object Lead
    Configure Trigger Trigger the flow when A record is created or updated
    Set Entry Conditions Condition Requirements: All Conditions are Met (AND)
    • IsConverted Equals False
    • HC4a__IsMarkedForPatientConversion__c Equals True
    When to Run the Flow for Updated Records Every time a record is updated and meets the condition requirements
    Optimize the Flow for Actions and Related Records
    Start element for a record-triggered flow
  5. Add an Apex action that converts leads to patients.
    Field Description
    Action Lead to Individual Conversion
    Label Lead to Individual Conversion or another descriptive label
    API Name Accept the default value.
    Set Input Values for the Selected Action Include leadIds.

    For the leadIds input, enter {!Record.Id}.

    Lead to Individual Conversion Apex Action element
  6. Add an Apex action that creates care plans.
    Field Description
    Action Create CarePlan and Care Team
    Label Create Care Plan or another descriptive label
    API Name Accept the default value.
    Set Input Values for the Selected Action Include leadIds.

    For the leadIds input, enter {!Record.Id}.

    Create CarePlan and Care Team Apex Action element
  7. Activate the flow.