Professional Documents
Culture Documents
COURSE WORKBOOK
Lab Exercises: Step-by-step instructions for following along with course labs
Table of contents
1. If you do not have a salesforce account, sign up for a free Salesforce sandbox
account at developer.salesforce.com/signup.
2. Save the username and password you create for your Salesforce account as
you will need them to configure your Salesforce connection for this exercise.
Typically, your recipes should not have any hardcoded values, but we will make an
exception for this lab.
1. To begin building your recipe, choose the training project we created earlier
and click Create recipe. You will be guided to set up your recipe.
2. It’s a good practice to name your recipe in a way that makes it easy for you to
find. We can name this recipe Create a Contact in Salesforce. Do note that
leaving a recipe name blank will result in the creation of a name that is based
on the trigger and actions that you configure for the recipe.
3. Next, choose the destination project where you want to store your recipe, such
as the personal project we created in the earlier lesson.
4. As we are using a scheduled trigger, let’s select the starting point as Run on a
schedule and click the Start Building button.
5. Choose the trigger event, New Recurring Event, which will allow you to
determine the interval at which to execute recipe actions.
6. One of the input fields for this application requires the time interval between
triggers. Though we have various options available to us, we will set our
interval at 5 minutes for this lab.
1. As our scenario requires the creation of a contact for the Object input field,
select Contact and then specify the various input fields available when
creating a contact in Salesforce. All the fields that you can configure will be
shown and all required fields in an action will be marked with a red asterisk,
such as the last name.
2. For the purposes of this lab, let’s hardcode the required Last Name field to
your last name.
3. Additionally, you can add other available input fields to configure by clicking
on Show optional fields.
4. For this scenario, let’s also add in two optional fields: First Name and Email.
5. We will hardcode the optional fields as well: First Name to your first name and
Email to your email address. Note: we will use this contact record for
subsequent labs. If you are uncomfortable using your own contact
Once all fields have been filled, we can test the recipe which will pick up one trigger
event to run and will stop thereafter.
1. Since our trigger is run by a scheduler, it will pick up a job immediately. It will
also show if the job processed was successful or not. View the job report to see
that each processed job has complete details such as the data input and
output from every step.
2. Click the Create record step. In the input, you will see your name as the data
for the first and last name and your email address for the email address. In the
output tab, you will see details of the created record in Salesforce, such as the
Object ID.
Now, in your salesforce account, let’s find out if the contact has been created.
1. Under the Contacts tab, you will notice that a contact has been created with
the last and first name, as well as the email address, that we have configured.
2. If you are unable to locate Contacts in your page, click the App Launcher at
the top right and select View All. You will be able to locate Contacts from the
app launcher.
1. When naming your recipe, think of a name that makes it easy for you to find.
We can name this recipe New/Updated Opportunity will Create a Case to
Onboard Customers.
2. Next, ensure that the destination project is where you want to store this recipe,
such as your personal project.
3. Then, let’s select the starting point as Trigger from an app and click the Start
Building button.
4. Next, let’s select Salesforce as the application.
5. Choose New/Updated Record (Opportunity) as the trigger.
6. Then, select the Salesforce connection that you have established in the
previous lab for this recipe.
7. For the setup, let’s leave the time at which the recipe should pick up events
from as it is - one hour ago.
8. Scroll down to toggle Trigger conditions.
9. To specify the trigger condition, let’s search for the Stage datapill and drag
and drop it in the Trigger Data input field.
10. We will select Equals as the condition type and input Closed Won as the value.
Now that we have configured the trigger, let’s look at making actions.
1. To search for contacts in Salesforce, click Action in an app and search for
Salesforce as the application and Search records as the action.
2. Here, select Contact as the object so as to search within contacts in
Salesforce.
3. Next, in choosing the field to match, we will search by the Email input field, as
email addresses are usually unique to every contact.
Now that we are done, before testing our recipe, let’s go into our Salesforce account
to create an opportunity that’s marked as Closed Won.
Now back in the Salesforce platform, let’s click Cases and we will notice that a case
with the subject ABC Company-onboarding has been created.
If you are unable to locate Contacts in your page, click the App Launcher at the top
right and select View All. You will be able to locate Contacts from the app launcher.