Set Up Einstein Visit Task Recommendations Using Apex
You can use Apex to
select a list of visits or visit recommendations that Einstein must provide task recommendations
for. You can then create a flow and add the Apex Class as an Action
element.
Required Editions
Available in Lightning Experience in Professional, Unlimited, and
Enterprise Editions that have Consumer Goods Cloud enabled.
User Permissions Needed
To create flows:
Manage Flows
From Setup, create an
Apex Class.
From Setup, go to Flows
and
click
New Flow.
Select Autolaunched and click Create.
Create TargetIDs as an input variable.
Create output variables as ParentTaskIDs,
RecommendedTargetIDs, TaskRecommendationReasons,
and TemplateRecordIDs.
Drag the Action element and select your Apex class as Action.
Enter a label and API name for the element, and map the input and output parameters of Apex
class to the corresponding parameters of the flow.
Connect the Start and
Action
element.
Save your work.
Enter the flow’s label and API name.
Save your changes.
Click
Activate
Recommend Tasks Using Apex Create an Apex class to select a list of visits or visit recommendations that Einstein must provide task recommendations for.
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.