When running workflows in HubSpot, you might need to know, "Which marketing campaign did this contact just register for?" This allows you to follow up with the most relevant context.
A 3rd-party custom workflow action makes it possible to dynamically search for a contact's most recent activity.
This article covers the purpose, use cases, and setup steps for the "Recent Campaign Search Action."


The primary purpose of this action is to find the single, most recent marketing campaign that the enrolled contact has registered for (typically within the last day or so).
If a contact registers for multiple campaigns in a short period, this action identifies the newest one.
The ultimate goal is to retrieve (output) that specific campaign's details (Campaign ID, Campaign Name, and Campaign Notes), which you can then use in subsequent workflow steps.
This action is used to immediately understand a contact's latest interest and automate follow-up.
campaignName found is "Webinar A," send the Webinar A follow-up. If it's "Sale B," send the Sale B follow-up.campaignIdcampaignNamecampaignNotesThis action only finds the campaign data. To use it, you must add a follow-up action.
Example: Save the campaign name to a contact property
[campaignName] token.Now, every time this workflow runs, the contact's property will be automatically updated with the name of their latest campaign interest.
No, it is not. This is a custom action that becomes available by installing a third-party app called "Custom Workflow Professional v2."
This action automatically references the contact currently enrolled in the workflow (as mentioned in Step 2), so no extra configuration is needed. It identifies and returns the information for the single, most recent campaign that this specific contact was registered for (e.g., from yesterday to the present).
No, it does not save automatically. As emphasized in the article's "【Important】How to Use the Retrieved Information" section, this action's only job is to search for and output the campaign information. To save that information to a property, you must add HubSpot's standard "Set property value" action after this custom action and specify the output token (campaignName) as the value to set.
We can customize this sample to match your specific business requirements.
Book Free ConsultationPut it on Trello!Need a fix for HubSpot, CMS, or GAS? Post it on Trello.
Development Requests Here