New
Are you ready for Agentforce? Take our assessment to find out today!
    • Expertise
          • Product

          • Sales Cloud
          • Service Cloud
          • Account Engagement
          • Marketing Cloud Next
          • Revenue Cloud
          • Agentforce
          • Data 360 (Data Cloud)
          • CRM Analytics
          • Tableau Next
          • Experience Cloud
          • Industry

          • Manufacturing
          • Healthcare
          • High Tech
          • Financial Services
          • Media & Entertainment
    • Solutions
      • Consulting
      • Implementation
      • Managed Services
      • Health Check
      • Training
    • About Nebula
      • We Are Nebula
      • Meet the Team
      • Join Our Team
    • Resources
    • Login
    • Get in Touch
Share:

Track Which Marketing Campaigns Are Driving Salesforce Tasks

by Snazek Beydoun
9th November 2022 • 3 min read
Snazek Beydoun
Share:

Salesforce Tasks have been around for quite a long time, acting as a bridge between different teams and team members. When it comes to marketing activities, a common request we had was ‘Can we see which campaign triggered our tasks?’. Up until now, we were unsure, but not anymore.

With the collaboration of our Salesforce and Account Engagement (Pardot) team, we built a solution that is simple yet powerful.

Please note, that our solution requires Connected Campaigns to be configured on your Account Engagement instance. 

 

1. ‘Create Salesforce Task’ action in Account Engagement (Pardot)

No matter whether your action is in an Automation Rule, Engagement Studio, Form, or Form Handler, our solution will work the same way. All you need to do is follow the steps below:

  • Make sure there is an assignment step ahead of the Salesforce task creation action, as it would run for assigned records only.
  • Be specific on the Subject: what should the salesperson do and what is it related to?
  • Assign it to the CRM Owner, a specific salesperson, or a Salesforce queue.
  • Under the Comments section, only display the Campaign ID. This is crucial for the automated process to work, so make sure you educate your marketing users on this step.

Pardot Setup for Salesforce Task

 

2. Lookup field on the Task object

After completing the above steps in Account Engagement (Pardot), switch over to Salesforce to create your new Lookup field. To do this you will need to complete the following steps:

  1. Go to Object Manager > Activity > Field & Relationships > New
  2. Select Lookup Relationship and click Next
  3. Select the Related To object as “Campaign” and click Next
  4. Change the Field Label and Field Name if required and click Next
  5. Change the Field Level Security if required and click Next
  6. Add the reference field to the Page Layouts and click Next until the field is created

Now your Lookup field is ready, the next step is to automate its content.

 

3. A very simple Automated Flow

Automated Flow for Salesforce Task

The final step you are going to want to do is build a flow that pulls through the Campaign ID from the Task Description in Account Engagement (Pardot) and populates it under the Campaign Lookup field.

  1. Create a record-triggered flow with the following criteria set:
    • Object: Task
    • Trigger: A record is created
    • Condition: CreatedById equals <ID of the Pardot Connector User>
    • Optimise for: Actions and Related Records
  2. Add an “Update Task” node
    • Check the “Use task record that triggered the flow” for how to find Records to Update and Set Their Values
    • Set Filter Conditions to “None – Always Update Record”
    • Under the “Set Field Values for the Task Record” Field area insert the name of the Lookup Field you have created and set the value as “$Record>Description”
  3. Click Save and don’t forget to activate it once you have tested the Flow.

Now, let’s look at what we created:

Salesforce Task

We hope you feel empowered to build this solution for your team. For building out this or similar processes on your Salesforce org, get in touch with our expert team.

Find related resources by topic

Marketing

You may also be interested in

Fix the Foundations: Success in the Agentic Era Marketing Edition
Blog
Marketing

Fix the Foundations: Success in the Agentic Era Marketing Edition

We hear the announcements and on repeat about how the Agentic Era is here to transform the B2B and B2C landscapes. These changes will enable…

4 min read Read Blog
Laying the Right Foundations
Success Story
Account Engagement Sales Cloud

Laying the Right Foundations

Complex processes and cautious stakeholders hindered Redwheel's CRM adoption. Nebula's Account Engagement and Salesforce audits mapped the journey, restoring confidence and delivering a strategic roadmap for a powerful, sales-enabled CRM.

May 27, 2025 Read Customer Story
How to Avoid Completion Action Limits in Account Engagement (Pardot) Using Engagement Studio
Blog
Marketing

How to Avoid Completion Action Limits in Account Engagement (Pardot) Using Engagement Studio

Conditional completion actions and completion actions, while powerful, can quickly consume the available limits on your forms and form handlers. If you’ve been creating and managing…

3 min read Read Blog
Aligning Marketing and Sales for a Global Insurer
Success Story
Account Engagement Sales Cloud

Aligning Marketing and Sales for a Global Insurer

Poor email deliverability and disconnected data misaligned Lockton's sales and marketing. Nebula's Salesforce and Account Engagement integration established governance, delivering a 97% delivery rate, 25 empowered users, and transparent insights.

Apr 30, 2025 Read Customer Story
Upgrade Your Form UX with Toggle Switches
Blog
Marketing

Upgrade Your Form UX with Toggle Switches

If you would like to modernise your forms, provide a slicker user experience, and match contemporary web design, follow our mini guide that helps you…

2 min read Read Blog
Creating a seamless membership experience
Success Story
Account Engagement Sales Cloud Service Cloud

Creating a seamless membership experience

Data silos and disparate systems hindered the World Travel and Tourism Council's membership experience. Nebula's Cvent integration, record cleansing and automated invoicing delivered rapid efficiency, unified data, and a 10-year partnership.

Jan 30, 2025 Read Customer Story
Account Engagement Landing Page Conversion Mastery
Blog
Marketing

Account Engagement Landing Page Conversion Mastery

Building pages that truly perform in Account Engagement isn't just about clicking buttons; it's about strategy, technical finesse, and empathy for the user. Here’s my…

5 min read Read Blog
Targeted Sales Enablement for Users
Success Story
Account Engagement CRM Analytics Sales Cloud

Targeted Sales Enablement for Users

Stale opportunities and missing data delayed Clarion Events' pipeline. Nebula's Einstein Next Best Action delivered intuitive guidance, surging stage moves by 132%, doubling activities, capturing crucial VAT details, and boosting CRM adoption.

Jan 3, 2025 Read Customer Story
5 Hidden Snags in Account Engagement
Blog
Marketing

5 Hidden Snags in Account Engagement

Managing Salesforce Account Engagement (Pardot) requires more than just marketing knowledge. Even in a well-established org, you can sometimes hit some invisible walls. Below are…

4 min read Read Blog
5 new Marketing Cloud Next features we’re excited to try
Blog
Marketing

5 new Marketing Cloud Next features we’re excited to try

The Spring ’26 release is here, and it’s a significant milestone for Marketing Cloud Next (also known as Agentforce Marketing). This release focuses on making…

4 min read Read Blog
Nebula

Our journey started in 2012 with a clear vision and core values. Nebula is dedicated to empowering our customers through fostering relationships founded on collaboration, flexibility, and trust.

  • We Are Nebula
  • Resources
  • Join Our Team
  • Terms and Conditions
  • Privacy Policy
The Space Aldgate,
Irongate House,
22-30 Dukes Place,
London EC3A 7LP
+44 207 112 8026
Get in Touch
Copyright © 2026 Nebula Consulting. All Rights Reserved.