Loading
Salesforce now sends email only from verified domains. Read More
Insurance
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
          InsVlocityActionService:notifyApplicant

          InsVlocityActionService:notifyApplicant

          Use this service to send an email notification to applicants.

          This service is used in Vlocity State Model workflows when the Vlocity Actions are configured.

          Class: InsVlocityActionService

          Method: notifyApplicant

          How It Works

          1. Takes an Application__c instance Id and retrieves the email address to be used as the recipient of the email notification.

            If the Primary Applicant Contact (PrimaryContactId__c) field has a value, the service retrieves the email address in the contact record.

            Note
            Note

            In the case of Health Provider applications, this represents the Individual Provider applicant.

            If the Account (AccountId__c) field has a value, the service retrieves the email address in the account record.

            Note
            Note

            In the case of Health Provider applicants, this would represent an Organizational Provider applicant.

          2. Email is sent with the template specified in the emailTemplateName value from invokeMethodInput. The place holder {0} can be used in the template to be used as the application's reference link.

            Note
            Note

            {0} is the only available placeholder that can be used as a reference link.

          Remote Options

          Option

          Description

          Id

          Required.

          Id of the Application instance (Application__c)

          invokeMethodInput

          Required.

          The InvokeMethodInput__c value set in the Vlocity Action instance is passed on at runtime during the execution of the Vlocity State Model.

          Set the value for the emailTemplateName with the name of the EmailTemplate instance to be used for the email notification:

          {'emailTemplateName': 'Applicant Notification Email Template'}

          Input JSON

          Here's the format for the input JSON:

          { 
             "Id": <Application__c Id>,
             "invokeMethodInput": {"emailTemplateName": <Email Template Name>}
          }

          And here's what a real-life example might look like:

          { 
             "Id": "a046g00000FGItyAAH",
             "invokeMethodInput": {"emailTemplateName": "Applicant Notification"}
          }

          Output JSON

          The output is a simple true/false success message.

          {'emailSentSuccessfully': true/false}
           
          Loading
          Salesforce Help | Article