Create Folder Action
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.
To make sure this action works with your Cloud Storage, you need to understand What is an 'Automation User' and how does it work?ο»Ώο»Ώ
The Create folder action will require the following parameters:
- LibraryΒ - The desired library where the folder must go (e.g. SharePoint, Google Drive etc...)
- Destination parameters- Β Various parameters that specify where the folder will be created. These parameters can change after you select the library
- Folder name- Final name of the folder that would be created through this action
ο»Ώ
In the sections below, we detail out each of the parameters that you can see in this action.
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.
ο»Ώ
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 -
- Find the CloudFiles widget from any HubSpot record, and click on CloudFiles. It will redirect you to your CloudFiles storage.
- Under the libraries tab, navigate to the file or folder that you are trying to attach.
- Copy the parameter from the meta data on the right side of the screen.
Parameters preview is shown in the image below -
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.
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.
The Create Folder action returns the following values. These can be used in later actions to chain together actions and create complex automations.
- Action Status- This is a success or failure message based on whether the action executed correctly.
ο»Ώ