You are here:
Alert Applicants When Their Benefit Application Status Changes
Keep applicants informed of the progress of their benefit applications by using a flow to automatically send a desktop notification and an email to applicants when the status of their benefit application changes.
Required Editions
| View supported product editions. |
| User Permissions Needed | |
|---|---|
| To open, edit, or create a flow in Flow Builder: | Manage Flow |
| To trigger the Send Custom Notification action in flows that run in user context, REST API calls, and Apex callouts: | Send Custom Notifications |
| To view notification types: | View Setup and Configuration |
| To create and edit notification types: | Customize Application |
Create a flow that sends a desktop notification and an email to the primary applicant who submitted the benefit application and created the individual application record.
-
Create a custom notification type to alert applicants to a change in their application
status.
- From Setup, in the Quick Find box, enter Notification Builder, and then select Custom Notifications.
- Click New.
- Enter a custom notification name, such as Benefit Application Status Update, and then press Tab to populate the API name.
- For Supported Channels, select Desktop.
- Save your changes.
-
Create a record-triggered flow.
- From Setup, in the Quick Find box, enter Flows, and then select Flows.
- Click New Flow.
- Select Start From Scratch and then click Next.
- Select Record-Triggered Flow, and then click Create.
-
Configure the Start element.
- For Object, select Individual Application.
- Under Configure Trigger, for Trigger the Flow When, select A record is updated.
- Under Set Entry Conditions, for Condition Requirements, select All Conditions Are Met (AND).
-
For Field, select RecordTypeID. For Operator, select
Equals. For Value, enter the ID of the record type on the Individual Application object. For example, enter the Benefit Assistance record
type ID.
For information on how to find the ID of a record type, see Find the ID of a record type.
- Click Add Condition.
- For Field, select Status. For Operator, select Is Changed. For Value, select $GlobalConstant.True.
-
Create variables to store the applicant’s user ID and email ID.
-
Click
, and then click New Resource.
- For Resource Type, select Variable.
- For API Name, enter applicant_user_id.
- (Optional) Enter a description.
- For Data Type, select Text.
- Select Allow multiple values (collection), and then click Done.
- Repeat the steps to create another variable whose API name is applicant_email_id and whose data type is Text.
-
Click
-
Create a text template for the notification title and the email subject, and create another
text template for the notification and email body.
-
Click
, and then click New Resource.
- For Resource Type, select Text Template.
- For API Name, enter notif_title_email_subject.
- (Optional) Enter a description.
- For Body, enter Application status change.
- Click Done.
-
Repeat the steps to create another text template whose API name is
notif_email_body. For Body, select View as Plain
Text, and then enter Your application {!$Record.Name} is
{!$Record.Status}.
The notif_email_body text template uses the Record.Name and Record.Status resources to get the application ID and the application status from the individual application record.
- Close the toolbox.
-
Click
-
Store the applicant’s user ID and email ID in the variables.
-
In the canvas, click
.
- Search for and select the Assignment element to add to the canvas.
- For Label, enter Get Applicant User ID and Email, and then press Tab to populate the API name.
- (Optional) Enter a description.
- For Variable, select applicant_user_id. For Operator, select Add. For Value, select Record | Created By ID | User ID.
- Click Add Assignment.
- For Variable, select applicant_email_id. For Operator, select Add. For Value, select Record | Created By ID | Email.
-
In the canvas, click
-
Use the ID for your custom notification type record to send the notification.
- Add the Get Records element to the canvas after the Assignment element.
- For Label, enter Get Custom Notification Type, and then press Tab to populate the API name.
- (Optional) Enter a description.
- Under Get Records of This Object, for Object, search for and select Custom Notification Type.
- Under Filter Custom Notification Type Records, for Condition Requirements, select All Conditions Are Met (AND).
- For Field, select DeveloperName. For Operator, select Equals. For Value, enter Benefit_Application_Status_Update.
-
Create an action to send the notification to the applicant.
- Add the Action element to the canvas after the Get Records element..
- For Category, select Notifications.
- For Action, search for and select Send Custom Notification.
- For Label, enter Send Application Status Change Notification, and then press Tab to populate the API name.
- (Optional) Enter a description.
- Under Set Input Values for the Selected Action, for Custom Notification Type ID, select Custom Notification Type from Get_Custom_Notification_Type | Custom Notification Type Id.
- For Notification Body, select notif_email_body.
- For Notification Title, select notif_title_email_subject.
- For Recipient IDs, select applicant_user_id.
- Turn on Target ID, and then select Triggering Individual Application | Individual Application ID.
- Click Done.
-
Create an action to send the email to the applicant.
- Add the Action element to the canvas after the notification action.
- For Category, select Email.
- For Action, select Send Email.
- For Label, enter Send Application Status Change Email, and then press Tab to populate the API name.
- (Optional) Enter a description.
- Turn on Body, and then select notif_email_body.
- Turn on Recipient Address Collection, and then select applicant_email_id.
- Turn on Subject, and then select notif_title_email_subject.
- Save and activate the flow.
Did this article solve your issue?
Let us know so we can improve!

