website logo
Go To WebsiteHubSpot Marketplace
Home
Salesforce
HubSpot
Web App
API Reference
Navigate through spaces
⌘K
Table of Contents
Quick Starts
Features
Use-Cases
Workflow Actions
Workflow Triggers & Filters
FAQs
Docs powered by archbee 

Create Folder Action

10min

The Create folder action by CloudFiles creates a folder in a desired destination on any cloud storage. This means you can automatically create folders in Google Drive, SharePoint, OneDrive etc... using standard HubSpot workflows. This also enables you to create complex folder hierarchies by using this action multiple times. You can use this action along with the Create Attachment action to auto-create folder attachments on your HubSpot records when they are created.

Make sure that you have connected an automation user in order for this action to work with your Cloud Storage.

Document image


The Create folder action will require the following parameters:

  1. Library - The desired library where the folder must go (e.g. SharePoint, Google Drive etc...)
  2. Destination parameters-  Various parameters that specify where the folder will be created. These parameters can change after you select the library
  3. Folder name- Final name of the folder that would be created through this action



Document image


In the sections below, we detail out each of the parameters that you can see in this action.

1 - Library

Library is the desired Cloud storage from where you want to create the folder. For files and folders, anything between CloudFiles, OneDrive, SharePoint, Box or Dropbox can be selected.



Document image


2 - Shared Drive ID / Drive

This is important for Google Drive & SharePoint library selection. Both these cloud storage have multiple drives where files can be stored. E.g. Google Drive has My Drive & Shared Drive while SharePoint can have multiple drives inside multiple sites. This parameter helps CloudFiles identify which drive to pick the file or folder from.

In order to retrieve this Drive ID, follow the simple steps below -

  1. Find the CloudFiles widget from any HubSpot record, and click on CloudFiles. It will redirect you to
  2. Under the libraries tab, navigate to the file or folder that you are trying to attach.
  3. Copy the parameter from the meta data on the right side of the screen.

These steps are shown in the GIF below -

Document image


3 - Path to destination

This specifies the destination folder in which this new folder will be created. You can specify this using a simple '/' separated path. The path to the folder can be simply copied from the meta data info in the CloudFiles Library using the same steps as specified in the shared drive ID section above.

4 - Folder name

This is the name you wish to give your newly created folder. Usually it's a good practice to use personalization tokens such as deal name or ID to create the folder name. This can help avoid duplicity. As shown below, we use the Deal Name & ID to create our final folder name.

Document image


5 - Return Values

The Create Folder action returns the following values. These can be used in later actions to chain together actions and create complex automations.

  1. Action Status- This is a success or failure message based on whether the action executed correctly.
Document image



Need help? Book time with our team of experts.






Updated 05 Apr 2023
Did this page help you?
Yes
No
PREVIOUS
Workflow Actions
NEXT
Create Attachment Action
Docs powered by archbee 
TABLE OF CONTENTS
1 - Library
2 - Shared Drive ID / Drive
3 - Path to destination
4 - Folder name
5 - Return Values