Tutorials
Automated Folder Hierarchies for Managing External Files from HubSpot
13min
in this tutorial, we'll guide you on creating automated folders and sub folders in any external storage directly from any hubspot record using cloudfiles hubspot integration we will use cloudfiles flow actions to create these automated folders what to expect by the end of this tutorial, you can expect to have an automated parent folder for a hubspot record (like company) when it is created have desired numbers and hierarchy of sub folders within the parent folder automatically you will be able to attach these folders and sub folders to your record you will also be able to access these folders within your hubspot record within cloudfiles widget the gif below shows the expected output if you have a basic grasp of these concepts, you can expect to finish the tutorial in under 10 minutes 1 pre requisites before you start with the set up, please ensure you have installed cloudfiles and connected it to your cloud storage of choice install cloudfiles in hubspot cloudfiles is available on the app marketplace and can be installed using the standard app installation process check out installation guide for cloudfiles hubspot integration connect your storage login to your external storage of choice such as google drive, sharepoint etc through the cloudfiles interface this will give you instant access to your external files within hubspot the gif below shows the steps quickly check out quick start for file connector in hubspot for more information connect automation user for storage in addition to installing cloudfiles in hubspot, you also need to set an automation user for the workflow to work this is the integration user that will be used by the workflow actions to pass files into the cloud storage to connect an automation user, simply head over to app cloudfiles io http //app cloudfiles io/ > settings > integrations > google drive and login through your google account what is an 'automation user' and how does it work? https //help cloudfiles io/webapp/what is an automation user and how does it work this article explains everything you need to know about the automation user, including what it is, why it's useful, and how it operates after connecting the desired storage, we will proceed to create company based workflow which will be triggered when a new company is registered hereโs how our final workflow looks like we will detail these elements in the sections below 2 create company based workflow create a new company based workflow from scratch and select the trigger to fire when a new company is created as shown in the gif below 3 create parent folder using โcreate folderโ action create folder action can be used to create folders in any location on any cloud storage platform from hubspot flow action we will use this action to first create the parent folder in which sub folders will be created automatically to use the โcreate folderโ action, simply click on add button and search for โcreate folderโ as shown below once you add this action, it will ask you to fill in certain parameters this action requires a few parameters the library parameter is the desired cloud storage where you wish to create the folder select the desired storage from the drop down field the folder name is the name you wish to give your created folder we have simply used the companyโs name but you can also create a complex text formula variable as well the gif below shows how to populate the library & folder name parameter we also need to enter values for shared drive id & path to destination these are shared drive id this is important for google drive & sharepoint users only these cloud storages offer multiple 'drives' where documents can be uploaded path to destination this specifies the destination folder in which this new folder will be created these parameters can be easily copied from cloudfiles app library follow these steps 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 folder where you would like to store your files or simply create new folder copy the parameter from the meta data on the right side of the screen check the gif below for a quick walkthrough of these steps for a detailed description of the create folder action, refer to the create folder detailed guide hereโs how our final create folder action looks like 4 create sub folders using โcreate folderโ action to create sub folders, we can simply use the same โcreate folderโ action that we used above with a couple of simple tweaks change the โ folder name โ to reflect the sub folder you want to create we are creating โproposalsโ and โcontractsโ sub folder inside our company folder change the โ path to destination โ to exact and full path to parent folder name that we created in the previous action this way, this new folder will get created inside the accountโs folder we created previously hereโs how your second create folder action should look like you can choose to have as many sub folders as you want simply duplicate the create folder action you can also create sub sub folders and even deeper hierarchies using this method 4 show parent folder on company record using โcreate attachmentโ action the create attachment https //help cloudfiles io/hubspot/create attachment action action is used to associate created folder to hubspot records attaching (or associating) our newly created company folder is important since this will enable us to see and operate on the folder contents right from the hubspot record to use this action, simply click on add button and search for โcreate attachmentโ as shown below once you add this action, it will ask you to fill in certain parameters โshared drive idโ and โlibraryโ parameters will be same as above the โ path to folderโ will be the exact and full path of the newly created parent folder you can simply copy from the meta data info in the cloudfiles library using the same steps as specified in the shared drive id section above hereโs how our final create attachment action looks like 5 test the automated folders in action now that everything is setup, lets test our flow simply create a new company in hubspot the workflow may take a few seconds to execute so refresh the page, if required navigate to cloudfiles widget on the right, you will be able to see the company folder once you browse the company folder, you will be able to see the sub folders this is shown in the gif below