Newer Version Available
Try It Out: Create a Process that Sends an Email
Now that we've built our email template and email alert, we're ready to create a process with an Email Alerts action. We could add the email alerts action to the existing process we’ve already created, but we need the process to send the email alert whenever a position is open and approved. Therefore, in our new process we want to evaluate a position record any time it’s created or edited instead of only when the record is created. That way, any subsequent changes to the record, like changing the status to approved, trigger the process. We’ll create our new process using the same basic steps we’ve been using. Let’s get started.
- Go to the Process Builder and create a new process.
- Enter New Position Notification for the process name. Press TAB to automatically enter the API name.
- For the process description, enter Notifies all employees that a new position is available.
- For The process starts when, select A record changes, and then save the process.
- Use the Position object to start your process and start the process when a
record is created or edited.Let’s define our criteria so that it sends an email alert whenever a position record is open and approved.Now we can add our Email Alerts action.
Table 1. Values for Creating the “New Position Notification” Criteria Field Value Criteria Name Check for Open and Approved Status Criteria for Executing Actions Conditions are met Set Conditions Position: Status equals Open - Approved Conditions All of the conditions are met (AND) Advanced Option Yes, execute actions only when specified changes are made to the record - In the IMMEDIATE ACTIONS area, click Add Action.
- Select Email Alerts.
- For Action Name, enter Email New Position Alert.
- For Email Alert, enter Email New Position Alert and select the Email New Postion Alert.
- Click Save.
And that's all there is to it! To test out this process, all you need to do is activate it and then create a new position record with a status of Open - Approved. Within a few seconds, all users within your organization will receive an email letting them know that a position has just been created. Go ahead—try it!