Logo
Home
Resources

Product

Custom Workflow

Resources

Blog
Youtube
Template
Home
>
Product
>
Template Top
>
detail

How to Search for Files in HubSpot Workflows (Using Custome Workflow Business v2)

This article explains the purpose, use cases, and operational steps for the "File Search Action" feature, part of the third-party HubSpot app "Custome Workflow Business v2."

Demo Video

Over view
Code

Detail

Purpose

The primary purpose of this workflow action is to search for a specific file within HubSpot's "Files" tool (File Manager) and retrieve its information (such as File ID, File URL, File Name, etc.).

The search can be performed based on a keyword (query) found in the file's name or its description.

Use Cases

This feature is useful when you need to dynamically retrieve specific file information within a workflow and use it in subsequent actions.

  • Sending Personalized Materials: Search for a document (e.g., PDF) using a keyword that matches a contact's interest, and then insert the retrieved fileUrl into an automated email.
  • Linking Contracts or Invoices: Search for files saved with a specific naming convention (e.g., "[Customer Name]_Contract") and save the retrieved fileId or fileUrl to a custom property on the contact or deal record.
  • Copying File Info to Properties: Search for a specific file and automatically update a contact's "Last Document Sent" property with the file's name.

Setup and Execution Steps (As seen in the video)

The video shows the process of searching for a file named test1 in the File Manager and retrieving its details (ID and URL).

Step 1: Check Data Before Execution

  • Open HubSpot's "Files and Templates" > "Files" screen.
  • Confirm that the target file, test1, exists.
  • Open the file's details and confirm that it has a "Description" of test description. This action can search the description field as well as the file name.

Step 2: Check Workflow and Trigger

  • Navigate to the workflow editor.
  • For demonstration purposes, the trigger (enrollment criteria) is set to activate when the "Event Date" property value is changed.

Step 3: Add the Custom Action

  • Click the "+" icon in the workflow to add a new action.
  • From the action selection panel, choose "Custome Workflow Business v2" from the "Integrated apps" section.

Step 4: Select the Action

  • From the list of custom actions that appears, select "File Search Action."

Step 5: Specify the Search Criteria

  • The configuration screen for "File Search Action" opens.
  • File name/description query: Enter the keyword you want to search for. In the video, test1 is specified. You can use fixed text or a property token here.
  • File type: (Optional) Select to narrow the search to a specific file type (e.g., PDF, PNG).
  • Folder: (Optional) Select to narrow the search to a specific folder.

Step 6: Activate the Workflow and Confirm Execution

  • The "1. File Search Action" is added to the workflow.
  • Activate the workflow ("Workflow is On") and perform the action that meets the trigger criteria.
  • Navigate to the "Enrollment history" tab and click on the execution history for the enrolled contact (Brian Halligan).

Step 7: Verify the Final Result

  • The execution "Event details" will appear on the right side.
  • The action is shown as "Successful."
  • In the "Action outputs" section, you can confirm that the fileName, fileId, and fileUrl have been correctly retrieved as values.
  • These output values can then be used in a "Set property value" action to save to a contact's properties or be used to personalize marketing emails.

‍

Source Code

HTML
CSS
Javascript

FAQ

Is this "File Search Action" a standard HubSpot feature?

No, it is not a standard feature. The feature explained in this article is a custom action that becomes available by installing a third-party app called "Custome Workflow Business v2" in HubSpot.

Does the search keyword need to be an exact match for the filename? Also, can it only search filenames?

No, it does not need to be an exact match. This action functions as a "File name/description query." It will search for files that contain the entered keyword (e.g., "test1") in either the filename or the file's description field.

Can I dynamically search for a filename by combining it with a contact's property value (e.g., "Customer Name")?

Yes, you can. As explained in Step 5, the "File name/description query" field allows the use of property tokens (personalization tokens) in addition to fixed text. This allows you to automate file searches based on information from the record enrolling in the workflow, such as "[Customer Name]_Contract."

Search

Search more

Related Template

Need Customization?

We can customize this sample to match your specific business requirements.

Book Free Consultation

Got a quick dev request?

Put it on Trello!Need a fix for HubSpot, CMS, or GAS? Post it on Trello.

Development Requests Here

GAS Library: Automated Blog Post NG Word Checking with AI (Gemini/OpenAI)

HubSpot Custom Workflow Guide: How to Find a Contact's "Most Recent Campaign"

HubSpot Custom Workflow Guide: How to "Search" for Products and Get Price/SKU Data

GAS Library Guide: How to Automatically Check for Broken Links in Google Sheets

HubSpot Custom Workflow Guide: How to Auto-Search and Recommend Marketing Events

Company Info
Name : SweetsVillage .Inc
CEO :
‍
Tomoo Motoyama

HomeTemplateCustomWorkflow
Terms & ConditionsPrivacy PolicyContact us

Copyright ©SweetsVillage .Inc

Back To Top Image