Loading
Salesforce now sends email only from verified domains. Read More
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
          Create the Vlocity Actions for the State Model Example

          Create the Vlocity Actions for the State Model Example

          The actions in the Report Card State Model invoke a custom class, but you can invoke prebuilt services in your State Model actions.

          For example:

          • To send email notifications if your base object is Application__c, use InsVlocityActionService:notifyApplicant.

          • To assign any type of base object records to a Queue, use InsVlocityActionService:assignRecordToQueue.

          To create the Vlocity Actions for the Report Card State Model:

          1. In Lightning Experience, click the App Launcher App Launcher Icon.
          2. Type model in the Search field and select Vlocity State Models.
          3. Click Report Card State Model., then click the Report Card State Model V1 link.
          4. In the Vlocity Actions section of the page, click New.
          5. Specify the following settings. Leave other settings at their defaults. Note that the Vlocity State Model Version field is set for you.

            Setting

            Value

            Vlocity Actions Name

            Notify of Incomplete

            Active

            (checked)

            Display Label

            Notify of Incomplete

            State Model

            Report Card State Model

            To State

            Incomplete

            IsStateDefaultAction

            (checked)

            Invocation Class Name

            ReportCardEmail

            Invocation Method Name

            notifyContact

            Invocation Method Input

            { "emailTemplateName":"CourseIncomplete" }
          6. Click Save & New.
          7. Specify the following settings. Leave other settings at their defaults. Note that this action doesn't have To State or IsStateDefaultAction values.

            Setting

            Value

            Vlocity Actions Name

            Notify of Grade A

            Active

            (checked)

            Display Label

            Notify of Grade A

            State Model

            Report Card State Model

            Invocation Class Name

            ReportCardEmail

            Invocation Method Name

            notifyContact

            Invocation Method Input

            { "emailTemplateName":"PassedWithGradeA" }
          8. Click Save & New.
          9. Repeat the previous three steps to create the following Vlocity Actions. Assign the same values to the Active, State Model, Invocation Class Name, and Invocation Method Name settings. Click Save after creating the last one.

            Vlocity Actions Name

            Display Label

            Invocation Method Input

            Notify of Grade B

            { "emailTemplateName":"PassedWithGradeB" }

            Notify of Grade C

            { "emailTemplateName":"PassedWithGradeC" }

            Notify of Grade D

            { "emailTemplateName":"PassedWithGradeD" }
          10. Make sure your list of Vlocity Actions looks like this:
            Vlocity Actions List
           
          Loading
          Salesforce Help | Article