Assign Users to Enablement Programs with a Flow
Create a flow that assigns users to an Enablement program when they satisfy certain criteria.
Required Editions
| Available in: Lightning Experience |
| Enablement is available in Developer Edition with a limited number of add-ons. It is also available with Sales, Service, or the Salesforce Platform in: Enterprise, Performance, Unlimited, and Einstein 1 Sales Edition Editions for an additional cost |
| Enablement Lite is available with Sales in: Enterprise, Performance, and Unlimited Editions |
| Partner Enablement is available in Developer Edition with a limited number of add-ons. It is also available with Sales, Service, or the Salesforce Platform in: Enterprise, Performance, and Unlimited Editions for an additional cost. A supported PRM add-on license is required. |
| User Permissions Needed | |
|---|---|
| To create a flow in Flow Builder: | Manage Flow |
| To assign or unassign programs: | Design and Deliver Enablement Programs OR Design and Deliver Enablement Lite Programs |
Ensure that users have the required permission for taking the type of program you’re assigning. Otherwise, the assignment fails.
- Create a flow.
- From Setup, in the Quick Find box, enter Flows, and then select Flows.
- Click New Flow.
- Select the flow type you want to use. We recommend Record-Triggered Flow.
- Click Create.
- To query for a Program ID, add a Get Records element.
- In Flow Builder, click
to add an element. - In the Add Element panel, search for Get Records and select it.
- In the new element panel, enter a label, API name, and description.
- For the Object field, search for Enablement Program and select it.
- Complete the remaining fields.
- Save your changes.
- In Flow Builder, click
- To assign the program, add an Action element to the flow.
- After the Get Records element, click
to add another element. - Click Action.
- Search for Assign Enablement Program and select it.
- For Assignee ID, select $User and then Id. The expected final value is {!User.Id}.
- For Notification User ID, enter a formula for the user who you want to notify when the assignment is complete, such as an Enablement admin or a manager.
- For Program ID, select Enablement Program from the Get Records action you created, and then click ID. The expected final value is {!GetRecordsElementAPIName.Id}, where GetRecordsElementAPIName is the API name you entered for the Get Records element.
- For Start Date, select $Flow and then
CurrentDate. The expected final value is {!$Flow.CurrentDate}. If you enter a hard-coded date, the date ends up in the past, causing the assignment to fail. Use a formula to set a date in the future.
- Click Done.
- After the Get Records element, click
- Save and activate the flow.
- Click Save.
- Enter a flow name, API name, and an optional description.
- Click Done.
- In Flow Builder, click Activate.
The assignEnablementProgram invocable action counts against your org’s Bulk API 2.0 limits. To help avoid these limits, we recommend that you bulkify your request.
此文章是否解決您的問題?
請讓我們知道,以便我們改進!
