Document Generation
...
HubSpot Data Access
Supported HubSpot Objects
6 min
introduction cloudfiles document generation connects directly with hubspot to fetch crm data into your microsoft office templates this enables you to generate accurate, dynamic documents using real time data from your hubspot account master object to generate a document, you start by selecting a master object this master object determines the context of the document and acts as the main source of data for all placeholders used in the template once selected, this object becomes the foundation for document generation and determines which fields can be inserted into the template which related records can be accessed how saved template is accessed and used during document generation standard objects cloudfiles currently supports the following hubspot objects as master objects contacts companies deals tickets leads orders projects quotes products invoices commerece payments line items and subscriptions custom objects cloudfiles supports any custom object created in your hubspot account these custom objects can be selected as the primary (master) object when building document templates once a primary record is selected, it automatically becomes available in the template as a global variable named $record the $record global variable represents the chosen hubspot resource and helps in inserting placeholders in the document example use cases deal name $record dealname amount $record amount effective date $record closedate $record amount accessing data from related records the document generation builder automatically retrieves all fields (both standard and custom) from the selected master object in addition to these, you may need data from other associated records or record collections to support these requirements, cloudfiles allows you to create resources cloudfiles supports the following resource types for fetching related records docid\ wieruf2u4uqbpslpyhvkx a record single variable represents a single record and holds all its field values it is ideal for working with a specific data entry, such as a contact, company or deal the record can either be related to the main template object or be an independent record fetched using filter criteria docid\ pet7dgxb3nirymhnjset1 a record collection variable represents a group or list of records from a hubspot object it stores multiple records that meet defined criteria and is typically used when you need to work with repeating data entries, such as a list items, orders or quotes within your document in the next article, we cover the list of supported hubspot field types that can be used in cloudfiles document generation need help enabling objects? if you need assistance enabling cloudfiles for specific hubspot objects or custom objectsβor if a record does not appear while designing templates, please reach out to π© support\@cloudfiles io
