Workflow Actions
Get Resource Property Action
7min
introduction the "get resource property" action in cloudfiles retrieves the external url and various metadata related to a file or folder stored in your cloud library this is useful when you need to add the url of a specific file or folder to a hubspot custom object to make sure this action works with your cloud storage, you need to understand what is an 'automation user' and how does it work? docid 9ibd0tgbyrtn kgjpxhtn input parameters the "get resource property" action takes in various parameters to specify the source & destination of the file library the location where the file or folder url needs to be extracted, such as sharepoint, google drive, or other storage platforms path to resource the exact path to the file/folder there may be more than one parameters required to specify this path based on library selection property to get the api name of property to be get \ list of property names name gives the name of the resource description gives the description of the resource id gives the id of the resource driveid gives the drive id of the resource library gives the library that the resource is in externalurl gives the cloud drive (sharepoint, google drive, etc ) url of the resource path gives the path of the resource in the cloud drive type gives the type of resource (file/folder) size gives the size of the resource createdat gives the date of creation of the resource (not present in dropbox updatedat gives the date when the resource was last updated extension gives the extension of the resource 4\ return values various values returned by this action after execution these parameters have been detailed in the section below 1 library choose the cloud storage platform from which you want to extract the file or folder url you can choose from cloudfiles, onedrive, sharepoint, box, or dropbox depending on your selection, additional parameters will appear in the action, which are explained in the sections below 2 path to resource this defines the source from which the file or folder url needs to be extracted you can specify the full path using a simple '/' separated string with the file name at the end the path to the folder can be copied from the metadata on the cloudfiles dashboard and then personalized using the record tokens follow the simple steps below 1\ find the cloudfiles widget from any hubspot record, and click on cloudfiles it will redirect you to app cloudfiles io https //app cloudfiles io/ 2\ under the libraries tab, navigate to the file or folder that you are trying to add 3\ copy the parameter from the meta data on the right side of the screen this meta data example is shown below 3 property to get in this parameter, specify “externalurl” to retrieve the url of the file or folder stored in google drive, sharepoint, or other storage platforms return values the move resource action returns the following values these can be used in later actions to chain together actions and create complex automation 1\ action status this is a success or failure message based on whether the action is executed correctly 2\ value (boolean) if the user prefers the output in a boolean format (yes/no), it will return the value accordingly 3\ value (date and time) if the user wants the output in date and time format, it will return the value accordingly 4\ value (date) if the user requests the output in a date format, it will be returned accordingly 5\ value (number) if the user requests the output as a number, it will be returned in that format 6\ value (string) if the user wants the output as a string in the form of an internal url, the function will return the value accordingly