Logo
Home
Resources

Product

Custom Workflow

Resources

Blog
Youtube
Template
Home
>
Product
>
Template Top
>
detail

How to Search for File Manager Folders in HubSpot Workflows (Using Custome Workflow Business v2)

This article explains the purpose, use cases, and operational steps for the "Folder 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 folder in HubSpot's "Files" tool (File Manager) by its name and retrieve various details about that folder (such as its Folder ID, Parent Folder ID, etc.).

The retrieved information is returned as "action outputs" in the workflow. This allows you to save the information to a property in a subsequent action or use it as a parameter for another API call.

Use Cases

This feature is useful for automating file management and organization within a workflow.

  • Automated File Organization: When uploading files to HubSpot via an API, dynamically search for the target folder ID to specify it as the destination.
  • Linking Folder Info to Records: Search for folders created for specific customers or deals (e.g., "CustomerName_Deal_Docs") and save the Folder ID to a custom property on the corresponding contact or deal record.
  • Verifying Folder Existence: Check if a specific project folder exists. If it doesn't, automatically create a task to ask a team member to create it.

Setup and Execution Steps (As seen in the video)

The video shows the process of searching for a folder named test1 in the File Manager and retrieving its ID and other information.

Step 1: Check Data Before Execution

  • Open HubSpot's "Files and Templates" > "Files" screen.
  • Confirm that the folder you intend to search for, named test1, exists in the File Manager.

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 "Folder Search Action."

Step 5: Specify the Folder Name to Search

  • The configuration screen for "Folder Search Action" opens.
  • Folder name query: Enter the name of the folder you want to search for. You can enter fixed text (like test1 in the video) or use a property token to dynamically specify the folder name.
  • After configuring, click "Save."

Step 6: Activate the Workflow and Confirm Execution

  • The "1. Folder 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 information such as folderId, folderName, and parentFolderId has been successfully retrieved as values.
  • These output values can then be used, for example, in a subsequent "Set property value" action to save them to a record's property.

‍

Source Code

HTML
CSS
Javascript

FAQ

Q1: Is this "Folder Search Action" a standard HubSpot feature?

A: 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.

Q2: Can I specify the folder name I want to search for using a property value from the record that triggered the workflow (e.g., a contact)?

A: Yes, you can. As explained in Step 5, the "Folder name query" field allows the use of property tokens (personalization tokens) in addition to fixed text (e.g., "test1"). This allows you to dynamically search for a folder name based on the record's information, such as "[Customer Name]_Project_Files."

Q3: Can I use this action to search for "files" (like PDFs or images) instead of folders?

A: No, you cannot. This "Folder Search Action" is a dedicated action for searching folders within the file manager by name and retrieving information like their ID and parent folder ID. If you need to search for files, a different action (such as the "File Search Action") would be required.

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