In this post, I’ll be using Salesforce Flow to create the following statuses based on campaign type.
| Campaign Type | Campaign Member Status |
| Online Advertising | Clicked Converted |
| Sent Opened Clicked Unsubscribed |
|
| Webinar | Invited Registered Attended No Show |
In this post, I’ll be using Salesforce Flow to create the following statuses based on campaign type.
I recommend you map out what status values you want to use for each campaign type as well as which statuses should be marked as default and responded before creating your flow.
Navigate to Setup > Process Automation > Flows and select new flow. Select Record-Triggered Flow from the wizard.

Configure the Trigger to occur when a record is created, and after the record is saved.

Select Campaign as the trigger object.

Drag and drop a decision element onto the page. This is where we will set up the logic to determine what campaign statuses to create for each campaign type.
In this example, I will be creating three outcomes:
Each outcome will use the {!$Record.Type} resource and use the value of the campaign type.
Click the plus sign to add each outcome.




Once your decision outcomes have been created, you can add actions to create each campaign member status. Each status for the campaign will use a Create Records element. For example, if you want to create four campaign member statuses for webinars, you will need add four Create Record elements to the flow.
Each create records element will set the following values:
Setting these values are optional:
Using my webinar campaign type as an example, here is what my create record steps look like.




Here’s what my flow looks like once all my webinar statuses have been added.

Note: There is more than one way to create campaign member statuses using Flow. I’ve chosen to create them using separate create record elements, but you can also create them by using an assignment element paired with a loop element. While this method works and eliminates some steps, you cannot assign HasResponded and IsDefault values to individual statuses.
Connect the decision element to the first create record element and select webinar as the outcome.

Connect the rest of your elements. Now, we are left with a flow that looks like this.

Repeat the process above by adding more create record elements to your flow for the rest of your campaign types.
Here’s what my flow looks like once I added the Online Advertising and the Email statuses.

Optionally, you can delete the two default status values (sent and responded) from campaigns automatically by adding a delete record action to your flow.
Drag and drop the delete records element to your flow, select the Campaign Member Status object, and add the criteria.

Connect the delete records element to the last element of each of the flow steps.

Note: Use caution when deleting these statuses. Campaigns must have one status set to responded and one status set to default. If you remove the ‘Sent’ and ‘Responded’ statuses from campaigns you must set these values for one of your custom custom statuses.
Save and activate your flow. Create new campaigns for each of the campaign types to ensure the statuses are correct.



Send me a tweet @jennamolby, or contact the Sercante team for help.
Subscribe to The Spot
Martech Resources
Shopping consultants or jobs? Wanna join the action? Here’s everything you need to solve all the marketing technology things.
Quick Links
Get The Spot
The Spot for Pardot newsletter delivers a healthy dose of martech to your inbox — and nothing more.
© 2024 The Spot For Pardot | All Rights Reserved Sercante LLC.4
This website uses cookies to improve your browsing experience. By using our site, you consent to the use of web cookies.
You can manage or withdraw your consent anytime through your web browser settings. Learn more about our use of cookies in our Privacy Policy.
We’re here to support your growth journey. Let’s connect and find the right solution for you. Fill out the form, and our experts will be in touch!