Automate Your Survey Invitations
Learning Objectives
After completing this unit, you’ll be able to:
- Create a process on the Opportunity object.
- Automate a survey invitation.
Automate Survey Invitations
Ursa Major Solar is growing at an unbelievable pace, all thanks to its sales reps. Gabriela knows that sales is a very intense job, so she wants to ensure that the sales reps are well taken care of. She wants to automate the process of sending a survey invitation to gather feedback from sales reps every time an opportunity is lost or won.
To do this, she needs to use Process Builder.
Gabriella calls Maria, the Salesforce admin, and asks if she can build a process that automatically generates the Sales Rep Feedback (Closed Opportunity) survey when an opportunity is lost or won.
Create a Process on the Opportunity Object
Maria’s first step is to create a process on the Opportunity object.
- Click
and select Setup.
- In the Quick Find box, enter
Process Builder
. - Click Process Builder.
- Click New.
- Name the process. Maria enters
Survey Invitation on Opportunity Closure
. - For The process starts when, select A record changes.
- Click Save.
- Click Add Object.
- Select Opportunity as the object and specify that the process should start when a record is created or edited.
- Click Save.
Here’s how the process looks at this stage.

Add a Criteria
Next, she adds a criteria that determines when a survey invitation is generated.
- Click Add Criteria.
- Name the criteria. Maria enters
Closed Opportunity
. - Set the following conditions:
- For Criteria for Executing Actions, select Conditions are met.
- In the Set Conditions section, select the following.
- First Condition:
- Field: Stage
- Operator: Equals
- Type: Picklist
- Value: Closed Won
- Second Condition:
- Field: Stage
- Operator: Equals
- Type: Picklist
- Value: Closed Lost
- First Condition:
- For Conditions parameter, select Any of the conditions are met (OR).
- On the Advanced section, select Yes. This doesn't allow the process to send invitations when a closed opportunity is edited.
- Click Save.
Let’s see how this step looks on Maria’s screen.

Add an Action
The last step is to add an action that triggers a survey invitation once an opportunity is closed.
- Click Add Action.
- For Action Type, select Send Survey Invitation.
- Name the action. Maria enters
Send Survey Invitation to Sales Reps
. - For Survey, select Sales Rep Feedback (Closed Opportunity).
- For Email Content, Maria selects Survey link. This allows her to send an email containing a link to the survey instead of a link to only one question.
- For Email Template, select Embed_a_Survey_Link.
- In Recipient Type, select the following:
- Recipient Type: Users in Your Org
- Recipient: Owner ID > User ID
- Maria chooses to send an anonymous link to ensure that the feedback is reviewed without any bias.
- Click Save.
- Click Activate.
Here’s what the final step looks like.

After an opportunity is closed, an email invitation for the Sales Rep Feedback (Closed Opportunity) survey is sent to the sales rep. The invitation and response records are also available in the Survey Invitations and Responses list on the Related tab of the opportunity record.