Skip to main content
Build the future with Agentforce at TDX in San Francisco or on Salesforce+ on March 5–6. Register now.

Activate Your Flow and Add a Quick Action to Your Page Layout

Place a Screen Flow on the Page

Remember that our goal in this project is to create a button that emails every program participant with a program engagement in a cohort.

Screen flows require interaction with a user, so our flow won’t work unless a user can access it. For this example, getting the flow to a user takes three steps.

  1. Activate the flow
  2. Create the button
  3. Place the button on the page layout

Let’s get to work.

Activate Your Flow

Let’s start by activating the flow, which you can do in Flow Builder.

If you left Flow Builder after the last step, you can get back to our flow by following these instructions.

  1. Click Setup () and then Setup.
  2. In the Quick Find box, enter flow and click Flows in the Process Automation group.
  3. Click Email Program Participants (Cohort).

Normally at this stage we would test the flow by using the Run or Debug features in Flow Builder. You can learn more about those helpful features in the Resources section.

In this case, because we’re building the flow in a safe, isolated Playground (and because we’ve tested this flow many times here at Salesforce), we will activate the flow now and test it in the next step.

Click Activate in Flow Builder. That’s it!

Click Back () at the top of the Flow Builder page to go back to Setup.

Create the Action

Before we can add our flow to the page, we need to create a new button for it to work on the Program Cohort object.

  1. In Setup, click the Object Manager tab.
  2. Find and select Program Cohort from the list.
  3. Click Buttons, Links, and Actions.

  4. Click New Action.
  5. In the Action Type field, select Flow.
  6. In the Flow field, select our new flow, Email Program Participants (Cohort).
  7. In the Label field, enter Email Program Participants. The Name field should automatically populate with Email_Program_Participants.
  8. In the Description field, enter Emails all program participants with engagements in this cohort.
  9. Click Save.

Add the Action to the Page Layout

Now that we have a button, let’s add it to the page as a quick action.

  1. In Setup, click the Object Manager tab.
  2. Find and select Program Cohort from the list.
  3. Click Page Layouts.
  4. Select Program Cohort Layout.
  5. In the palette, click Mobile & Lightning Actions.
  6. Drag our new button, Email Program Participants, from the palette to the Salesforce Mobile and Lightning Experience Actions area. Place it second in the list after Edit.

  7. Click Save.

Check the Button on the Layout

Just to make sure, let’s check that the button appears on a program cohort record. 

  1. Find and select Program Cohorts from the App Launcher ().
  2. Switch to the All list view and click any cohort. Let’s select Emerging Readers: Primary Grades.
  3. Check that the Email Program Participants button appears in the quick actions area on the record.

Don’t click that button just yet! In the next step we make sure the email is sent with the details we expect. To do that, we will set up two new contacts with your email address, create program engagements for each, and add them to a cohort.

For now, click Verify to check your work and move on to the next step.

Resources

Salesforce 도움말에서 Trailhead 피드백을 공유하세요.

Trailhead에 관한 여러분의 의견에 귀 기울이겠습니다. 이제 Salesforce 도움말 사이트에서 언제든지 새로운 피드백 양식을 작성할 수 있습니다.

자세히 알아보기 의견 공유하기