Loading
Get Started with Communications, Media, and Energy & Utilities (CME)...
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
          Workflow for Creating Actions for States and Rules

          Workflow for Creating Actions for States and Rules

          You can define Vlocity Actions for your State Model and invoke them in two ways: by arrival at specific States, or by State Rules (in Spring '20 or later releases). These actions can invoke Apex methods (in Spring '20 or later releases), OmniScripts, Cards components, and more. In the Report Card State Model, all of the actions send emails to the student.

          Before You Begin

          Before you can create Vlocity Actions for States, you must create the States. See Workflow for Creating a State Model, States, and Transitions.

          Before you can create Vlocity Actions for State Rules, you must create the State Rules. See Workflow for Creating State Transition Rules.

          Before you can create actions, you must create the entities the actions invoke. The actions in the Report Card State Model invoke an Apex class, which then invokes one of a set of Email Templates. The following sections show you how to create the Apex class, the Email Templates, and the Vlocity Actions.

          This diagram illustrates the actions (green boxes) in the Report Card State Model.

          Report Card State Model Diagram
          1. Create the Apex Class that Sends Emails.
          2. Create the Email Templates for the State Model Example.
          3. Choose State Actions vs. State Rule Actions.
          4. Create the Vlocity Actions for the State Model Example.
          5. Add Actions to the Grade Rules.
          6. Enable the State Model Version.

          After you have created Vlocity Actions and associated them with States and State Rules, you are ready to proceed to the next task in the parent workflow. See Workflow for Testing a State Model.

           
          Loading
          Salesforce Help | Article