Loading
Salesforce now sends email only from verified domains. Read More
Help Agent Performance DegradationRead More
Set Up and Maintain Retail Execution
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Set Up Einstein Visit Task Recommendations Using Apex

          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
          1. From Setup, create an Apex Class.
          2. From Setup, go to Flows and click New Flow.
          3. Select Autolaunched and click Create.
          4. Create TargetIDs as an input variable.
          5. Create output variables as ParentTaskIDs, RecommendedTargetIDs, TaskRecommendationReasons, and TemplateRecordIDs.
          6. Drag the Action element and select your Apex class as Action.
          7. 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.
          8. Connect the Start and Action element.
          9. Save your work.
          10. Enter the flow’s label and API name.
          11. Save your changes.
          12. 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.
           
          Loading
          Salesforce Help | Article