Magnitude Gateway HubSpotAdapter
Reference Guide
Magnitude Software, Inc.
Version 1.6.13March 27, 2020
Copyright © 2020 Magnitude Software, Inc. All Rights Reserved.
Information in this document is subject to change without notice. Companies, namesand data used in examples herein are fictitious unless otherwise noted. No part of thispublication, or the software it describes, may be reproduced, transmitted, transcribed,stored in a retrieval system, decompiled, disassembled, reverse-engineered, ortranslated into any language in any form by any means for any purpose without theexpress written permission of Magnitude Software, Inc.
Trademarks
Magnitude, the Magnitude logo, and Magnitude Software, Inc. are registeredtrademarks of Magnitude Software, Inc. in Canada, United States and/or othercountries. All other trademarks and/or servicemarks are the property of their respectiveowners.
Contact Us
www.magnitude.com
www.simba.com 2
Reference Guide
Magnitude Gateway HubSpot Adapter ReferenceGuide
PurposeThe Magnitude Gateway HubSpot Adapter Reference Guide describes the schematables and stored procedures available for the Magnitude Gateway HubSpot Adapter.
AudienceThe guide is intended for end users of the Magnitude Gateway HubSpot Adapter whohave already set up the adapter and configured a connection.
Knowledge PrerequisitesFor detailed information about installing, configuring, and using the MagnitudeGateway HubSpot Adapter, see the following documentation:
l The installation documentation for the appropriate edition ofMagnitude Gatewayl Magnitude Gateway User Guidel Magnitude Gateway HubSpot Adapter User Guide
Document ConventionsItalics are used when referring to book and document titles.
Bold is used in procedures for graphical user interface elements that a user clicks andtext that a user types.
Monospace font indicates commands, source code, or contents of text files.
Note:
A text box with a pencil icon indicates a short note appended to a paragraph.
Important:
A text box with an exclamation mark indicates an important comment related to thepreceding paragraph.
www.simba.com 3
Reference Guide Magnitude Gateway HubSpot AdapterReference Guide
Table of Contents
MagnitudeGatewayHubSpot Adapter ReferenceGuide 3
HubSpot Stored Procedures 11AddContactToCompany() 12AddContactToList() 13AddContactToListContent() 14ArchiveFile() 15AssociateDealWithContactOrCompany() 16AssociateEngagement() 17CloneBlogPost() 18ClonePage() 19CreateBlogPost() 20CreateBlogPostContent() 21CreateBroadcastMessage() 22CreateBroadcastMessageContent() 23CreateCalendarTasks() 24CreateCalendarTasksContent() 25CreateCompany() 26CreateCompanyContent() 27CreateCompanyProperty() 28CreateCompanyPropertyContent() 29CreateCompanyPropertyGroup() 30CreateCompanyPropertyGroupContent() 31CreateContact() 32CreateContactContent() 33CreateContactList() 34CreateContactListContent() 35CreateContactProperty() 36CreateContactPropertyContent() 37CreateContactPropertyGroup() 38CreateContactPropertyGroupContent() 39CreateDeal() 40CreateDealContent() 41CreateDealProperty() 42CreateDealPropertyContent() 43CreateDealPropertyGroup() 44
www.simba.com 4
Reference Guide Magnitude Gateway HubSpot AdapterReference Guide
CreateDealPropertyGroupContent() 45CreateEngagement() 46CreateEngagementContent() 47CreateForm() 48CreateFormContent() 49CreateOwner() 50CreateOwnerContent() 51CreatePage() 52CreatePageContent() 53CreateWorkflow() 54CreateWorkflowContent() 55DeleteEngagement() 56EnrollContactIntoWorkflow() 57GetACompany() 58GetAContact() 59GetADeal() 60GetAnEngagement() 61GetPreviousVersionOfASiteMap() 63GetSiteMapById() 65ListSiteMapPreviousVersions() 66ListAllSiteMaps() 67LogEvents() 68MergeBlogTopics() 69MergeContacts() 70MoveFileToNewFolder() 71PublishOrScheduleOrUnpublishBlogPost() 72PublishOrScheduleOrUnpublishPage() 73RemoveContactFromCompany() 74RemoveContactFromList() 75RemoveContactFromListContent() 76RemoveDealAssociationWithContactOrCompany() 77RestoreBlogPostRevision() 78RestoreDeletedBlogPost() 79RestoreDeletedComment() 80RestoreDeletedPage() 81RestoreDeletedTemplate() 82RestorePageRevision() 83RestoreTemplateRevision() 84
www.simba.com 5
Reference Guide Magnitude Gateway HubSpot AdapterReference Guide
SearchBlogAuthors() 85SearchBlogTopics() 86SearchContacts() 88SubmitFormData() 89UnenrollContactFromWorkflow() 90UpdateBlogPost() 91UpdateBlogPostContent() 92UpdateCalendarTasks() 93UpdateCalendarTasksContent() 94UpdateCompany() 95UpdateCompanyContent() 96UpdateCompanyProperty() 97UpdateCompanyPropertyContent() 98UpdateCompanyPropertyGroup() 99UpdateCompanyPropertyGroupContent() 100UpdateContact() 101UpdateContactContent() 102UpdateContactList() 103UpdateContactListContent() 104UpdateContactProperty() 105UpdateContactPropertyContent() 106UpdateContactPropertyGroup() 107UpdateContactPropertyGroupContent() 108UpdateDeal() 109UpdateDealContent() 110UpdateDealProperty() 111UpdateDealPropertyContent() 112UpdateEngagement() 113UpdateEngagementContent() 114UpdateForm() 115UpdateFormContent() 116UpdateOwner() 117UpdateOwnerContent() 118UpdatePage() 119UpdatePageContent() 120
HubSpot Schema Tables 121All_Deals 122
www.simba.com 6
Reference Guide Magnitude Gateway HubSpot AdapterReference Guide
Blog_Authors 123Blog_Comments 125Blog_Post_Versions 127Blog_Post_Versions_Attached_Stylesheets 134Blog_Post_Versions_Keywords 135Blog_Post_Versions_Personas 136Blog_Post_Versions_Placement_Guids 137Blog_Post_Versions_Topic_Ids 138Blog_Posts 139Blog_Posts_Attached_Stylesheets 145Blog_Posts_Keywords 146Blog_Posts_Personas 147Blog_Posts_Placement_Guids 148Blog_Posts_Topic_Ids 149Blog_Topics 150Blog_Versions 151Blog_Versions_Attached_Stylesheets 157Blog_Versions_Comment_Notification_Emails 158Blog_Versions_Html_Keywords 159Blogs 160Blogs_Attached_Stylesheets 165Blogs_Comment_Notification_Emails 166Blogs_Html_Keywords 167Broadcast_Messages 168Broadcast_Messages_Interactions 171Calendar_Events 172Calendar_Tasks 174Calendar_Tasks_Topic_Ids 176Channels 177Companies 180Companies_Additional_Domains 181Companies_Properties_Values 182Company_Properties 183Company_Properties_Options 185Company_Property_Groups 186Contact_Form_Submissions_Metadata 187Contact_Lists 188Contact_Lists_Filters 190
www.simba.com 7
Reference Guide Magnitude Gateway HubSpot AdapterReference Guide
Contact_Merge_Audits_Merged_From_Email_Source_Vids 191Contact_Properties 192Contact_Properties_Options 194Contact_Properties_Values 195Contact_Property_Groups 196Contacts 197Contacts_Form_Submissions 199Contacts_Identity_Profiles 200Contacts_Identity_Profiles_Identities 201Contacts_List_Memberships 202Contacts_Merge_Audits 203Contacts_Merged_Vids 205Current_Enrollments 206Current_Enrollments_Goal_List_Excluded_List_Ids 209Current_Enrollments_Reenrollment_TriggerSet 210Current_Enrollments_Steps 211Current_Enrollments_Steps_Increment_Company_Property_Actions 214Current_Enrollments_Steps_Notification_Actions 216Current_Enrollments_Steps_Set_Company_Property_Actions 218Current_Enrollments_Steps_Sms_Notification_Actions 220Current_Enrollments_Steps_Task_Actions 222Current_Enrollments_Steps_Workflow_Enrollment_Actions 224Current_Enrollments_Suppression_Setting_Excluded_List_Ids 226Current_Enrollments_Trigger_Set 227Current_Enrollments_Triggers 228Current_Enrollments_Unenrollment_Setting_Excluded_Workflows 229Deal_Associations_Associated_Company_Ids 230Deal_Associations_Associated_Deal_Ids 231Deal_Associations_Associated_Vids 232Deal_Imports 233Deal_Pipelines 234Deal_Pipelines_Stages 235Deal_Properties 236Deal_Properties_Options 238Deal_Properties_Values 239Deal_Property_Groups 240Deals 241Deals_Associations_Associated_Company_Ids 243
www.simba.com 8
Reference Guide Magnitude Gateway HubSpot AdapterReference Guide
Deals_Associations_Associated_Deal_Ids 244Deals_Associations_Associated_Vids 245Deals_Imports 246Domains 247File_Metadata 249Folder_Metadata 252Form_Field_Groups 253Form_Field_Groups_Fields 254Form_Field_Groups_Fields_Dependent_Field_Filters 256Form_Field_Groups_Fields_Options 257Form_Field_Groups_Fields_Selected_Options 259Form_Field_Groups_Fields_Validation_Blocked_Email_Addresses 260Forms 261Forms_Metadata 263Forms_Social_Login_Types 264Keywords 265Keywords_Campaigns 266Layout_Versions 267Layout_Versions_Attached_Stylesheets 269Layouts 270Layouts_Attached_Stylesheets 272Owners 273Owners_Remote_List 274Page_Attached_Stylesheets 275Page_Keywords 276Page_Publishing_Personas 277Page_Versions 278Page_Versions_Attached_Stylesheets 285Page_Versions_Keywords 286Page_Versions_Personas 287Pages 288Template_Versions 294Template_Versions_Attached_Stylesheets 298Templates 299Templates_Attached_Stylesheets 302Url_Mappings 303Workflows 305Workflows_Actions 308
www.simba.com 9
Reference Guide Magnitude Gateway HubSpot AdapterReference Guide
Workflows_Goal_Criteria 309Workflows_Goal_List_Ids 310Workflows_Metadata_Triggered_By_Workflow_Ids 311Workflows_Reenrollment_Trigger_Sets 312Workflows_Segment_Criteria 313Workflows_Suppression_List_Ids 314Workflows_Trigger_Sets 315Workflows_Unenrollment_Setting_Excluded_Workflows 316
Third-Party Trademarks 317
www.simba.com 10
Reference Guide Magnitude Gateway HubSpot AdapterReference Guide
HubSpot Stored Procedures
The Magnitude Gateway HubSpot Adapter provides stored procedures that you canuse to create, view, modify, and delete objects from a HubSpot data source.
Important:
The adapter currently does not support stored procedures for JDBC connections.These stored procedures cannot be used when you connect to HubSpot through aJDBC application.
The stored procedures are listed alphabetically by name. For each stored procedure,the following information is provided:
l The name of the stored procedure.l A brief description of the stored procedure.l The name, SQL type, and description of each parameter used by the storedprocedure.
l If the stored procedure requires a JSON input as one of the parameters, thestructure of the JSON.
l A description of the data that is returned by the stored procedure, if any.
www.simba.com 11
Reference Guide HubSpot Stored Procedures
AddContactToCompany()
Associate a contact with a company. If the contact is already associated with a differentcompany, the contact is added to the new company and removed from the oldcompany, as a contact can only be associated with one company at a time.
Parameters
Company_Id
SQL_VARCHAR(50)
The company that the contact is currently associated with, if any.
Contact_Id
SQL_VARCHAR(50)
The ID of the contact to be assigned to the company.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 12
Reference Guide HubSpot Stored Procedures
AddContactToList()
Add a contact to a contact list, using the details that are stored in the specified JSONfile.
Note:
This procedure cannot update a dynamic contact list.
Parameters
List_Id
SQL_VARCHAR(50)
The ID of the list to which the contact is added.
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the contact. For a description of thestructure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/lists/add_contact_to_list.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 13
Reference Guide HubSpot Stored Procedures
AddContactToListContent()
Add a contact to a contact list, based on the details contained in the specified JSONstring.
Note:
This procedure cannot update a dynamic contact list.
Parameters
List_Id
SQL_VARCHAR(50)
The ID of the list to which the contact is added.
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the contact. For a description of the structure of theJSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/lists/add_contact_to_list.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 14
Reference Guide HubSpot Stored Procedures
ArchiveFile()
Archives an existing file, removing it from the HubSpot user interface.
Parameters
File_Id
SQL_VARCHAR(50)
The ID of the file to be archived.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 15
Reference Guide HubSpot Stored Procedures
AssociateDealWithContactOrCompany()
Creates an association between an existing deal and contacts or companies. Thisstored procedure supports simultaneously associating a deal with more than onecontact or company, but only of a single type. To associate a deal with both contactsand companies, you must call this stored procedure twice.
Parameters
Deal_Id
SQL_VARCHAR(50)
The ID of the deal to be associated with contacts or companies.
Object_Type
SQL_VARCHAR(50)
The type of object that the deal is to be associated with, either CONTACT orCOMPANY.
Contact_Or_Company_Ids
SQL_VARCHAR(50)
A list of contact or company IDs that the deal is to be associated with, dependingon what was passed in as the Object_Type. Multiple IDs must be separated bya comma ,, for example, 394455,123456,789012.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 16
Reference Guide HubSpot Stored Procedures
AssociateEngagement()
Creates an association between an existing HubSpot engagement (a task or activity)and a single contact, company, or deal.
Parameters
Engagement_Id
SQL_VARCHAR(50)
The ID of the engagement to be associated with a contact, company, or deal. Formore information, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/engagements/get_engagement.
Object_Type
SQL_VARCHAR(50)
The type of object that the engagement is to be associated with, either CONTACT,COMPANY, or DEAL.
Object_Id
SQL_VARCHAR(50)
The ID of the object that the engagement is to be associated with, depending onwhat was passed in as the Object_Type.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 17
Reference Guide HubSpot Stored Procedures
CloneBlogPost()
Clone an existing blog post.
Parameters
Blog_Post_Id
SQL_VARCHAR(50)
The ID of the blog post to be cloned.
New_Page_Name
SQL_VARCHAR(50)
The name of the new blog post.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 18
Reference Guide HubSpot Stored Procedures
ClonePage()
Make a copy of an existing page in the Pages table.
Parameters
Page_Id
SQL_VARCHAR(50)
The ID of the page to be cloned.
New_Name
SQL_VARCHAR(255)
The new name of the newly created page.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 19
Reference Guide HubSpot Stored Procedures
CreateBlogPost()
Create a new blog post, using the details that are stored in the specified JSON file.
Parameters
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the blog post. For a description of thestructure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/blogv2/post_blog_posts.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 20
Reference Guide HubSpot Stored Procedures
CreateBlogPostContent()
Create a new blog post, based on the details contained in the specified JSON string.
Parameters
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the blog post. For a description of the structure ofthe JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/blogv2/post_blog_posts.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 21
Reference Guide HubSpot Stored Procedures
CreateBroadcastMessage()
Create a new broadcast message, such as a tweet or Facebook post, using the detailsthat are stored in the specified JSON file.
Parameters
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the broadcast message. For adescription of the structure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/social_media/create_broadcast.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 22
Reference Guide HubSpot Stored Procedures
CreateBroadcastMessageContent()
Create a new broadcast message, such as a tweet or Facebook post, based on thedetails contained in the specified JSON string.
Parameters
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the broadcast message. For a description of thestructure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/social_media/create_broadcast.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 23
Reference Guide HubSpot Stored Procedures
CreateCalendarTasks()
Create a new Task, using the details that are stored in the specified JSON file.
Creating a Task of category BLOG_POST, EMAIL, or LANDING_PAGE creates a draftof the respective content and associates it with the Task (see the 'Content_Id' column).
Parameters
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the Task. For a description of thestructure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/calendar/create-task.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 24
Reference Guide HubSpot Stored Procedures
CreateCalendarTasksContent()
Create a new Task, based on the details contained in the specified JSON string.
Creating a Task of category BLOG_POST, EMAIL, or LANDING_PAGE creates a draftof the respective content and associates it with the Task (see the 'Content_Id' column).
Parameters
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the Task. For a description of the structure of theJSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/calendar/create-task.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 25
Reference Guide HubSpot Stored Procedures
CreateCompany()
Create a new company for a given portal, using the details that are stored in thespecified JSON file.
Parameters
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the company. For a description of thestructure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/companies/create_company.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 26
Reference Guide HubSpot Stored Procedures
CreateCompanyContent()
Create a new company for a given portal, based on the details contained in thespecified JSON string.
Parameters
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the company. For a description of the structure ofthe JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/companies/create_company.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 27
Reference Guide HubSpot Stored Procedures
CreateCompanyProperty()
Create a new property on every company object to store a specific piece of data, usingthe details that are stored in the specified JSON file.
Parameters
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the new property. For a description ofthe structure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/companies/create_company_property.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 28
Reference Guide HubSpot Stored Procedures
CreateCompanyPropertyContent()
Create a new property on every company object to store a specific piece of data, basedon the details contained in the specified JSON string.
Parameters
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the property. For a description of the structure of theJSON string, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/companies/create_company_property.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 29
Reference Guide HubSpot Stored Procedures
CreateCompanyPropertyGroup()
Create a new group of company properties, using the details that are stored in thespecified JSON file.
Parameters
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the company property group. For adescription of the structure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/companies/create_company_property_group.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 30
Reference Guide HubSpot Stored Procedures
CreateCompanyPropertyGroupContent()
Create a new group of company properties, based on the details contained in thespecified JSON string.
Parameters
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the company property group. For a description ofthe structure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/companies/create_company_property_group.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 31
Reference Guide HubSpot Stored Procedures
CreateContact()
Create a new HubSpot contact, using the details that are stored in the specified JSONfile.
Parameters
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the contact. For a description of thestructure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/contacts/create_contact.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 32
Reference Guide HubSpot Stored Procedures
CreateContactContent()
Create a new HubSpot contact, based on the details contained in the specified JSONstring.
Parameters
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the contact. For a description of the structure of theJSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/contacts/create_contact.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 33
Reference Guide HubSpot Stored Procedures
CreateContactList()
Create a new list of contacts, using the details that are stored in the specified JSONfile.
Parameters
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the contact list. For a description of thestructure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/lists/create_list.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 34
Reference Guide HubSpot Stored Procedures
CreateContactListContent()
Create a new list of contacts, based on the details contained in the specified JSONstring.
Parameters
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the contact list. For a description of the structure ofthe JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/lists/create_list.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 35
Reference Guide HubSpot Stored Procedures
CreateContactProperty()
Create a new property on every contact object to store a specific piece of data, usingthe details that are stored in the specified JSON file.
Parameters
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the new property. For a description ofthe structure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/contacts/v2/create_contacts_property.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 36
Reference Guide HubSpot Stored Procedures
CreateContactPropertyContent()
Create a new property on every contact object to store a specific piece of data, basedon the details contained in the specified JSON string.
Parameters
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the property. For a description of the structure of theJSON string, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/contacts/v2/create_contacts_property.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 37
Reference Guide HubSpot Stored Procedures
CreateContactPropertyGroup()
Create a new group of contact properties, using the details that are stored in thespecified JSON file.
Parameters
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the contact property group. For adescription of the structure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/contacts/v2/create_contacts_property_group.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 38
Reference Guide HubSpot Stored Procedures
CreateContactPropertyGroupContent()
Create a new group of contact properties, based on the details contained in thespecified JSON string.
Parameters
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the contact property group. For a description of thestructure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/contacts/v2/create_contacts_property_group.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 39
Reference Guide HubSpot Stored Procedures
CreateDeal()
Create a new deal object, using the details that are stored in the specified JSON file.
Parameters
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the deal object. For a description of thestructure of the JSON string, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/deals/create_deal.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 40
Reference Guide HubSpot Stored Procedures
CreateDealContent()
Create a new deal object, based on the details contained in the specified JSON string.
Parameters
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the deal object. For a description of the structure ofthe JSON string, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/deals/create_deal.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 41
Reference Guide HubSpot Stored Procedures
CreateDealProperty()
Create a new deal property, using the details that are stored in the specified JSON file.
Parameters
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the deal property. For a description ofthe structure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/deals/create_deal_property.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 42
Reference Guide HubSpot Stored Procedures
CreateDealPropertyContent()
Create a new deal property, based on the details contained in the specified JSONstring.
Parameters
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the deal property. For a description of the structureof the JSON string, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/deals/create_deal_property.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 43
Reference Guide HubSpot Stored Procedures
CreateDealPropertyGroup()
Create a new deal property group, using the details that are stored in the specifiedJSON file.
Parameters
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the deal property group. For adescription of the structure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/deals/create_deal_property_group.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 44
Reference Guide HubSpot Stored Procedures
CreateDealPropertyGroupContent()
Create a new deal property group, based on the details contained in the specifiedJSON string.
Parameters
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the deal property group. For a description of thestructure of the JSON string, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/deals/create_deal_property_group.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 45
Reference Guide HubSpot Stored Procedures
CreateEngagement()
Create a new HubSpot engagement (a task or activity), using the details that are storedin the specified JSON file.
Parameters
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the engagement. For a description ofthe structure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/engagements/create_engagement.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 46
Reference Guide HubSpot Stored Procedures
CreateEngagementContent()
Create a new HubSpot engagement (a task or activity), based on the details containedin the specified JSON string.
Parameters
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the engagement. For a description of the structureof the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/engagements/create_engagement.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 47
Reference Guide HubSpot Stored Procedures
CreateForm()
Create a new form, using the details that are stored in the specified JSON file.
Parameters
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the form. For a description of thestructure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/forms/v2/create_form.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 48
Reference Guide HubSpot Stored Procedures
CreateFormContent()
Create a new form, based on the details contained in the specified JSON string.
Parameters
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the form. For a description of the structure of theJSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/forms/v2/create_form.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 49
Reference Guide HubSpot Stored Procedures
CreateOwner()
Create a new owner, using the details that are stored in the specified JSON file.
Parameters
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the owner. For a description of thestructure of the JSON string, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/owners/create_owner.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 50
Reference Guide HubSpot Stored Procedures
CreateOwnerContent()
Create a new owner, based on the details contained in the specified JSON string.
Parameters
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the owner. For a description of the structure of theJSON string, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/owners/create_owner.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 51
Reference Guide HubSpot Stored Procedures
CreatePage()
Create a new page in the Pages table, using the details that are stored in the specifiedJSON file.
Parameters
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the page. For a description of thestructure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/pages/post_pages.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 52
Reference Guide HubSpot Stored Procedures
CreatePageContent()
Create a new page in the Pages table, based on the details contained in the specifiedJSON string.
Parameters
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the page. For a description of the structure of theJSON string, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/pages/post_pages.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 53
Reference Guide HubSpot Stored Procedures
CreateWorkflow()
Create a new workflow, using the details that are stored in the specified JSON file.
Parameters
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the workflow. For a description of thestructure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/workflows/v3/create_workflow.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 54
Reference Guide HubSpot Stored Procedures
CreateWorkflowContent()
Create a new workflow, based on the details contained in the specified JSON string.
Parameters
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the workflow. For a description of the structure ofthe JSON string, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/workflows/v3/create_workflow.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 55
Reference Guide HubSpot Stored Procedures
DeleteEngagement()
Delete an existing HubSpot engagement (a task or activity).
Parameters
Engagement_Id
SQL_VARCHAR(50)
The ID of the engagement to be deleted. For more information, see the HubSpotdocumentation at http://developers.hubspot.com/docs/methods/engagements/get_engagement.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 56
Reference Guide HubSpot Stored Procedures
EnrollContactIntoWorkflow()
Add a contact to a workflow.
Parameters
Workflow_Id
SQL_VARCHAR(50)
The ID of the workflow into which the contact is enrolled.
SQL_VARCHAR(255)
The email of the contact to be enrolled into a workflow.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 57
Reference Guide HubSpot Stored Procedures
GetACompany()
Retrieve the details of a company.
Parameters
Company_Id
SQL_VARCHAR(50)
The ID of the company to retrieve.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following columns:
Company_Id
SQL_VARCHAR(50)
The ID of the company.
Portal_Id
SQL_VARCHAR(50)
The ID of the HubSpot portal that the company was created on.
Is_Deleted
SQL_BIT
1 if the company is currently being deleted, 0 if it is not.
Properties
SQL_LONGVARCHAR(2000000000)
The properties of the company.
www.simba.com 58
Reference Guide HubSpot Stored Procedures
GetAContact()
Retrieve the details of a contact.
Parameters
Vid
SQL_VARCHAR(50)
The ID of the contact to retrieve.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Contact_Data
SQL_LONGVARCHAR(2000000000)
A JSON string that contains the contact.
www.simba.com 59
Reference Guide HubSpot Stored Procedures
GetADeal()
Retrieve the details of a deal.
Parameters
Deal_Id
SQL_VARCHAR(50)
The ID of the deal to retrieve.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following columns:
Deal_Id
SQL_VARCHAR(50)
The ID of the deal.
Portal_Id
SQL_VARCHAR(50)
The ID of the HubSpot portal that the deal was created on.
Is_Deleted
SQL_BIT
1 if the deal is currently being deleted, 0 if it is not.
Properties
SQL_LONGVARCHAR(2000000000)
The properties of the deal.
Associations
SQL_LONGVARCHAR(2000000000)
The associations of the deal.
www.simba.com 60
Reference Guide HubSpot Stored Procedures
GetAnEngagement()
Retrieve the details of an engagement (a task or activity) on an object in HubSpot.
Parameters
Engagement_Id
SQL_VARCHAR(50)
The ID of the engagement to retrieve. For more information, see the HubSpotdocumentation at http://developers.hubspot.com/docs/methods/engagements/get_engagement.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following columns:
Id
SQL_VARCHAR(50)
The ID of the engagement.
Portal_Id
SQL_VARCHAR(50)
The ID of the HubSpot portal that the engagement was created on.
Active
SQL_BIT
1 if the engagement is currently active, 0 if it is not.
Created_At
SQL_TIMESTAMP
The creation time of the engagement, in UNIX timestamp format.
Last_Updated
SQL_TIMESTAMP
The last update time of the engagement, in UNIX timestamp format.
www.simba.com 61
Reference Guide HubSpot Stored Procedures
Owner_Id
SQL_VARCHAR(25)
The ID of the owner who created the engagement.
Type
SQL_VARCHAR(5)
The type of the engagement, either EMAIL, CALL, MEETING, TASK, or NOTE.
Timestamp
SQL_TIMESTAMP
A timestamp that is used for logical ordering, in Unix timestamp format.
Associations_Contact_Ids
SQL_LONGVARCHAR(2000000000)
The contacts that the engagement is associated with.
Associations_Company_Ids
SQL_LONGVARCHAR(2000000000)
The companies that the engagement is associated with.
Associations_Deal_Ids
SQL_LONGVARCHAR(2000000000)
The deals that the engagement is associated with.
Associations_Owner_Ids
SQL_LONGVARCHAR(2000000000)
The owners that the engagement is associated with.
Metadata_Body
SQL_LONGVARCHAR(2000000000)
Additional metadata that is associated with the engagement.
www.simba.com 62
Reference Guide HubSpot Stored Procedures
GetPreviousVersionOfASiteMap()
Retrieve information about a previous version of a specified site map.
Parameters
Id
SQL_VARCHAR(50)
The ID of the site map to return version information about.
Version_Id
SQL_VARCHAR(50)
The ID of the version of the site map to return information about.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a table representing the previous version of the sitemap with the specified ID. The table contains all columns of the table returned byGetSiteMapById(), as well as the following columns:
Version_Id
SQL_VARCHAR(255)
The version ID of the site map revision represented by this row in the table.
Updated_At
SQL_VARCHAR(50)
The time in UNIX timestamp format that the update occurred to create the revision.
User_Email
SQL_VARCHAR(50)
The email address of the user that was responsible for the revision.
User_Full_Name
SQL_VARCHAR(50)
The full name of the user that was responsible for the revision.
www.simba.com 63
Reference Guide HubSpot Stored Procedures
User_Id
SQL_VARCHAR(50)
The ID of the user that was responsible for the revision.
www.simba.com 64
Reference Guide HubSpot Stored Procedures
GetSiteMapById()
Retrieve a specified site map.
Parameters
Id
SQL_VARCHAR(50)
The ID of the site map to retrieve.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a table with a single row containing information aboutthe site map with the specified ID. The table contains all columns of the table returnedby ListSiteMaps(), as well as the following columns:
Has_User_Changes
SQL_BIT
1 if the site map has been changed by a user, 0 if it has not.
Site_Id
SQL_VARCHAR(50)
The ID of the site that is represented by the site map.
www.simba.com 65
Reference Guide HubSpot Stored Procedures
ListSiteMapPreviousVersions()
List all previous versions of a specified site map.
Parameters
Id
SQL_VARCHAR(50)
The ID of the site map.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a table representing the previous versions of the sitemap with the specified ID. The table contains all columns of the table returned byGetSiteMapById(), as well as the following columns:
Version_Id
SQL_VARCHAR(255)
The version ID of the site map revision represented by this row in the table.
Updated_At
SQL_VARCHAR(50)
The time in UNIX timestamp format that the update occurred to create a givenrevision.
User_Email
SQL_VARCHAR(50)
The email address of the user that was responsible for the revision.
User_Full_Name
SQL_VARCHAR(50)
The full name of the user that was responsible for the revision.
User_Id
SQL_VARCHAR(50)
The ID of the user that was responsible for the revision.
www.simba.com 66
Reference Guide HubSpot Stored Procedures
ListAllSiteMaps()
List all site maps that are associated with your HubSpot account.
Parameters
None
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a table with columns that contain data about all thesite maps that are associated with your HubSpot account, including:
Pages_Tree
FILE_CONTENT, SQL_LONGVARCHAR(2000000000)
A JSON string that describes the structure of the site associated with a given rowof the table.
www.simba.com 67
Reference Guide HubSpot Stored Procedures
LogEvents()
Retrieve a history of events for a contact in a specific workflow.
Parameters
Workflow_Id
SQL_VARCHAR(50)
The ID of the workflow to retrieve.
Limit_Date
SQL_BIGINT(unsigned)
The earliest date of an event that is returned, in Unix timestamp format. The defaultis 180 days before the current time.
Offset
SQL_BIGINT(unsigned)
The latest of an event that is returned, in Unix timestamp format. The default is thecurrent time.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Event_Data
SQL_LONGVARCHAR(2000000000)
A JSON string that contains the history of events for a contact in the specifiedworkflow.
www.simba.com 68
Reference Guide HubSpot Stored Procedures
MergeBlogTopics()
Merge multiple blog topics. A new blog topic is created, and the existing blog topicsare deleted.
Parameters
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the blog topics to be merged. For adescription of the structure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/blog/v3/group-blog-topics.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 69
Reference Guide HubSpot Stored Procedures
MergeContacts()
Merge two contacts. The information in the secondary contact is added to the primarycontact, and the secondary contact is deleted.
Parameters
Contact_Id
SQL_VARCHAR(256)
The ID of the primary contact to be merged. This is the contact that remains afterthe merger.
Vid_To_Merge
SQL_VARCHAR(256)
The ID of the secondary contact to be merged. This is the contact that is mergedinto the primary contact.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 70
Reference Guide HubSpot Stored Procedures
MoveFileToNewFolder()
Moves a file to a new folder.
Parameters
File_Id
SQL_VARCHAR(50)
The ID of the file to be moved.
Key
SQL_VARCHAR(50)
Either folder_path or folder_id depending on whether the Value isspecified as a path or a folder ID.
Value
SQL_VARCHAR(255)
The path or ID of the folder to which the file is to be moved. Must match Keyabove.
New_Name
SQL_VARCHAR(255)
Optional. The new name of the file.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 71
Reference Guide HubSpot Stored Procedures
PublishOrScheduleOrUnpublishBlogPost()
Publish, schedule, or unpublish an existing blog post.
Parameters
Blog_Post_Id
SQL_VARCHAR(50)
The ID of the blog post to be published, scheduled, or unpublished.
Action
SQL_VARCHAR(50)
The action to perform on the blog post. For a list of actions, seehttp://developers.hubspot.com/docs/methods/blogv2/post_blog_posts_blog_post_id_publish_action.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 72
Reference Guide HubSpot Stored Procedures
PublishOrScheduleOrUnpublishPage()
Publish, schedule, or unpublish an existing page.
Parameters
Page_Id
SQL_VARCHAR(50)
The ID of the page to be published, scheduled, or unpublished.
Action
SQL_VARCHAR(50)
The action to perform on the page. For a list of actions, seehttp://developers.hubspot.com/docs/methods/pages/post_pages_page_id_publish_action.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 73
Reference Guide HubSpot Stored Procedures
RemoveContactFromCompany()
Remove a contact from a company. The contact is no longer associated with anycompany.
Parameters
Company_Id
SQL_VARCHAR(50)
The company that the contact is currently associated with, if any.
Contact_Id
SQL_VARCHAR(50)
The ID of the contact to be removed from the company.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 74
Reference Guide HubSpot Stored Procedures
RemoveContactFromList()
Remove a contact from a contact list, using the details that are stored in the specifiedJSON file.
Note:
This procedure cannot update a dynamic contact list.
Parameters
List_Id
SQL_VARCHAR(50)
The ID of the list from which the contact is removed.
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the contact. For a description of thestructure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/lists/remove_contact_from_list.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 75
Reference Guide HubSpot Stored Procedures
RemoveContactFromListContent()
Remove a contact from a contact list, based on the details contained in the specifiedJSON string.
Note:
This procedure cannot update a dynamic contact list.
Parameters
List_Id
SQL_VARCHAR(50)
The ID of the list from which the contact is removed.
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the contact. For a description of the structure of theJSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/lists/remove_contact_from_list.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 76
Reference Guide HubSpot Stored Procedures
RemoveDealAssociationWithContactOrCompany()
Removes existing associations between an existing deal and contacts or companies.This stored procedure supports simultaneously removing associations between a dealand more than one contact or company, but only of a single type. To removeassociations between a deal both contacts and companies, you must call this storedprocedure twice.
Parameters
Deal_Id
SQL_VARCHAR(50)
The ID of the deal to be no longer associated with contacts or companies.
Object_Type
SQL_VARCHAR(50)
The type of object that the deal is to be no longer associated with, either CONTACTor COMPANY.
Contact_Or_Company_Ids
SQL_VARCHAR(50)
A list of contact or company IDs that the deal is to be no longer associated with,depending on what was passed in as the Object_Type. Multiple IDs must beseparated by a comma ,, for example, 394455,123456,789012.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 77
Reference Guide HubSpot Stored Procedures
RestoreBlogPostRevision()
Restore an earlier version of a blog post.
Parameters
Blog_Post_Id
SQL_VARCHAR(50)
The ID of the blog post to be restored.
Version_Id
SQL_INTEGER(signed)
The ID of the version of the blog post to be restored.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 78
Reference Guide HubSpot Stored Procedures
RestoreDeletedBlogPost()
Restore a previously deleted blog post.
Parameters
Blog_Post_Id
SQL_VARCHAR(50)
The ID of the deleted blog post to be restored.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 79
Reference Guide HubSpot Stored Procedures
RestoreDeletedComment()
Restore a deleted blog comment.
Parameters
Comment_Id
SQL_VARCHAR(50)
The ID of the deleted comment to be restored.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 80
Reference Guide HubSpot Stored Procedures
RestoreDeletedPage()
Restore a previously deleted page.
Parameters
Page_Id
SQL_VARCHAR(50)
The ID of the deleted page to be restored.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 81
Reference Guide HubSpot Stored Procedures
RestoreDeletedTemplate()
Restore a previously deleted template.
Parameters
Template_Id
SQL_VARCHAR(50)
The ID of the deleted template to be restored.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 82
Reference Guide HubSpot Stored Procedures
RestorePageRevision()
Restore an earlier version of a page.
Parameters
Page_Id
SQL_VARCHAR(50)
The ID of the page to be restored.
Version_Id
SQL_INTEGER(signed)
The ID of the version of the page to be restored.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 83
Reference Guide HubSpot Stored Procedures
RestoreTemplateRevision()
Restore an earlier version of a template.
Parameters
Template_Id
SQL_VARCHAR(50)
The ID of the template to be restored.
Version_Id
SQL_INTEGER(signed)
The ID of the version of the template to be restored.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 84
Reference Guide HubSpot Stored Procedures
SearchBlogAuthors()
Search for blog authors whose Full_Name, Email, or Slug contain the providedSearch_Key.
Parameters
Search_Key
SQL_VARCHAR(2048)
The value to compare to the Full_Name, Slug, and Email columns of each entry inthe Blog_Authors table.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a table with one row for each blog author thatmatches the search. The columns are all of the columns in the Blog_Topics table, plusthe following columns:
Live_Posts
SQL_INTEGER
The number of published posts that are associated with this author.
Public_Url
SQL_VARCHAR(2000)
The URL associated with the author.
Status
SQL_VARCHAR(50)
The status of the author, either active or inactive.
Total_Posts
SQL_INTEGER
The total number of posts, including unpublished drafts, that are associated withthis author.
www.simba.com 85
Reference Guide HubSpot Stored Procedures
SearchBlogTopics()
Search for blog topics whose Name or Slug contain the provided Search_Term.
Parameters
Search_Key
SQL_VARCHAR(2048)
The value to compare to the Name and Slug columns of each entry in the Blog_Topics table.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a table with one row for each blog topic that matchesthe search. The columns are all of the columns in the Blog_Topics table, plus thefollowing columns:
Associated_Blog_Ids
SQL_LONGVARCHAR(2000000000)
A list of the blog IDs in which this topic has been used.
Last_Used
SQL_TIMESTAMP
The most recent publish date of a blog post associated with this topic, inmilliseconds since the epoch.
Live_Posts
SQL_INTEGER
The number of published posts that are associated with this topic.
Public_Url
SQL_VARCHAR(2000)
The URL of the blog.
Status
SQL_VARCHAR(50)
The status of the post, either active or inactive.
www.simba.com 86
Reference Guide HubSpot Stored Procedures
Total_Posts
SQL_INTEGER
The total number of posts, including unpublished drafts, that are associated withthis topic.
www.simba.com 87
Reference Guide HubSpot Stored Procedures
SearchContacts()
Find all contacts that match a given search term, such as email address or name. Thesearch returns all contacts that have a full or partial match. For example, searching for"hub" returns all contacts with "hubspot.com" email addresses.
Parameters
Search_Key
SQL_VARCHAR(2048)
The search term.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a table with one row for each contact that matchesthe search. The columns are a subset of the columns in the Contacts table.
www.simba.com 88
Reference Guide HubSpot Stored Procedures
SubmitFormData()
Send form submission data to HubSpot.
Parameters
Portal_Id
SQL_VARCHAR(50)
The ID of the HubSpot that the form belongs to.
Form_Guid
SQL_VARCHAR(50)
The ID of the form that is to be submitted.
Unencoded_Fields
SQL_LONGVARCHAR(2000000000)
A list of contact properties to be submitted in the form data, separated by &. Forexample,firstname=TestContact&lastname=FormSub&[email protected].
Encoded_Hs_Context_Object
SQL_LONGVARCHAR(2000000000)
A x-www-form-urlencoded-formatted block that contains contextual information forthe form submission. For details about the structire of the block, seehttp://developers.hubspot.com/docs/methods/forms/submit_form.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 89
Reference Guide HubSpot Stored Procedures
UnenrollContactFromWorkflow()
Remove a contact from a workflow.
Parameters
Workflow_Id
SQL_VARCHAR(50)
The ID of the workflow from which the contact is removed.
SQL_VARCHAR(50)
The email of the contact to be removed from a workflow.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 90
Reference Guide HubSpot Stored Procedures
UpdateBlogPost()
Update an existing blog post, using the details that are stored in the specified JSONfile. This procedure replaces any existing allowed fields that are specified in the JSONstring. Fields that are not included in the string are not modified from their existingvalues.
Parameters
Blog_Post_Id
SQL_VARCHAR(256)
The ID of the blog post to be updated.
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the blog post. For a description of thestructure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/blogv2/put_blog_posts_blog_post_id.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 91
Reference Guide HubSpot Stored Procedures
UpdateBlogPostContent()
Update an existing blog post, based on the details contained in the specified JSONstring. This procedure replaces any existing allowed fields that are specified in theJSON string. Fields that are not included in the string are not modified from theirexisting values.
Parameters
Blog_Post_Id
SQL_VARCHAR(256)
The ID of the blog post to be updated.
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the blog post. For a description of the structure ofthe JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/blogv2/put_blog_posts_blog_post_id.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 92
Reference Guide HubSpot Stored Procedures
UpdateCalendarTasks()
Update an existing Task, using the details that are stored in the specified JSON file.This procedure replaces any existing allowed fields that are specified in the JSONstring. Fields that are not included in the string are not modified from their existingvalues.
Parameters
Calendar_Task_Id
SQL_VARCHAR(256)
The ID of the Task to be updated.
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the Task. For a description of thestructure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/calendar/update-task.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 93
Reference Guide HubSpot Stored Procedures
UpdateCalendarTasksContent()
Update an existing Task, based on the details contained in the specified JSON string.This procedure replaces any existing allowed fields that are specified in the JSONstring. Fields that are not included in the string are not modified from their existingvalues.
Parameters
Calendar_Task_Id
SQL_VARCHAR(256)
The ID of the Task to be updated.
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the Task. For a description of the structure of theJSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/calendar/update-task.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 94
Reference Guide HubSpot Stored Procedures
UpdateCompany()
Update an existing company, using the details that are stored in the specified JSONfile. This procedure replaces any existing allowed fields that are specified in the JSONstring. Fields that are not included in the string are not modified from their existingvalues.
Parameters
Company_Id
SQL_VARCHAR(256)
The ID of the company to be updated.
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the company. For a description of thestructure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/companies/update_company.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 95
Reference Guide HubSpot Stored Procedures
UpdateCompanyContent()
Update a company, based on the details contained in the specified JSON string. Thisprocedure replaces any existing allowed fields that are specified in the JSON string.Fields that are not included in the string are not modified from their existing values.
Parameters
Company_Id
SQL_VARCHAR(256)
The ID of the company to be updated.
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the company. For a description of the structure ofthe JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/companies/update_company.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 96
Reference Guide HubSpot Stored Procedures
UpdateCompanyProperty()
Update an existing company property, using the details that are stored in the specifiedJSON file. This procedure updates the definition of the property across all companies,rather than updating the property value for a single company.
Parameters
Property_Name
SQL_VARCHAR(255)
The name of the property to be updated.
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the property. For a description of thestructure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/companies/update_company_property.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 97
Reference Guide HubSpot Stored Procedures
UpdateCompanyPropertyContent()
Update an existing company property, based on the details contained in the specifiedJSON string. This procedure updates the definition of the property across allcompanies, rather than updating the property value for a single company.
Parameters
Property_Name
SQL_VARCHAR(255)
The name of the property to be updated.
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the property. For a description of the structure of theJSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/companies/update_company_property.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 98
Reference Guide HubSpot Stored Procedures
UpdateCompanyPropertyGroup()
Update an existing group of company properties, using the details that are stored in thespecified JSON file.
Parameters
Group_Name
SQL_VARCHAR(255)
The name of the company property group to be updated.
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the company property group. For adescription of the structure of the JSON string, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/companies/update_company_property_group.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 99
Reference Guide HubSpot Stored Procedures
UpdateCompanyPropertyGroupContent()
Update an existing group of company properties, based on the details contained in thespecified JSON string.
Parameters
Group_Name
SQL_VARCHAR(255)
The name of the company property group to be updated.
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the company property group. For a description ofthe structure of the JSON string, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/companies/update_company_property_group.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 100
Reference Guide HubSpot Stored Procedures
UpdateContact()
Update an existing HubSpot contact, using the details that are stored in the specifiedJSON file. This procedure replaces any existing allowed fields that are specified in theJSON string. Fields that are not included in the string are not modified from theirexisting values.
Parameters
Contact_Id
SQL_VARCHAR(256)
The ID of the contact to be updated.
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the contact. For a description of thestructure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/contacts/update_contact.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 101
Reference Guide HubSpot Stored Procedures
UpdateContactContent()
Update an existing HubSpot contact, based on the details contained in the specifiedJSON string. This procedure replaces any existing allowed fields that are specified inthe JSON string. Fields that are not included in the string are not modified from theirexisting values.
Parameters
Contact_Id
SQL_VARCHAR(256)
The ID of the contact XX to be updated.
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the contact. For a description of the structure of theJSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/contacts/update_contact.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 102
Reference Guide HubSpot Stored Procedures
UpdateContactList()
Update an existing list of contacts, using the details that are stored in the specifiedJSON file.
Parameters
List_Id
SQL_VARCHAR(256)
The ID of the contact list to be updated.
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the contact list. For a description of thestructure of the JSON string, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/lists/update_list.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 103
Reference Guide HubSpot Stored Procedures
UpdateContactListContent()
Update an existing list of contacts, based on the details contained in the specifiedJSON string.
Parameters
List_Id
SQL_VARCHAR(256)
The ID of the contact list to be updated.
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the contact list. For a description of the structure ofthe JSON string, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/lists/update_list.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 104
Reference Guide HubSpot Stored Procedures
UpdateContactProperty()
Update an existing contact property, using the details that are stored in the specifiedJSON file. This procedure updates the definition of the property across all contacts,rather than updating the property value for a single contact.
Note:
If the property includes 'Type' == "enumeration", you must specify all ofthe options for the property in the update. You cannot change individual options.
Parameters
Property_Name
SQL_VARCHAR(255)
The name of the property to be updated.
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the property. For a description of thestructure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/contacts/v2/update_contact_property.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 105
Reference Guide HubSpot Stored Procedures
UpdateContactPropertyContent()
Update an existing contact property, based on the details contained in the specifiedJSON string. This procedure updates the definition of the property across all contacts,rather than updating the property value for a single contact.
Note:
If the property includes 'Type' == "enumeration", you must specify all ofthe options for the property in the update. You cannot change individual options.
Parameters
Property_Name
SQL_VARCHAR(255)
The name of the property to be updated.
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the property. For a description of the structure of theJSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/contacts/v2/update_contact_property.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 106
Reference Guide HubSpot Stored Procedures
UpdateContactPropertyGroup()
Update an existing group of contact properties, using the details that are stored in thespecified JSON file.
Parameters
Group_Name
SQL_VARCHAR(255)
The name of the contact property group to be updated.
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the contact property group. For adescription of the structure of the JSON string, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/contacts/v2/update_contact_property_group.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 107
Reference Guide HubSpot Stored Procedures
UpdateContactPropertyGroupContent()
Update an existing group of contact properties, based on the details contained in thespecified JSON string.
Parameters
Group_Name
SQL_VARCHAR(255)
The name of the contact property group to be updated.
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the contact property group. For a description of thestructure of the JSON string, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/contacts/v2/update_contact_property_group.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 108
Reference Guide HubSpot Stored Procedures
UpdateDeal()
Update an existing deal object, using the details that are stored in the specified JSONfile. This procedure replaces any existing allowed fields that are specified in the JSONstring. Fields that are not included in the string are not modified from their existingvalues.
Parameters
Deal_Id
SQL_VARCHAR(256)
The ID of the deal object to be updated.
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the deal object. For a description of thestructure of the JSON string, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/deals/update_deal.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 109
Reference Guide HubSpot Stored Procedures
UpdateDealContent()
Update an existing deal object, based on the details contained in the specified JSONstring. This procedure replaces any existing allowed fields that are specified in theJSON string. Fields that are not included in the string are not modified from theirexisting values.
Parameters
Deal_Id
SQL_VARCHAR(256)
The ID of the deal object to be updated.
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the deal object. For a description of the structure ofthe JSON string, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/deals/update_deal.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 110
Reference Guide HubSpot Stored Procedures
UpdateDealProperty()
Update an existing deal property, using the details that are stored in the specifiedJSON file. This procedure replaces any existing allowed fields that are specified in theJSON string. Fields that are not included in the string are not modified from theirexisting values.
Parameters
Property_Name
SQL_VARCHAR(256)
The name of the deal property to be updated.
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the deal property. For a description ofthe structure of the JSON string, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/deals/update_deal_property.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 111
Reference Guide HubSpot Stored Procedures
UpdateDealPropertyContent()
Update an existing deal property, based on the details contained in the specifiedJSON string. This procedure replaces any existing allowed fields that are specified inthe JSON string. Fields that are not included in the string are not modified from theirexisting values.
Parameters
Property_Name
SQL_VARCHAR(256)
The name of the deal property to be updated.
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the deal property. For a description of the structureof the JSON string, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/deals/update_deal_property.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 112
Reference Guide HubSpot Stored Procedures
UpdateEngagement()
Update an existing HubSpot engagement (a task or activity), using the details that arestored in the specified JSON file. This procedure replaces any existing allowed fieldsthat are specified in the JSON string. Fields that are not included in the string are notmodified from their existing values.
Parameters
Engagement_Id
SQL_VARCHAR(256)
The ID of the engagement to be updated. For more information, see the HubSpotdocumentation at http://developers.hubspot.com/docs/methods/engagements/get_engagement.
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the engagement. For a description ofthe structure of the JSON file, see the HubSpot documentation at URL.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 113
Reference Guide HubSpot Stored Procedures
UpdateEngagementContent()
Update an existing HubSpot engagement (a task or activity), based on the detailscontained in the specified JSON string. This procedure replaces any existing allowedfields that are specified in the JSON string. Fields that are not included in the string arenot modified from their existing values.
Parameters
Engagement_Id
SQL_VARCHAR(256)
The ID of the engagement to be updated. For more information, see the HubSpotdocumentation at http://developers.hubspot.com/docs/methods/engagements/get_engagement.
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the engagement. For a description of the structureof the JSON string, see the HubSpot documentation at URL.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 114
Reference Guide HubSpot Stored Procedures
UpdateForm()
Update an existing form, using the details that are stored in the specified JSON file.This procedure replaces any existing allowed fields that are specified in the JSONstring. Fields that are not included in the string are not modified from their existingvalues.
Parameters
Form_Guid
SQL_VARCHAR(256)
The ID of the form to be updated.
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the form. For a description of thestructure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/forms/v2/update_form.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 115
Reference Guide HubSpot Stored Procedures
UpdateFormContent()
Update an existing form, based on the details contained in the specified JSON string.This procedure replaces any existing allowed fields that are specified in the JSONstring. Fields that are not included in the string are not modified from their existingvalues.
Parameters
Form_Guid
SQL_VARCHAR(256)
The ID of the formto be updated.
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the form. For a description of the structure of theJSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/forms/v2/update_form.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 116
Reference Guide HubSpot Stored Procedures
UpdateOwner()
Update an existing owner, using the details that are stored in the specified JSON file.This procedure replaces any existing allowed fields that are specified in the JSONstring. Fields that are not included in the string are not modified from their existingvalues.
Parameters
Owner_Id
SQL_VARCHAR(256)
The ID of the owner to be updated.
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the owner. For a description of thestructure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/owners/update_owner.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 117
Reference Guide HubSpot Stored Procedures
UpdateOwnerContent()
Update an existing owner, based on the details contained in the specified JSON string.This procedure replaces any existing allowed fields that are specified in the JSONstring. Fields that are not included in the string are not modified from their existingvalues.
Parameters
Owner_Id
SQL_VARCHAR(256)
The ID of the owner to be updated.
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the owner. For a description of the structure of theJSON string, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/owners/update_owner.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 118
Reference Guide HubSpot Stored Procedures
UpdatePage()
Update an existing page in the Pages table, using the details that are stored in thespecified JSON file. This procedure replaces any existing allowed fields that arespecified in the JSON string. Fields that are not included in the string are not modifiedfrom their existing values.
Parameters
Page_Id
SQL_VARCHAR(256)
The ID of the page to be updated.
Body_File
SQL_VARCHAR(2048)
The full path to the JSON file that contains the page. For a description of thestructure of the JSON file, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/pages/put_pages_page_id.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 119
Reference Guide HubSpot Stored Procedures
UpdatePageContent()
Update an existing page in the Pages table, based on the details contained in thespecified JSON string. This procedure replaces any existing allowed fields that arespecified in the JSON string. Fields that are not included in the string are not modifiedfrom their existing values.
Parameters
Page_Id
SQL_VARCHAR(256)
The ID of the page to be updated.
File_Content
SQL_LONGVARCHAR(2000000000)
The JSON string that contains the page. For a description of the structure of theJSON string, see the HubSpot documentation athttp://developers.hubspot.com/docs/methods/pages/put_pages_page_id.
Returns
If the procedure fails, it throws an exception.
Otherwise, the procedure returns a single-row table with the following column:
Return_Code
SQL_BIT
1 for success, 0 for failure.
www.simba.com 120
Reference Guide HubSpot Stored Procedures
HubSpot Schema Tables
HubSpot stores data in structures which do not follow the rules of data typing andstructure that apply to traditional relational tables and columns. Because traditionalODBC and JDBC toolsets might not support these data structures, the data needs tobe mapped to a relational form. To achieve this, the Magnitude Gateway HubSpotAdapter uses schema tables to map the HubSpot data to formats that are compatiblewith ODBC and JDBC.
The schema tables are listed alphabetically by table name. For each table, thefollowing information is provided:
l The name of the table.l Whether the table is a virtual table, and if so, the table that it is contained in.l Whether the table contains any virtual tables, and if so, which ones.l Any of the columns in the table that are foldable, that is, whether operations onthose columns can be delegated to the server instead of the client.
l A list of all of the columns in the table, with information about the SQL type andwhether the column is nullable, updatable, or returnable by ODBC-escapedDML statements.
Important:
The adapter currently does not support write-back for JDBC connections.Columns that are described as updatable cannot be updated when youconnect to HubSpot through a JDBC application.
www.simba.com 121
Reference Guide HubSpot Schema Tables
All_Deals
The table below describes the All_Deals table.
This table contains the following virtual tables:
l Deal_Properties_Values on page 239l Deal_Associations_Associated_Deal_Ids on page 231l Deal_Associations_Associated_Vids on page 232l Deal_Associations_Associated_Company_Ids on page 230l Deal_Imports on page 233
None of the columns in this table are updatable.
None of the columns in this table are nullable.
This table contains the following foldable column:
l Deal_Id
The primary key columns in this table are returnable.
Column Name SQL Type
Deal_IdPrimary Key
SQL_VARCHAR(50)
Is_Deleted SQL_BIT
Portal_Id SQL_VARCHAR(50)
www.simba.com 122
Reference Guide HubSpot Schema Tables
Blog_Authors
The table below describes the Blog_Authors table.
This table contains the following foldable column:
l Id
The primary key columns in this table are returnable.
Column Name SQL Type Updatable Nullable
IdPrimary Key
SQL_VARCHAR(50) False False
Avatar SQL_VARCHAR(255) True True
Bio SQL_LONGVARCHAR(2000000)
True True
Created SQL_TIMESTAMP False False
Deleted_At SQL_TIMESTAMP False False
Display_Name SQL_VARCHAR(255) False False
Email SQL_VARCHAR(255) True True
Facebook SQL_VARCHAR(255) True True
Full_Name SQL_VARCHAR(255) True False
Google_Plus SQL_VARCHAR(255) True True
Gravatar_Url SQL_VARCHAR(255) False True
Has_Social_Profiles SQL_BIT False True
Linked_In SQL_VARCHAR(255) True True
Portal_Id SQL_VARCHAR(50) False False
Slug SQL_VARCHAR(255) False False
www.simba.com 123
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Twitter SQL_VARCHAR(255) True True
Twitter_Username SQL_VARCHAR(255) False True
Updated SQL_TIMESTAMP False False
User_Id SQL_VARCHAR(50) True True
Username SQL_VARCHAR(255) True True
Website SQL_VARCHAR(255) True True
www.simba.com 124
Reference Guide HubSpot Schema Tables
Blog_Comments
The table below describes the Blog_Comments table.
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
The primary key columns in this table are returnable.
Column Name SQL Type Nullable
IdPrimary Key
SQL_VARCHAR(50) False
Collection_Id SQL_VARCHAR(50) False
Comment SQL_VARCHAR(2000) False
Content_Author_Email SQL_VARCHAR(255) True
Content_Author_Name SQL_VARCHAR(255) True
Content_Created_At SQL_TIMESTAMP True
Content_Id SQL_VARCHAR(50) False
Content_Permalink SQL_VARCHAR(2000) True
Content_Title SQL_VARCHAR(2000) True
Created_At SQL_TIMESTAMP False
Deleted_At SQL_TIMESTAMP True
Extra_Content_Lifecycle_Stage SQL_VARCHAR(255) True
Extra_Content_Subscribed SQL_VARCHAR(255) True
First_Name SQL_VARCHAR(255) False
www.simba.com 125
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Last_Name SQL_VARCHAR(255) True
Legacy_Id SQL_VARCHAR(50) True
Parent_Id SQL_VARCHAR(50) True
Portal_Id SQL_VARCHAR(50) False
Replying_To SQL_VARCHAR(255) True
State SQL_VARCHAR(50) False
Thread_Id SQL_VARCHAR(255) True
User_Agent SQL_VARCHAR(255) True
User_Email SQL_VARCHAR(255) False
User_Ip SQL_VARCHAR(50) False
User_Referrer SQL_VARCHAR(255) True
User_Url SQL_VARCHAR(2000) True
Username SQL_VARCHAR(255) False
www.simba.com 126
Reference Guide HubSpot Schema Tables
Blog_Post_Versions
The table below describes the Blog_Post_Versions table.
This table contains the following virtual tables:
l Blog_Post_Versions_Keywords on page 135l Blog_Post_Versions_Placement_Guids on page 137l Blog_Post_Versions_Personas on page 136l Blog_Post_Versions_Attached_Stylesheets on page 134l Blog_Post_Versions_Topic_Ids on page 138
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Updatable Nullable
Blog_Post_IdPrimary KeyForeign Key linked tocolumn Id in Blog_Posts table
SQL_VARCHAR(50) False False
Version_IdPrimary Key
SQL_BIGINT(signed) False True
Content_Group_IdForeign Key linked tocolumn Id in Blogstable
SQL_VARCHAR(50) False False
Analytics_Page_Id SQL_VARCHAR(50) False False
Archived SQL_BIT False False
Author_Email SQL_VARCHAR(2000) False True
Author_Name SQL_VARCHAR(255) False True
Author_User_Id SQL_VARCHAR(50) False True
www.simba.com 127
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Authored_At SQL_TIMESTAMP False True
Blog_Author_Id SQL_VARCHAR(50) True True
Blog_Post_Schedule_Task_Uid
SQL_VARCHAR(255) False True
Blog_Publish_Instant_Email_Campaign_Id
SQL_VARCHAR(255) False True
Blog_Publish_Instant_Email_Retry_Count
SQL_INTEGER(unsigned) False True
Blog_Publish_Instant_Email_Task_Uid
SQL_VARCHAR(255) False True
Blog_Publish_To_Social_Media_Task
SQL_VARCHAR(255) False True
Blueprint_Type_Id SQL_VARCHAR(50) False False
Campaign SQL_VARCHAR(255) True True
Campaign_Name SQL_VARCHAR(255) True True
Campaign_Utm SQL_VARCHAR(255) False True
Category_Id SQL_VARCHAR(50) False False
Cloned_From SQL_VARCHAR(255) False True
Comment_Count SQL_INTEGER(unsigned) False False
Compose_Body SQL_LONGVARCHAR(2000000)
False True
Created SQL_TIMESTAMP False False
Css SQL_VARCHAR(255) False True
www.simba.com 128
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Css_Text SQL_LONGVARCHAR(2000000)
False True
Deleted_At SQL_TIMESTAMP False False
Deleted_By SQL_VARCHAR(255) False True
Domain SQL_VARCHAR(255) False True
Email_Campaign_Id SQL_VARCHAR(50) False True
Email_Schedule_Result SQL_VARCHAR(20000) False True
Enable_Domain_Stylesheets
SQL_BIT False False
Enable_Layout_Stylesheets
SQL_BIT False False
Featured_Image SQL_VARCHAR(20000) False True
Featured_Image_Alt_Text SQL_LONGVARCHAR(2000000)
False True
Flex_Areas SQL_LONGVARCHAR(2000000)
False True
Folder_Id SQL_VARCHAR(50) False True
Footer_Html SQL_VARCHAR(20000) True True
Freeze_Date SQL_TIMESTAMP False False
Has_User_Changes SQL_VARCHAR(255) False True
Head_Html SQL_VARCHAR(2000) True True
Head_Title SQL_VARCHAR(20000) False True
www.simba.com 129
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Include_Default_Custom_Css
SQL_VARCHAR(255) False True
Is_Draft SQL_BIT False False
Is_Instant_Email_Enabled SQL_BIT False False
Is_Social_Publishing_Enabled
SQL_BIT False False
Language SQL_VARCHAR(50) False True
Last_Edit_Session_Id SQL_VARCHAR(50) False True
Last_Edit_Update_Id SQL_VARCHAR(50) False True
Legacy_Blog_Tab_Id SQL_VARCHAR(50) False True
Legacy_Id SQL_VARCHAR(255) False True
Legacy_Post_Guid SQL_VARCHAR(255) False True
Meta_Description SQL_LONGVARCHAR(2000000)
True True
Meta_Keywords SQL_VARCHAR(20000) False True
Name SQL_VARCHAR(255) True False
Page_Expiry_Date SQL_TIMESTAMP False True
Page_Expiry_Enabled SQL_BIT False True
Page_Expiry_Redirect_Id SQL_VARCHAR(50) False True
Page_Expiry_Redirect_Url SQL_VARCHAR(2000) False True
Page_Redirected SQL_VARCHAR(2000) False True
Perform_Able_Url SQL_VARCHAR(2000) False True
www.simba.com 130
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Placement_Guids SQL_VARCHAR(255) False True
Portal_Id SQL_VARCHAR(50) False False
Post_Body SQL_LONGVARCHAR(2000000)
True True
Post_Summary SQL_LONGVARCHAR(2000000)
True True
Preview_Image_Src SQL_LONGVARCHAR(2000000)
False True
Preview_Key SQL_VARCHAR(20000) False False
Processing_Status SQL_VARCHAR(50) False True
Publish_Date SQL_TIMESTAMP True False
Publish_Immediately SQL_BIT True True
Published_Url SQL_VARCHAR(20000) False True
Rss_Body SQL_LONGVARCHAR(2000000)
False True
Rss_Email_Author_Line_Template
SQL_BIT False True
Rss_Email_Blog_Image_Max_Width
SQL_INTEGER(unsigned) False True
Rss_Email_By_Text SQL_LONGVARCHAR(2000000)
False False
Rss_Email_Click_Through_Text
SQL_VARCHAR(255) False False
Rss_Email_Comment_Text
SQL_LONGVARCHAR(2000000)
False False
www.simba.com 131
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Rss_Email_Entry_Template
SQL_VARCHAR(255) False True
Rss_Email_Entry_Template_Enabled
SQL_BIT False True
Rss_Email_Id SQL_VARCHAR(255) False True
Rss_Email_Image_Max_Width
SQL_INTEGER(unsigned) False True
Rss_Summary SQL_LONGVARCHAR(2000000)
False True
Scheduled_Update_Date SQL_TIMESTAMP False True
Slug SQL_VARCHAR(255) True False
Staged_From SQL_VARCHAR(255) False True
State SQL_VARCHAR(50) False False
Style_Override_Id SQL_VARCHAR(50) False True
Subcategory SQL_VARCHAR(255) False False
Submitted_Batch_At SQL_TIMESTAMP False True
Template_Path SQL_VARCHAR(2000) False True
Tms_Id SQL_VARCHAR(50) False True
Translated_From_Id SQL_VARCHAR(50) False True
Unpublished_At SQL_TIMESTAMP False True
Updated SQL_TIMESTAMP False False
Url SQL_VARCHAR(20000) False False
www.simba.com 132
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Use_Featured_Image SQL_BIT False False
User_Email SQL_VARCHAR(255) False True
User_Full_Name SQL_VARCHAR(255) False True
User_Id SQL_VARCHAR(50) False True
User_Username SQL_VARCHAR(255) False True
Widget_Containers SQL_LONGVARCHAR(2000000)
False True
Widgets SQL_LONGVARCHAR(2000000)
True True
www.simba.com 133
Reference Guide HubSpot Schema Tables
Blog_Post_Versions_Attached_Stylesheets
The table below describes the Blog_Post_Versions_Attached_Stylesheets table.
This is a virtual table, and is linked to the Blog_Post_Versions table (see Blog_Post_Versions on page 127).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Attached_Stylesheets_IndexPrimary Key
SQL_INTEGER(unsigned) True
Blog_Post_IdPrimary KeyForeign Key linked to columnBlog_Post_Id in Blog_Post_Versions table
SQL_VARCHAR(50) False
Version_IdPrimary KeyForeign Key linked to columnVersion_Id in Blog_Post_Versions table
SQL_BIGINT(signed) True
Attached_Stylesheets_Id SQL_VARCHAR(50) True
Attached_Stylesheets_Type SQL_VARCHAR(50) True
www.simba.com 134
Reference Guide HubSpot Schema Tables
Blog_Post_Versions_Keywords
The table below describes the Blog_Post_Versions_Keywords table.
This is a virtual table, and is linked to the Blog_Post_Versions table (see Blog_Post_Versions on page 127).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Blog_Post_IdPrimary KeyForeign Key linked to columnBlog_Post_Id in Blog_Post_Versions table
SQL_VARCHAR(50) False
Keywords_IndexPrimary Key
SQL_INTEGER(unsigned) True
Version_IdPrimary KeyForeign Key linked to columnVersion_Id in Blog_Post_Versions table
SQL_BIGINT(signed) True
Keywords_Country SQL_INTEGER(unsigned) True
Keywords_Keyword SQL_VARCHAR(255) True
Keywords_Keyword_Guid SQL_VARCHAR(255) True
Keywords_Keyword_Id SQL_VARCHAR(50) True
www.simba.com 135
Reference Guide HubSpot Schema Tables
Blog_Post_Versions_Personas
The table below describes the Blog_Post_Versions_Personas table.
This is a virtual table, and is linked to the Blog_Post_Versions table (see Blog_Post_Versions on page 127).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Blog_Post_IdPrimary KeyForeign Key linked to columnBlog_Post_Id in Blog_Post_Versions table
SQL_VARCHAR(50) False
Personas_IndexPrimary Key
SQL_INTEGER(unsigned) True
Version_IdPrimary KeyForeign Key linked to columnVersion_Id in Blog_Post_Versions table
SQL_BIGINT(signed) True
Personas_Value SQL_LONGVARCHAR(20000000)
True
www.simba.com 136
Reference Guide HubSpot Schema Tables
Blog_Post_Versions_Placement_Guids
The table below describes the Blog_Post_Versions_Placement_Guids table.
This is a virtual table, and is linked to the Blog_Post_Versions table (see Blog_Post_Versions on page 127).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Blog_Post_IdPrimary KeyForeign Key linked to columnBlog_Post_Id in Blog_Post_Versions table
SQL_VARCHAR(50) False
Placement_Guids_IndexPrimary Key
SQL_INTEGER(unsigned) True
Version_IdPrimary KeyForeign Key linked to columnVersion_Id in Blog_Post_Versions table
SQL_BIGINT(signed) True
Placement_Guids_Value SQL_VARCHAR(255) True
www.simba.com 137
Reference Guide HubSpot Schema Tables
Blog_Post_Versions_Topic_Ids
The table below describes the Blog_Post_Versions_Topic_Ids table.
This is a virtual table, and is linked to the Blog_Post_Versions table (see Blog_Post_Versions on page 127).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Blog_Post_IdPrimary KeyForeign Key linked to columnBlog_Post_Id in Blog_Post_Versions table
SQL_VARCHAR(50) False
Topic_Ids_IndexPrimary Key
SQL_INTEGER(unsigned) True
Version_IdPrimary KeyForeign Key linked to columnVersion_Id in Blog_Post_Versions table
SQL_BIGINT(signed) True
Topic_Ids_Value SQL_VARCHAR(50) True
www.simba.com 138
Reference Guide HubSpot Schema Tables
Blog_Posts
The table below describes the Blog_Posts table.
This table contains the following virtual tables:
l Blog_Posts_Keywords on page 146l Blog_Posts_Placement_Guids on page 148l Blog_Posts_Attached_Stylesheets on page 145l Blog_Posts_Personas on page 147l Blog_Posts_Topic_Ids on page 149
This table contains the following foldable column:
l Id
The primary key columns in this table are returnable.
Column Name SQL Type Updatable Nullable
IdPrimary Key
SQL_VARCHAR(50) False False
Content_Group_IdForeign Key linked tocolumn Id in Blogstable
SQL_VARCHAR(50) False False
Analytics_Page_Id SQL_VARCHAR(50) False False
Archived SQL_BIT False False
Author_Email SQL_VARCHAR(2000) False True
Author_Name SQL_VARCHAR(2000) False True
Author_User_Id SQL_VARCHAR(50) False True
Blog_Author_Id SQL_VARCHAR(50) True True
Blog_Post_Schedule_Task_Uid
SQL_VARCHAR(255) False True
www.simba.com 139
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Blog_Publish_Instant_Email_Campaign_Id
SQL_VARCHAR(255) False True
Blog_Publish_Instant_Email_Retry_Count
SQL_INTEGER(unsigned) False True
Blog_Publish_Instant_Email_Task_Uid
SQL_VARCHAR(255) False True
Blog_Publish_To_Social_Media_Task
SQL_VARCHAR(255) False True
Blueprint_Type_Id SQL_VARCHAR(50) False False
Campaign SQL_VARCHAR(255) True True
Campaign_Name SQL_VARCHAR(255) True True
Campaign_Utm SQL_VARCHAR(255) False True
Category_Id SQL_VARCHAR(50) False False
Cloned_From SQL_VARCHAR(255) False True
Comment_Count SQL_INTEGER(unsigned) False False
Compose_Body SQL_LONGVARCHAR(2000000)
False True
Created SQL_TIMESTAMP False False
Css SQL_VARCHAR(20000) False True
Css_Text SQL_LONGVARCHAR(2000000)
False True
Deleted_At SQL_TIMESTAMP False False
Deleted_By SQL_VARCHAR(255) False True
www.simba.com 140
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Domain SQL_VARCHAR(255) False True
Email_Campaign_Id SQL_VARCHAR(50) False True
Email_Schedule_Result SQL_LONGVARCHAR(2000000)
False True
Enable_Domain_Stylesheets
SQL_BIT False False
Enable_Layout_Stylesheets
SQL_BIT False False
Featured_Image SQL_VARCHAR(20000) False True
Featured_Image_Alt_Text SQL_LONGVARCHAR(2000000)
False True
Flex_Areas SQL_LONGVARCHAR(2000000)
False True
Folder_Id SQL_VARCHAR(50) False True
Footer_Html SQL_VARCHAR(20000) True True
Freeze_Date SQL_TIMESTAMP False False
Has_User_Changes SQL_VARCHAR(255) False True
Head_Html SQL_VARCHAR(2000) True True
Head_Title SQL_VARCHAR(20000) False True
Include_Default_Custom_Css
SQL_VARCHAR(255) False True
Is_Draft SQL_BIT False False
Is_Instant_Email_Enabled SQL_BIT False False
www.simba.com 141
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Is_Social_Publishing_Enabled
SQL_BIT False False
Language SQL_VARCHAR(50) False True
Last_Edit_Session_Id SQL_VARCHAR(50) False True
Last_Edit_Update_Id SQL_VARCHAR(50) False True
Legacy_Blog_Tab_Id SQL_VARCHAR(50) False True
Legacy_Id SQL_VARCHAR(255) False True
Legacy_Post_Guid SQL_VARCHAR(255) False True
Meta_Description SQL_LONGVARCHAR(20000000)
True True
Meta_Keywords SQL_VARCHAR(20000) False True
Name SQL_VARCHAR(255) True False
Page_Expiry_Date SQL_TIMESTAMP False True
Page_Expiry_Enabled SQL_BIT False True
Page_Expiry_Redirect_Id SQL_VARCHAR(50) False True
Page_Expiry_Redirect_Url SQL_VARCHAR(20000) False True
Page_Redirected SQL_VARCHAR(20000) False True
Perform_Able_Url SQL_VARCHAR(20000) False True
Placement_Guids SQL_VARCHAR(255) False True
Portal_Id SQL_VARCHAR(50) False False
Post_Body SQL_LONGVARCHAR(2000000)
True True
www.simba.com 142
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Post_Summary SQL_LONGVARCHAR(2000000)
True True
Preview_Image_Src SQL_VARCHAR(20000) False True
Preview_Key SQL_VARCHAR(20000) False False
Processing_Status SQL_VARCHAR(50) False True
Publish_Date SQL_TIMESTAMP True False
Publish_Immediately SQL_BIT True True
Published_Url SQL_VARCHAR(20000) False True
Rss_Body SQL_LONGVARCHAR(20000000)
False True
Rss_Email_Author_Line_Template
SQL_BIT False True
Rss_Email_Blog_Image_Max_Width
SQL_INTEGER(unsigned) False True
Rss_Email_By_Text SQL_LONGVARCHAR(2000000)
False False
Rss_Email_Click_Through_Text
SQL_VARCHAR(255) False False
Rss_Email_Comment_Text
SQL_LONGVARCHAR(2000000)
False False
Rss_Email_Entry_Template
SQL_VARCHAR(20000) False True
Rss_Email_Entry_Template_Enabled
SQL_BIT False True
Rss_Email_Id SQL_VARCHAR(255) False True
www.simba.com 143
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Rss_Email_Image_Max_Width
SQL_INTEGER(unsigned) False True
Rss_Summary SQL_LONGVARCHAR(2000000)
False True
Scheduled_Update_Date SQL_TIMESTAMP False True
Slug SQL_VARCHAR(2000) True False
Staged_From SQL_VARCHAR(255) False True
State SQL_VARCHAR(50) False False
Style_Override_Id SQL_VARCHAR(50) False True
Subcategory SQL_VARCHAR(2000) False False
Submitted_Batch_At SQL_TIMESTAMP False True
Template_Path SQL_VARCHAR(2000) False True
Tms_Id SQL_VARCHAR(50) False True
Translated_From_Id SQL_VARCHAR(50) False True
Unpublished_At SQL_TIMESTAMP False True
Updated SQL_TIMESTAMP False False
Url SQL_VARCHAR(20000) False False
Use_Featured_Image SQL_BIT False False
Widget_Containers SQL_LONGVARCHAR(2000000)
False True
Widgets SQL_LONGVARCHAR(2000000)
True True
www.simba.com 144
Reference Guide HubSpot Schema Tables
Blog_Posts_Attached_Stylesheets
The table below describes the Blog_Posts_Attached_Stylesheets table.
This is a virtual table, and is linked to the Blog_Posts table (see Blog_Posts on page139).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Attached_Stylesheets_IndexPrimary Key
SQL_INTEGER(unsigned) True
IdPrimary KeyForeign Key linked to columnId in Blog_Posts table
SQL_VARCHAR(50) False
Attached_Stylesheets_Id SQL_VARCHAR(50) True
Attached_Stylesheets_Type SQL_VARCHAR(50) True
www.simba.com 145
Reference Guide HubSpot Schema Tables
Blog_Posts_Keywords
The table below describes the Blog_Posts_Keywords table.
This is a virtual table, and is linked to the Blog_Posts table (see Blog_Posts on page139).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
IdPrimary KeyForeign Key linked to columnId in Blog_Posts table
SQL_VARCHAR(50) False
Keywords_IndexPrimary Key
SQL_INTEGER(unsigned) True
Keywords_Country SQL_INTEGER(unsigned) True
Keywords_Keyword SQL_VARCHAR(255) True
Keywords_Keyword_Guid SQL_VARCHAR(255) True
Keywords_Keyword_Id SQL_VARCHAR(50) True
www.simba.com 146
Reference Guide HubSpot Schema Tables
Blog_Posts_Personas
The table below describes the Blog_Posts_Personas table.
This is a virtual table, and is linked to the Blog_Posts table (see Blog_Posts on page139).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
IdPrimary KeyForeign Key linked to columnId in Blog_Posts table
SQL_VARCHAR(50) False
Personas_IndexPrimary Key
SQL_INTEGER(unsigned) True
Personas_Value SQL_LONGVARCHAR(2000000)
True
www.simba.com 147
Reference Guide HubSpot Schema Tables
Blog_Posts_Placement_Guids
The table below describes the Blog_Posts_Placement_Guids table.
This is a virtual table, and is linked to the Blog_Posts table (see Blog_Posts on page139).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
IdPrimary KeyForeign Key linked to columnId in Blog_Posts table
SQL_VARCHAR(50) False
Placement_Guids_IndexPrimary Key
SQL_INTEGER(unsigned) True
Placement_Guids_Value SQL_VARCHAR(255) True
www.simba.com 148
Reference Guide HubSpot Schema Tables
Blog_Posts_Topic_Ids
The table below describes the Blog_Posts_Topic_Ids table.
This is a virtual table, and is linked to the Blog_Posts table (see Blog_Posts on page139).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
IdPrimary KeyForeign Key linked to columnId in Blog_Posts table
SQL_VARCHAR(50) False
Topic_Ids_IndexPrimary Key
SQL_INTEGER(unsigned) True
Topic_Ids_Values SQL_VARCHAR(50) True
www.simba.com 149
Reference Guide HubSpot Schema Tables
Blog_Topics
The table below describes the Blog_Topics table.
None of the columns in this table are nullable.
This table contains the following foldable column:
l Id
The primary key columns in this table are returnable.
Column Name SQL Type Updatable
IdPrimary Key
SQL_VARCHAR(50) False
Created SQL_TIMESTAMP False
Deleted_At SQL_TIMESTAMP False
Description SQL_VARCHAR(2000) True
Name SQL_VARCHAR(255) True
Portal_Id SQL_VARCHAR(50) False
Slug SQL_VARCHAR(255) False
Updated SQL_TIMESTAMP False
www.simba.com 150
Reference Guide HubSpot Schema Tables
Blog_Versions
The table below describes the Blog_Versions table.
This table contains the following virtual tables:
l Blog_Versions_Attached_Stylesheets on page 157l Blog_Versions_Comment_Notification_Emails on page 158l Blog_Versions_Html_Keywords on page 159
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Blog_IdPrimary KeyForeign Key linked to columnId in Blogs table
SQL_VARCHAR(50) False
Version_IdPrimary Key
SQL_BIGINT(signed) True
Allow_Comments SQL_BIT True
Authored_At SQL_TIMESTAMP True
Captcha_After_Days SQL_INTEGER(unsigned) True
Captcha_Always SQL_BIT True
Category_Id SQL_VARCHAR(50) True
Close_Comments_Older SQL_INTEGER(unsigned) True
Comment_Date_Format SQL_VARCHAR(255) True
Comment_Form_Guid SQL_VARCHAR(255) True
Comment_Max_Thread_Depth SQL_INTEGER(unsigned) True
www.simba.com 151
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Comment_Moderation SQL_BIT True
Comment_Should_Create_Contact
SQL_BIT True
Comment_Verification_Text SQL_VARCHAR(255) True
Created SQL_TIMESTAMP True
Daily_Notification_Email_Id SQL_VARCHAR(50) True
Default_Group_Style_Id SQL_VARCHAR(50) True
Default_Notification_From_Name SQL_VARCHAR(255) True
Default_Notification_Reply_To SQL_VARCHAR(255) True
Deleted_At SQL_TIMESTAMP True
Description SQL_VARCHAR(2000) True
Domain SQL_VARCHAR(255) True
Domain_When_Published SQL_VARCHAR(255) False
Email_Api_Subscription_Id SQL_VARCHAR(50) True
Enable_Social_Auto_Publishing SQL_BIT True
Header SQL_VARCHAR(2000) True
Html_Footer SQL_VARCHAR(2000) True
Html_Footer_Is_Shared SQL_BIT True
Html_Head SQL_VARCHAR(2000) True
Html_Head_Is_Shared SQL_BIT True
www.simba.com 152
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Html_Title SQL_VARCHAR(2000) True
Instant_Notification_Email_Id SQL_VARCHAR(50) True
Item_Layout_Id SQL_VARCHAR(50) True
Item_Template_Is_Shared SQL_BIT True
Item_Template_Path SQL_VARCHAR(255) True
Language SQL_VARCHAR(50) True
Legacy_Guid SQL_VARCHAR(255) True
Legacy_Module_Id SQL_VARCHAR(255) True
Legacy_Tab_Id SQL_VARCHAR(255) True
Listing_Layout_Id SQL_VARCHAR(255) True
Listing_Template_Path SQL_VARCHAR(1000) True
Month_Filter_Format SQL_VARCHAR(255) True
Monthly_Notification_Email_Id SQL_VARCHAR(255) True
Name SQL_VARCHAR(255) True
Portal_Id SQL_VARCHAR(50) True
Post_Html_Footer SQL_VARCHAR(2000) True
Post_Html_Head SQL_VARCHAR(2000) True
Posts_Per_Listing_Page SQL_INTEGER(unsigned) True
Posts_Per_Rss_Feed SQL_INTEGER(unsigned) True
Public_Title SQL_VARCHAR(2000) True
www.simba.com 153
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Publish_Date_Format SQL_VARCHAR(255) True
Root_Url SQL_VARCHAR(2000) True
Rss_Custom_Feed SQL_VARCHAR(255) True
Rss_Description SQL_VARCHAR(2000) True
Rss_Item_Footer SQL_VARCHAR(2000) True
Rss_Item_Header SQL_VARCHAR(2000) True
Show_Social_Link_Facebook SQL_BIT True
Show_Social_Link_Google_Plus SQL_BIT True
Show_Social_Link_Linked_In SQL_BIT True
Show_Social_Link_Twitter SQL_BIT True
Show_Summary_In_Emails SQL_BIT True
Show_Summary_In_Listing SQL_BIT True
Show_Summary_In_Rss SQL_BIT True
Slug SQL_VARCHAR(255) True
Social_Account_Twitter SQL_VARCHAR(255) True
Social_Publishing_Slug SQL_VARCHAR(255) True
Social_Sharing_Delicious SQL_VARCHAR(255) True
Social_Sharing_Digg SQL_VARCHAR(255) True
Social_Sharing_Email SQL_VARCHAR(255) True
Social_Sharing_Facebook_Like SQL_VARCHAR(255) True
www.simba.com 154
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Social_Sharing_Facebook_Send SQL_VARCHAR(255) True
Social_Sharing_Google_Buzz SQL_VARCHAR(255) True
Social_Sharing_Google_Plus_One
SQL_VARCHAR(255) True
Social_Sharing_Linked_In SQL_VARCHAR(255) True
Social_Sharing_Reddit SQL_VARCHAR(255) True
Social_Sharing_Stumbleupon SQL_VARCHAR(255) True
Social_Sharing_Twitter SQL_VARCHAR(255) True
Social_Sharing_Twitter_Account SQL_VARCHAR(255) True
Subscription_Contacts_Property SQL_VARCHAR(255) True
Subscription_Email_Type SQL_VARCHAR(255) True
Subscription_Form_Guid SQL_VARCHAR(255) True
Subscription_Lists_By_Type_Daily
SQL_INTEGER(unsigned) True
Subscription_Lists_By_Type_Instant
SQL_INTEGER(unsigned) True
Subscription_Lists_By_Type_Monthly
SQL_INTEGER(unsigned) True
Subscription_Lists_By_Type_Weekly
SQL_INTEGER(unsigned) True
Updated SQL_TIMESTAMP True
Use_Featured_Image_In_Summary
SQL_BIT True
www.simba.com 155
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
User_Email SQL_VARCHAR(255) True
User_Full_Name SQL_VARCHAR(255) True
User_Id SQL_VARCHAR(50) True
User_Username SQL_VARCHAR(255) True
Weekly_Notification_Email_Id SQL_VARCHAR(255) True
www.simba.com 156
Reference Guide HubSpot Schema Tables
Blog_Versions_Attached_Stylesheets
The table below describes the Blog_Versions_Attached_Stylesheets table.
This is a virtual table, and is linked to the Blog_Versions table (see Blog_Versions onpage 151).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Attached_Stylesheets_IndexPrimary Key
SQL_INTEGER(unsigned) True
Blog_IdPrimary KeyForeign Key linked to columnBlog_Id in Blog_Versionstable
SQL_VARCHAR(50) False
Version_IdPrimary KeyForeign Key linked to columnVersion_Id in Blog_Versionstable
SQL_BIGINT(signed) True
Attached_Stylesheets_Id SQL_VARCHAR(255) True
Attached_Stylesheets_Type SQL_VARCHAR(255) True
www.simba.com 157
Reference Guide HubSpot Schema Tables
Blog_Versions_Comment_Notification_Emails
The table below describes the Blog_Versions_Comment_Notification_Emails table.
This is a virtual table, and is linked to the Blog_Versions table (see Blog_Versions onpage 151).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Blog_IdPrimary KeyForeign Key linked to columnBlog_Id in Blog_Versionstable
SQL_VARCHAR(50) False
Comment_Notification_Emails_Index
Primary Key
SQL_INTEGER(unsigned) True
Version_IdPrimary KeyForeign Key linked to columnVersion_Id in Blog_Versionstable
SQL_BIGINT(signed) True
Comment_Notification_Emails_Value
SQL_LONGVARCHAR(2000000000)
True
www.simba.com 158
Reference Guide HubSpot Schema Tables
Blog_Versions_Html_Keywords
The table below describes the Blog_Versions_Html_Keywords table.
This is a virtual table, and is linked to the Blog_Versions table (see Blog_Versions onpage 151).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Blog_IdPrimary KeyForeign Key linked to columnBlog_Id in Blog_Versionstable
SQL_VARCHAR(50) False
Html_Keywords_IndexPrimary Key
SQL_INTEGER(unsigned) True
Version_IdPrimary KeyForeign Key linked to columnVersion_Id in Blog_Versionstable
SQL_BIGINT(signed) True
Html_Keywords_Value SQL_LONGVARCHAR(2000000)
True
www.simba.com 159
Reference Guide HubSpot Schema Tables
Blogs
The table below describes the Blogs table.
This table contains the following virtual tables:
l Blogs_Attached_Stylesheets on page 165l Blogs_Comment_Notification_Emails on page 166l Blogs_Html_Keywords on page 167
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
The primary key columns in this table are returnable.
Column Name SQL Type Nullable
IdPrimary Key
SQL_VARCHAR(50) False
Domain_When_PublishedForeign Key linked to columnDomain in Domains table
SQL_VARCHAR(255) False
Allow_Comments SQL_BIT True
Captcha_After_Days SQL_INTEGER(unsigned) True
Captcha_Always SQL_BIT True
Category_Id SQL_VARCHAR(50) True
Close_Comments_Older SQL_INTEGER(unsigned) True
Comment_Date_Format SQL_VARCHAR(255) True
Comment_Form_Guid SQL_VARCHAR(255) True
Comment_Max_Thread_Depth SQL_INTEGER(unsigned) True
www.simba.com 160
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Comment_Moderation SQL_BIT True
Comment_Should_Create_Contact
SQL_BIT True
Comment_Verification_Text SQL_VARCHAR(255) True
Created SQL_TIMESTAMP True
Daily_Notification_Email_Id SQL_VARCHAR(50) True
Default_Group_Style_Id SQL_VARCHAR(50) True
Default_Notification_From_Name SQL_VARCHAR(255) True
Default_Notification_Reply_To SQL_VARCHAR(255) True
Deleted_At SQL_TIMESTAMP True
Description SQL_VARCHAR(2000) True
Domain SQL_VARCHAR(255) True
Email_Api_Subscription_Id SQL_VARCHAR(50) True
Enable_Social_Auto_Publishing SQL_BIT True
Header SQL_VARCHAR(2000) True
Html_Footer SQL_VARCHAR(2000) True
Html_Footer_Is_Shared SQL_BIT True
Html_Head SQL_VARCHAR(2000) True
Html_Head_Is_Shared SQL_BIT True
Html_Title SQL_VARCHAR(2000) True
www.simba.com 161
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Instant_Notification_Email_Id SQL_VARCHAR(50) True
Item_Layout_Id SQL_VARCHAR(50) True
Item_Template_Is_Shared SQL_BIT True
Item_Template_Path SQL_VARCHAR(255) True
Language SQL_VARCHAR(50) True
Legacy_Guid SQL_VARCHAR(255) True
Legacy_Module_Id SQL_VARCHAR(255) True
Legacy_Tab_Id SQL_VARCHAR(255) True
Listing_Layout_Id SQL_VARCHAR(255) True
Listing_Template_Path SQL_VARCHAR(1000) True
Month_Filter_Format SQL_VARCHAR(255) True
Monthly_Notification_Email_Id SQL_VARCHAR(255) True
Name SQL_VARCHAR(255) True
Portal_Id SQL_VARCHAR(50) True
Post_Html_Footer SQL_VARCHAR(2000) True
Post_Html_Head SQL_VARCHAR(2000) True
Posts_Per_Listing_Page SQL_INTEGER(unsigned) True
Posts_Per_Rss_Feed SQL_INTEGER(unsigned) True
Public_Title SQL_VARCHAR(2000) True
Publish_Date_Format SQL_VARCHAR(255) True
www.simba.com 162
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Root_Url SQL_VARCHAR(2000) True
Rss_Custom_Feed SQL_VARCHAR(255) True
Rss_Description SQL_VARCHAR(2000) True
Rss_Item_Footer SQL_VARCHAR(2000) True
Rss_Item_Header SQL_VARCHAR(2000) True
Show_Social_Link_Facebook SQL_BIT True
Show_Social_Link_Google_Plus SQL_BIT True
Show_Social_Link_Linked_In SQL_BIT True
Show_Social_Link_Twitter SQL_BIT True
Show_Summary_In_Emails SQL_BIT True
Show_Summary_In_Listing SQL_BIT True
Show_Summary_In_Rss SQL_BIT True
Slug SQL_VARCHAR(255) True
Social_Account_Twitter SQL_VARCHAR(255) True
Social_Publishing_Slug SQL_VARCHAR(255) True
Social_Sharing_Delicious SQL_VARCHAR(255) True
Social_Sharing_Digg SQL_VARCHAR(255) True
Social_Sharing_Email SQL_VARCHAR(255) True
Social_Sharing_Facebook_Like SQL_VARCHAR(255) True
Social_Sharing_Facebook_Send SQL_VARCHAR(255) True
www.simba.com 163
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Social_Sharing_Google_Buzz SQL_VARCHAR(255) True
Social_Sharing_Google_Plus_One
SQL_VARCHAR(255) True
Social_Sharing_Linked_In SQL_VARCHAR(255) True
Social_Sharing_Reddit SQL_VARCHAR(255) True
Social_Sharing_Stumbleupon SQL_VARCHAR(255) True
Social_Sharing_Twitter SQL_VARCHAR(255) True
Social_Sharing_Twitter_Account SQL_VARCHAR(255) True
Subscription_Contacts_Property SQL_VARCHAR(255) True
Subscription_Email_Type SQL_VARCHAR(255) True
Subscription_Form_Guid SQL_VARCHAR(255) True
Subscription_Lists_By_Type_Daily
SQL_INTEGER(unsigned) True
Subscription_Lists_By_Type_Instant
SQL_INTEGER(unsigned) True
Subscription_Lists_By_Type_Monthly
SQL_INTEGER(unsigned) True
Subscription_Lists_By_Type_Weekly
SQL_INTEGER(unsigned) True
Updated SQL_TIMESTAMP True
Use_Featured_Image_In_Summary
SQL_BIT True
Weekly_Notification_Email_Id SQL_VARCHAR(255) True
www.simba.com 164
Reference Guide HubSpot Schema Tables
Blogs_Attached_Stylesheets
The table below describes the Blogs_Attached_Stylesheets table.
This is a virtual table, and is linked to the Blogs table (see Blogs on page 160).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Attached_Stylesheets_IndexPrimary Key
SQL_INTEGER(unsigned) True
IdPrimary KeyForeign Key linked to columnId in Blogs table
SQL_VARCHAR(50) False
Attached_Stylesheets_Id SQL_VARCHAR(255) True
Attached_Stylesheets_Type SQL_VARCHAR(255) True
www.simba.com 165
Reference Guide HubSpot Schema Tables
Blogs_Comment_Notification_Emails
The table below describes the Blogs_Comment_Notification_Emails table.
This is a virtual table, and is linked to the Blogs table (see Blogs on page 160).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Comment_Notification_Emails_Index
Primary Key
SQL_INTEGER(unsigned) True
IdPrimary KeyForeign Key linked to columnId in Blogs table
SQL_VARCHAR(50) False
Comment_Notification_Emails_Value
SQL_LONGVARCHAR(2000000)
True
www.simba.com 166
Reference Guide HubSpot Schema Tables
Blogs_Html_Keywords
The table below describes the Blogs_Html_Keywords table.
This is a virtual table, and is linked to the Blogs table (see Blogs on page 160).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Html_Keywords_IndexPrimary Key
SQL_INTEGER(unsigned) True
IdPrimary KeyForeign Key linked to columnId in Blogs table
SQL_VARCHAR(50) False
Html_Keywords_Value SQL_LONGVARCHAR(2000000)
True
www.simba.com 167
Reference Guide HubSpot Schema Tables
Broadcast_Messages
The table below describes the Broadcast_Messages table.
This table contains the following virtual table:
l Broadcast_Messages_Interactions on page 171
None of the columns in this table are updatable.
None of the columns in this table are foldable.
The primary key columns in this table are returnable.
Column Name SQL Type Nullable
Broadcast_GuidPrimary Key
SQL_VARCHAR(50) False
Channel_GuidForeign Key linked to columnChannel_Guid in Channelstable
SQL_VARCHAR(50) False
Campaign_Guid SQL_VARCHAR(50) True
Campaign_Name SQL_VARCHAR(255) True
Channel SQL_VARCHAR(255) True
Channel_Key SQL_VARCHAR(255) False
Clicks SQL_INTEGER(unsigned) False
Client_Tag SQL_VARCHAR(255) True
Content_Body SQL_VARCHAR(2000) False
Content_Link SQL_VARCHAR(2000) False
Content_Original_Body SQL_VARCHAR(2000) False
Content_Photo_Url SQL_VARCHAR(2000) True
www.simba.com 168
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Content_Post_Title SQL_VARCHAR(255) True
Content_Uncompressed_Links SQL_VARCHAR(2000) False
Created_At SQL_TIMESTAMP False
Created_By SQL_VARCHAR(255) False
Finished_At SQL_TIMESTAMP True
Foreign_Id SQL_VARCHAR(50) True
Group_Guid SQL_VARCHAR(50) False
Interaction_Counts SQL_VARCHAR(255) True
Interactions_Count SQL_INTEGER(unsigned) False
Is_Failed SQL_BIT False
Is_Pending SQL_BIT False
Is_Published SQL_BIT False
Is_Retry SQL_BIT False
Likes SQL_INTEGER(unsigned) False
Link_Guid SQL_VARCHAR(50) True
Link_Task_Queue_Id SQL_VARCHAR(50) False
Message SQL_LONGVARCHAR(2000000)
True
Message_Url SQL_VARCHAR(2000) True
Portal_Id SQL_VARCHAR(50) False
Remote_Content_Id SQL_VARCHAR(50) True
www.simba.com 169
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Remote_Content_Type SQL_VARCHAR(50) True
Replies SQL_INTEGER(unsigned) False
Retweets SQL_INTEGER(unsigned) False
Status SQL_VARCHAR(50) False
Task_Queue_Id SQL_VARCHAR(50) True
Trigger_At SQL_TIMESTAMP False
Updated_By SQL_VARCHAR(255) True
Was_Draft SQL_BIT False
www.simba.com 170
Reference Guide HubSpot Schema Tables
Broadcast_Messages_Interactions
The table below describes the Broadcast_Messages_Interactions table.
This is a virtual table, and is linked to the Broadcast_Messages table (see Broadcast_Messages on page 168).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Broadcast_GuidPrimary KeyForeign Key linked to columnBroadcast_Guid in Broadcast_Messages table
SQL_VARCHAR(50) False
Interactions_IndexPrimary Key
SQL_INTEGER(unsigned) True
Interactions_Value SQL_LONGVARCHAR(2000000)
True
www.simba.com 171
Reference Guide HubSpot Schema Tables
Calendar_Events
The table below describes the Calendar_Events table.
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
IdPrimary Key
SQL_VARCHAR(50) False
Avatar_Url SQL_VARCHAR(2000) True
Campaign_Guid SQL_VARCHAR(50) True
Category SQL_VARCHAR(50) True
Category_Id SQL_INTEGER(unsigned) True
Content_Group_Id SQL_VARCHAR(50) True
Content_Id SQL_VARCHAR(50) True
Created_By SQL_TIMESTAMP False
Description SQL_VARCHAR(3000) True
Event_Date SQL_TIMESTAMP True
Event_Type SQL_VARCHAR(50) True
Name SQL_VARCHAR(255) True
Owner_Id SQL_VARCHAR(50) True
Portal_Id SQL_VARCHAR(50) False
www.simba.com 172
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Preview_Key SQL_VARCHAR(255) True
Published_Date SQL_TIMESTAMP True
Recurring SQL_BIT True
Social_Display_Name SQL_VARCHAR(255) True
Social_Username SQL_VARCHAR(255) True
Started_Date SQL_TIMESTAMP True
State SQL_VARCHAR(50) True
Url SQL_VARCHAR(2000) True
www.simba.com 173
Reference Guide HubSpot Schema Tables
Calendar_Tasks
The table below describes the Calendar_Tasks table.
This table contains the following virtual table:
l Calendar_Tasks_Topic_Ids on page 176
This table contains the following foldable column:
l Id
The primary key columns in this table are returnable.
Column Name SQL Type Updatable Nullable
IdPrimary Key
SQL_VARCHAR(50) False False
Avatar_Url SQL_VARCHAR(2000) False True
Campaign_Guid SQL_VARCHAR(50) True False
Category SQL_VARCHAR(50) True False
Category_Id SQL_INTEGER(signed) False False
Content_Group_Id SQL_VARCHAR(50) False False
Content_Id SQL_VARCHAR(50) False False
Created_By SQL_TIMESTAMP False False
Description SQL_VARCHAR(3000) True False
Event_Date SQL_TIMESTAMP True False
Event_Type SQL_VARCHAR(50) True False
Name SQL_VARCHAR(255) True False
Owner_Id SQL_VARCHAR(50) True False
www.simba.com 174
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Portal_Id SQL_VARCHAR(50) False False
Preview_Key SQL_VARCHAR(255) False True
Published_Date SQL_TIMESTAMP False True
Recurring SQL_BIT False True
Social_Display_Name SQL_VARCHAR(255) False True
Social_Username SQL_VARCHAR(255) False True
Started_Date SQL_TIMESTAMP False True
State SQL_VARCHAR(50) True False
Url SQL_VARCHAR(2000) False True
www.simba.com 175
Reference Guide HubSpot Schema Tables
Calendar_Tasks_Topic_Ids
The table below describes the Calendar_Tasks_Topic_Ids table.
This is a virtual table, and is linked to the Calendar_Tasks table (see Calendar_Taskson page 174).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
IdPrimary KeyForeign Key linked to columnId in Calendar_Tasks table
SQL_VARCHAR(50) False
Topic_Ids_IndexPrimary Key
SQL_INTEGER(unsigned) False
Topic_Ids_Value SQL_VARCHAR(50) True
www.simba.com 176
Reference Guide HubSpot Schema Tables
Channels
The table below describes the Channels table.
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Channel_GuidPrimary Key
SQL_VARCHAR(50) True
Account_Guid SQL_VARCHAR(50) True
Account_Slug SQL_VARCHAR(255) True
Account_Type SQL_VARCHAR(50) True
Active SQL_BIT True
Avatar_Url SQL_VARCHAR(2000) True
Channel_Id SQL_VARCHAR(50) False
Channel_Key SQL_VARCHAR(255) True
Channel_Slug SQL_VARCHAR(255) True
Created_At SQL_TIMESTAMP True
Data_Map_Email SQL_VARCHAR(255) True
Data_Map_First_Name SQL_VARCHAR(255) True
Data_Map_Full_Name SQL_VARCHAR(255) True
Data_Map_Image_Url SQL_VARCHAR(2000) True
Data_Map_Last_Name SQL_VARCHAR(255) True
www.simba.com 177
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Data_Map_Page_Access_Token SQL_VARCHAR(255) True
Data_Map_Page_Category SQL_VARCHAR(255) True
Data_Map_Page_Id SQL_VARCHAR(50) True
Data_Map_Page_Name SQL_VARCHAR(255) True
Data_Map_Picture SQL_VARCHAR(255) True
Data_Map_Profile_Url SQL_VARCHAR(2000) True
Data_Map_Real_Name SQL_VARCHAR(255) True
Data_Map_User_Id SQL_VARCHAR(255) True
Data_Map_Username SQL_VARCHAR(255) True
Display_Name SQL_VARCHAR(255) True
Name SQL_VARCHAR(255) True
Portal_Id SQL_VARCHAR(50) False
Profile_Url SQL_VARCHAR(2000) True
Reach_Type SQL_VARCHAR(50) True
Remote_User_Id_For_Feed SQL_VARCHAR(255) True
Settings_Auto_Publish SQL_BIT True
Settings_Follow_Me SQL_BIT True
Settings_Hidden SQL_BIT True
Settings_Monitoring SQL_BIT True
Settings_Publish SQL_BIT True
www.simba.com 178
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Settings_Reach SQL_BIT True
Shared SQL_BIT True
Social_Intel_Details_Id SQL_VARCHAR(255) True
Social_Intel_Details_Name SQL_VARCHAR(255) True
Social_Intel_Details_Profile_Image_Url
SQL_VARCHAR(2000) True
Twitter_Id SQL_VARCHAR(50) True
Twitter_Screen_Name SQL_VARCHAR(255) True
Type SQL_VARCHAR(50) True
Updated_At SQL_TIMESTAMP True
Username SQL_VARCHAR(255) True
www.simba.com 179
Reference Guide HubSpot Schema Tables
Companies
The table below describes the Companies table.
This table contains the following virtual tables:
l Companies_Properties_Values on page 182l Companies_Additional_Domains on page 181
None of the columns in this table are updatable.
None of the columns in this table are nullable.
This table contains the following foldable column:
l Company_Id
The primary key columns in this table are returnable.
Column Name SQL Type
Company_IdPrimary Key
SQL_VARCHAR(50)
Is_Deleted SQL_BIT
Portal_Id SQL_VARCHAR(50)
www.simba.com 180
Reference Guide HubSpot Schema Tables
Companies_Additional_Domains
The table below describes the Companies_Additional_Domains table.
This is a virtual table, and is linked to the Companies table (see Companies on page180).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Company_Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Additional_Domains_IndexPrimary Key
SQL_INTEGER(unsigned) False
Company_IdPrimary KeyForeign Key linked to columnCompany_Id in Companiestable
SQL_VARCHAR(50) False
Additional_Domains_Value SQL_LONGVARCHAR(2000000)
True
www.simba.com 181
Reference Guide HubSpot Schema Tables
Companies_Properties_Values
The table below describes the Companies_Properties_Values table.
This is a virtual table, and is linked to the Companies table (see Companies on page180).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Company_Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Company_IdPrimary KeyForeign Key linked to columnCompany_Id in Companiestable
SQL_VARCHAR(50) False
Property_NamePrimary Key
SQL_VARCHAR(1024) True
Property_Value SQL_VARCHAR(1024) True
www.simba.com 182
Reference Guide HubSpot Schema Tables
Company_Properties
The table below describes the Company_Properties table.
This table contains the following virtual table:
l Company_Properties_Options on page 185
None of the columns in this table are updatable.
This table contains the following foldable column:
l Name
The primary key columns in this table are returnable.
Column Name SQL Type Nullable
NamePrimary Key
SQL_VARCHAR(255) False
Group_NameForeign Key linked to columnName in Company_Property_Groups table
SQL_VARCHAR(255) False
Calculated SQL_BIT False
Description SQL_VARCHAR(3000) False
Display_Mode SQL_VARCHAR(255) False
Display_Order SQL_INTEGER(signed) False
External_Options SQL_BIT False
Field_Type SQL_VARCHAR(255) True
Form_Field SQL_BIT False
Hidden SQL_BIT False
Hubspot_Defined SQL_BIT True
www.simba.com 183
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Label SQL_VARCHAR(2000) False
Mutable_Definition_Not_Deletable SQL_BIT False
Read_Only_Definition SQL_BIT False
Read_Only_Value SQL_BIT False
Type SQL_VARCHAR(50) False
www.simba.com 184
Reference Guide HubSpot Schema Tables
Company_Properties_Options
The table below describes the Company_Properties_Options table.
This is a virtual table, and is linked to the Company_Properties table (see Company_Properties on page 183).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Name
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
NamePrimary KeyForeign Key linked to columnName in Company_Propertiestable
SQL_VARCHAR(255) False
Options_IndexPrimary Key
SQL_INTEGER(unsigned) True
Options_Description SQL_VARCHAR(2000) True
Options_Display_Order SQL_INTEGER(signed) True
Options_Double_Data SQL_BIT True
Options_Hidden SQL_BIT True
Options_Label SQL_VARCHAR(255) True
Options_Read_Only SQL_BIT True
Options_Value SQL_VARCHAR(255) True
www.simba.com 185
Reference Guide HubSpot Schema Tables
Company_Property_Groups
The table below describes the Company_Property_Groups table.
None of the columns in this table are updatable.
None of the columns in this table are nullable.
This table contains the following foldable column:
l Name
The primary key columns in this table are returnable.
Column Name SQL Type
NamePrimary Key
SQL_VARCHAR(255)
Display_Name SQL_VARCHAR(255)
Display_Order SQL_INTEGER(signed)
Hubspot_Defined SQL_BIT
www.simba.com 186
Reference Guide HubSpot Schema Tables
Contact_Form_Submissions_Metadata
The table below describes the Contact_Form_Submissions_Metadata table.
This is a virtual table, and is linked to the Contacts_Form_Submissions table (seeContacts_Form_Submissions on page 199).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Vid
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Form_Submissions_IndexPrimary KeyForeign Key linked to columnForm_Submissions_Index inContacts_Form_Submissionstable
SQL_INTEGER(unsigned) True
Metadata_IndexPrimary Key
SQL_INTEGER(unsigned) True
VidPrimary KeyForeign Key linked to columnVid in Contacts_Form_Submissions table
SQL_VARCHAR(50) False
Metadata_Value SQL_LONGVARCHAR(2000000)
True
www.simba.com 187
Reference Guide HubSpot Schema Tables
Contact_Lists
The table below describes the Contact_Lists table.
This table contains the following virtual table:
l Contact_Lists_Filters on page 190
None of the columns in this table are foldable.
The primary key columns in this table are returnable.
Column Name SQL Type Updatable Nullable
List_IdPrimary Key
SQL_INTEGER(unsigned) False True
Created_At SQL_TIMESTAMP False True
Deleteable SQL_BIT False True
Dynamic SQL_BIT False False
Internal_List_Id SQL_VARCHAR(50) False True
List_Type SQL_VARCHAR(255) False True
Metadata_Error SQL_VARCHAR(255) False True
Metadata_Last_Processing_State_Change_At
SQL_TIMESTAMP False True
Metadata_Last_Size_Change_At
SQL_TIMESTAMP False True
Metadata_Processing SQL_VARCHAR(50) False True
Metadata_Size SQL_INTEGER(unsigned) False True
Name SQL_VARCHAR(255) True False
Portal_Id SQL_VARCHAR(50) False True
www.simba.com 188
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Updated_At SQL_TIMESTAMP False True
www.simba.com 189
Reference Guide HubSpot Schema Tables
Contact_Lists_Filters
The table below describes the Contact_Lists_Filters table.
This is a virtual table, and is linked to the Contact_Lists table (see Contact_Lists onpage 188).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Filters_IndexPrimary Key
SQL_INTEGER(unsigned) True
List_IdPrimary KeyForeign Key linked to columnList_Id in Contact_Lists table
SQL_INTEGER(unsigned) True
Filters_Filter_Family SQL_VARCHAR(255) True
Filters_Operator SQL_VARCHAR(255) True
Filters_Property SQL_VARCHAR(50) True
Filters_Type SQL_VARCHAR(50) True
Filters_Value SQL_VARCHAR(255) True
Filters_Within_Time_Mode SQL_VARCHAR(50) True
www.simba.com 190
Reference Guide HubSpot Schema Tables
Contact_Merge_Audits_Merged_From_Email_Source_Vids
The table below describes the Contact_Merge_Audits_Merged_From_Email_Source_Vids table.
This is a virtual table, and is linked to the Contacts_Merge_Audits table (see Contacts_Merge_Audits on page 203).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Vid
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Merge_Audits_IndexPrimary KeyForeign Key linked to columnMerge_Audits_Index inContacts_Merge_Audits table
SQL_INTEGER(unsigned) True
Source_Vids_IndexPrimary Key
SQL_INTEGER(unsigned) True
VidPrimary KeyForeign Key linked to columnVid in Contacts_Merge_Auditstable
SQL_VARCHAR(50) False
Source_Vids_Value SQL_INTEGER(unsigned) True
www.simba.com 191
Reference Guide HubSpot Schema Tables
Contact_Properties
The table below describes the Contact_Properties table.
This table contains the following virtual table:
l Contact_Properties_Options on page 194
This table contains the following foldable column:
l Name
The primary key columns in this table are returnable.
Column Name SQL Type Updatable Nullable
NamePrimary Key
SQL_VARCHAR(255) True False
Group_NameForeign Key linked tocolumn Name inContact_Property_Groups table
SQL_VARCHAR(255) True False
Calculated SQL_BIT False False
Deleted SQL_BIT False True
Description SQL_VARCHAR(2000) True True
Display_Mode SQL_VARCHAR(50) False False
Display_Order SQL_INTEGER(signed) True False
External_Options SQL_BIT False False
Field_Type SQL_VARCHAR(50) True True
Form_Field SQL_BIT True False
Hidden SQL_BIT False False
www.simba.com 192
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Hub_Spot_Defined SQL_BIT False True
Label SQL_VARCHAR(2000) True True
Mutable_Definition_Not_Deletable
SQL_BIT False False
Read_Only_Definition SQL_BIT False False
Read_Only_Value SQL_BIT False False
Type SQL_VARCHAR(50) True False
Updated_User_Id SQL_VARCHAR(50) False True
www.simba.com 193
Reference Guide HubSpot Schema Tables
Contact_Properties_Options
The table below describes the Contact_Properties_Options table.
This is a virtual table, and is linked to the Contact_Properties table (see Contact_Properties on page 192).
This table contains the following foldable column:
l Name
This table does not contain Return Primary Key columns.
Column Name SQL Type Updatable Nullable
NamePrimary KeyForeign Key linked tocolumn Name inContact_Propertiestable
SQL_VARCHAR(255) True False
Options_IndexPrimary Key
SQL_INTEGER(unsigned) False True
Options_Description SQL_VARCHAR(2000) False True
Options_Display_Order SQL_INTEGER(signed) False True
Options_Double_Data SQL_VARCHAR(50) False True
Options_Hidden SQL_BIT False True
Options_Label SQL_VARCHAR(255) False True
Options_Read_Only SQL_BIT False True
Options_Value SQL_VARCHAR(255) False True
www.simba.com 194
Reference Guide HubSpot Schema Tables
Contact_Properties_Values
The table below describes the Contact_Properties_Values table.
This is a virtual table, and is linked to the Contacts table (see Contacts on page 197).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Vid
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Property_NamePrimary Key
SQL_VARCHAR(1024) True
VidPrimary KeyForeign Key linked to columnVid in Contacts table
SQL_VARCHAR(50) False
Property_Value SQL_VARCHAR(1024) True
www.simba.com 195
Reference Guide HubSpot Schema Tables
Contact_Property_Groups
The table below describes the Contact_Property_Groups table.
None of the columns in this table are nullable.
None of the columns in this table are foldable.
The primary key columns in this table are returnable.
Column Name SQL Type Updatable
NamePrimary Key
SQL_VARCHAR(255) True
Display_Name SQL_VARCHAR(255) True
Display_Order SQL_INTEGER(signed) True
www.simba.com 196
Reference Guide HubSpot Schema Tables
Contacts
The table below describes the Contacts table.
This table contains the following virtual tables:
l Contact_Properties_Values on page 195l Contacts_Form_Submissions on page 199l Contacts_Merged_Vids on page 205l Contacts_List_Memberships on page 202l Contacts_Merge_Audits on page 203l Contacts_Identity_Profiles on page 200
None of the columns in this table are updatable.
This table contains the following foldable column:
l Vid
The primary key columns in this table are returnable.
Column Name SQL Type Nullable
VidPrimary Key
SQL_VARCHAR(50) False
Associated_Company_IdForeign Key linked to columnCompany_Id in Companiestable
SQL_BIGINT(unsigned) False
Added_At SQL_TIMESTAMP True
Canonical_Vid SQL_VARCHAR(50) True
Is_Contact SQL_BIT False
Portal_Id SQL_VARCHAR(50) True
Profile_Token SQL_VARCHAR(3000) False
Profile_Url SQL_VARCHAR(3000) False
www.simba.com 197
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Properties_Company_Value SQL_VARCHAR(255) False
Properties_Firstname_Value SQL_VARCHAR(255) False
Properties_Last_Modified_Date_Value
SQL_VARCHAR(255) False
Properties_Lastname_Value SQL_VARCHAR(255) False
www.simba.com 198
Reference Guide HubSpot Schema Tables
Contacts_Form_Submissions
The table below describes the Contacts_Form_Submissions table.
This is a virtual table, and is linked to the Contacts table (see Contacts on page 197).
This table contains the following virtual table:
l Contact_Form_Submissions_Metadata on page 187
None of the columns in this table are updatable.
This table contains the following foldable column:
l Vid
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Form_Submissions_IndexPrimary Key
SQL_INTEGER(unsigned) True
VidPrimary KeyForeign Key linked to columnVid in Contacts table
SQL_VARCHAR(50) False
Form_Submission_Portal_Id SQL_VARCHAR(255) True
Form_Submissions_Conversion_Id
SQL_VARCHAR(255) True
Form_Submissions_Form_Id SQL_VARCHAR(255) True
Form_Submissions_Page_Title SQL_VARCHAR(255) True
Form_Submissions_Timestamp SQL_TIMESTAMP True
Form_Submissions_Title SQL_VARCHAR(255) True
www.simba.com 199
Reference Guide HubSpot Schema Tables
Contacts_Identity_Profiles
The table below describes the Contacts_Identity_Profiles table.
This is a virtual table, and is linked to the Contacts table (see Contacts on page 197).
This table contains the following virtual table:
l Contacts_Identity_Profiles_Identities on page 201
None of the columns in this table are updatable.
This table contains the following foldable column:
l Vid
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Identity_Profiles_IndexPrimary Key
SQL_INTEGER(unsigned) True
VidPrimary KeyForeign Key linked to columnVid in Contacts table
SQL_VARCHAR(50) False
Identity_Profiles_Deleted_Changed_Timestamp
SQL_TIMESTAMP True
Identity_Profiles_Saved_At_Timestamp
SQL_TIMESTAMP True
www.simba.com 200
Reference Guide HubSpot Schema Tables
Contacts_Identity_Profiles_Identities
The table below describes the Contacts_Identity_Profiles_Identities table.
This is a virtual table, and is linked to the Contacts_Identity_Profiles table (seeContacts_Identity_Profiles on page 200).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Vid
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Identities_IndexPrimary Key
SQL_INTEGER(unsigned) True
Identity_Profiles_IndexPrimary KeyForeign Key linked to columnIdentity_Profiles_Index inContacts_Identity_Profiles table
SQL_INTEGER(unsigned) True
VidPrimary KeyForeign Key linked to columnVid in Contacts_Identity_Profiles table
SQL_VARCHAR(50) False
Identities_Timestamp SQL_TIMESTAMP True
Identities_Type SQL_VARCHAR(255) True
Identities_Value SQL_VARCHAR(255) True
www.simba.com 201
Reference Guide HubSpot Schema Tables
Contacts_List_Memberships
The table below describes the Contacts_List_Memberships table.
This is a virtual table, and is linked to the Contacts table (see Contacts on page 197).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Vid
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
List_Memberships_IndexPrimary Key
SQL_INTEGER(unsigned) True
VidPrimary KeyForeign Key linked to columnVid in Contacts table
SQL_VARCHAR(50) False
List_Memberships_Internal_List_Id
SQL_VARCHAR(50) True
List_Memberships_Is_Member SQL_BIT True
List_Memberships_Static_List_Id SQL_VARCHAR(50) True
List_Memberships_Timestamp SQL_TIMESTAMP True
www.simba.com 202
Reference Guide HubSpot Schema Tables
Contacts_Merge_Audits
The table below describes the Contacts_Merge_Audits table.
This is a virtual table, and is linked to the Contacts table (see Contacts on page 197).
This table contains the following virtual table:
l Contact_Merge_Audits_Merged_From_Email_Source_Vids on page 191
None of the columns in this table are updatable.
This table contains the following foldable column:
l Vid
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Merge_Audits_IndexPrimary Key
SQL_INTEGER(unsigned) True
VidPrimary KeyForeign Key linked to columnVid in Contacts table
SQL_VARCHAR(50) False
Merge_Audits_Canonical_Vid SQL_VARCHAR(50) True
Merge_Audits_Entity_Id SQL_VARCHAR(255) True
Merge_Audits_First_Name SQL_VARCHAR(255) True
Merge_Audits_Last_Name SQL_VARCHAR(255) True
Merge_Audits_Num_Properties_Moved
SQL_INTEGER(unsigned) True
Merge_Audits_Timestamp SQL_TIMESTAMP True
Merge_Audits_Vid_To_Merge SQL_VARCHAR(50) True
Merged_From_Email_Source_Id SQL_VARCHAR(255) True
www.simba.com 203
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Merged_From_Email_Source_Label
SQL_VARCHAR(255) True
Merged_From_Email_Source_Selected
SQL_BIT True
Merged_From_Email_Source_Timestamp
SQL_TIMESTAMP True
Merged_From_Email_Source_Type
SQL_VARCHAR(255) True
Merged_From_Email_Value SQL_VARCHAR(255) True
Merged_To_Email_Source_Id SQL_VARCHAR(255) True
Merged_To_Email_Source_Label SQL_VARCHAR(255) True
Merged_To_Email_Source_Selected
SQL_BIT True
Merged_To_Email_Source_Timestamp
SQL_TIMESTAMP True
Merged_To_Email_Source_Type SQL_VARCHAR(255) True
Merged_To_Email_Value SQL_VARCHAR(255) True
www.simba.com 204
Reference Guide HubSpot Schema Tables
Contacts_Merged_Vids
The table below describes the Contacts_Merged_Vids table.
This is a virtual table, and is linked to the Contacts table (see Contacts on page 197).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Vid
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Merged_Vids_IndexPrimary Key
SQL_INTEGER(unsigned) True
VidPrimary KeyForeign Key linked to columnVid in Contacts table
SQL_VARCHAR(50) False
Merged_Vids_Value SQL_VARCHAR(50) True
www.simba.com 205
Reference Guide HubSpot Schema Tables
Current_Enrollments
The table below describes the Current_Enrollments table.
This table contains the following virtual tables:
l Current_Enrollments_Triggers on page 228l Current_Enrollments_Trigger_Set on page 227l Current_Enrollments_Unenrollment_Setting_Excluded_Workflows on page 229l Current_Enrollments_Suppression_Setting_Excluded_List_Ids on page 226l Current_Enrollments_Goal_List_Excluded_List_Ids on page 209l Current_Enrollments_Reenrollment_TriggerSet on page 210l Current_Enrollments_Steps on page 211
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Allow_Contact_To_Trigger_Multiple_Times
SQL_BIT True
Author SQL_VARCHAR(255) True
Can_Enroll_From_Salesforce SQL_BIT True
Contact_Id SQL_VARCHAR(255) True
Contact_Lists_Completed_List_Id SQL_INTEGER(unsigned) True
Contact_Lists_Enrolled_List_Id SQL_INTEGER(unsigned) True
Contact_Lists_Succeeded_List_Id
SQL_INTEGER(unsigned) True
Description SQL_VARCHAR(2000) True
Enable SQL_BIT True
www.simba.com 206
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Enroll_On_Criteria_Update SQL_BIT True
Event_Anchor_Static_Date_Anchor
SQL_VARCHAR(255) True
Goal_Criteria_Enabled SQL_BIT True
Id SQL_VARCHAR(255) True
Inserted_At SQL_TIMESTAMP True
Internal_Starting_List_H_base_Id SQL_INTEGER(unsigned) True
Internal_Starting_List_Id SQL_INTEGER(unsigned) True
Is_Segment_Based SQL_BIT True
Listening SQL_BIT True
Name SQL_VARCHAR(255) True
Nurture_Time_Range_Enabled SQL_BIT True
Nurture_Time_Range_Start_Hour SQL_INTEGER(unsigned) True
Nurture_Time_Range_Stop_Hour SQL_INTEGER(unsigned) True
Only_Enrolls_Manually SQL_BIT True
Only_Exec_On_Biz_Days SQL_BIT True
Portal_Id SQL_VARCHAR(255) True
Recurring_Setting_Type SQL_VARCHAR(50) True
Type SQL_VARCHAR(50) True
Unenrollment_Setting_Excluded_Workflows
SQL_BIGINT(unsigned) True
www.simba.com 207
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Unenrollment_Setting_Type SQL_VARCHAR(50) True
Updated_At SQL_TIMESTAMP True
www.simba.com 208
Reference Guide HubSpot Schema Tables
Current_Enrollments_Goal_List_Excluded_List_Ids
The table below describes the Current_Enrollments_Goal_List_Excluded_List_Idstable.
This is a virtual table, and is linked to the Current_Enrollments table (see Current_Enrollments on page 206).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Contact_IdPrimary KeyForeign Key linked to columnContact_Id in Current_Enrollments table
SQL_VARCHAR(255) True
Goal_List_Excluded_List_Ids_Index
Primary Key
SQL_INTEGER(unsigned) True
IdPrimary KeyForeign Key linked to columnId in Current_Enrollments table
SQL_VARCHAR(255) True
Goal_List_Excluded_List_Ids_Value
SQL_INTEGER(unsigned) True
www.simba.com 209
Reference Guide HubSpot Schema Tables
Current_Enrollments_Reenrollment_TriggerSet
The table below describes the Current_Enrollments_Reenrollment_TriggerSet table.
This is a virtual table, and is linked to the Current_Enrollments table (see Current_Enrollments on page 206).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Contact_IdPrimary KeyForeign Key linked to columnContact_Id in Current_Enrollments table
SQL_VARCHAR(255) True
IdPrimary KeyForeign Key linked to columnId in Current_Enrollments table
SQL_VARCHAR(255) True
Reenrollment_TriggerSet_IndexPrimary Key
SQL_INTEGER(unsigned) True
Reenrollment_TriggerSet_Value SQL_INTEGER(unsigned) True
www.simba.com 210
Reference Guide HubSpot Schema Tables
Current_Enrollments_Steps
The table below describes the Current_Enrollments_Steps table.
This is a virtual table, and is linked to the Current_Enrollments table (see Current_Enrollments on page 206).
This table contains the following virtual tables:
l Current_Enrollments_Steps_Notification_Actions on page 216l Current_Enrollments_Steps_Sms_Notification_Actions on page 220l Current_Enrollments_Steps_Set_Company_Property_Actions on page 218l Current_Enrollments_Steps_Workflow_Enrollment_Actions on page 224l Current_Enrollments_Steps_Increment_Company_Property_Actions on page214
l Current_Enrollments_Steps_Task_Actions on page 222
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Contact_IdPrimary KeyForeign Key linked to columnContact_Id in Current_Enrollments table
SQL_VARCHAR(255) True
IdPrimary KeyForeign Key linked to columnId in Current_Enrollmentstable
SQL_VARCHAR(255) True
Steps_IdPrimary Key
SQL_INTEGER(unsigned) True
Steps_Add_Company_Enum_Option_Actions
SQL_LONGVARCHAR(2000000)
True
www.simba.com 211
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Steps_Add_Contact_Enum_Option_Actions
SQL_LONGVARCHAR(2000000)
True
Steps_Add_Subtract_Property_Actions
SQL_LONGVARCHAR(2000000)
True
Steps_Anchor_Setting_Boundary SQL_VARCHAR(255) True
Steps_Anchor_Setting_Exec_Time_Of_Day
SQL_VARCHAR(255) True
Steps_Branch_Condition_Accept_Steps
SQL_LONGVARCHAR(2000000)
True
Steps_Branch_Condition_Filters_List_H_Base_Id
SQL_INTEGER(unsigned) True
Steps_Branch_Condition_Filters_List_Id
SQL_INTEGER(unsigned) True
Steps_Branch_Condition_Reject_Steps
SQL_LONGVARCHAR(2000000)
True
Steps_Campaign_Membership_Actions
SQL_LONGVARCHAR(2000000)
True
Steps_Copy_Company_Property_Actions
SQL_LONGVARCHAR(2000000)
True
Steps_Copy_Property_Actions SQL_LONGVARCHAR(2000000)
True
Steps_Create_Sfdc_Task_Actions SQL_LONGVARCHAR(2000000)
True
Steps_Date_Stamp_Property_Actions
SQL_LONGVARCHAR(2000000)
True
www.simba.com 212
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Steps_Deal_Actions SQL_LONGVARCHAR(2000000)
True
Steps_Delay_Millis SQL_BIGINT(unsigned) True
Steps_Email_Actions SQL_LONGVARCHAR(2000000)
True
Steps_Lead_Assignment_Actions SQL_LONGVARCHAR(2000000)
True
Steps_ListId SQL_INTEGER(unsigned) True
Steps_List_Actions SQL_LONGVARCHAR(2000000)
True
Steps_Sales_Force_Actions SQL_LONGVARCHAR(2000000)
True
Steps_Set_Contact_Property_Actions
SQL_LONGVARCHAR(2000000)
True
Steps_Webhook_Actions SQL_LONGVARCHAR(2000000)
True
www.simba.com 213
Reference Guide HubSpot Schema Tables
Current_Enrollments_Steps_Increment_Company_Property_Actions
The table below describes the Current_Enrollments_Steps_Increment_Company_Property_Actions table.
This is a virtual table, and is linked to the Current_Enrollments_Steps table (seeCurrent_Enrollments_Steps on page 211).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Contact_IdPrimary KeyForeign Key linked to columnContact_Id in Current_Enrollments_Steps table
SQL_VARCHAR(255) True
IdPrimary KeyForeign Key linked to columnId in Current_Enrollments_Steps table
SQL_VARCHAR(255) True
Increment_Company_Property_Actions_Index
Primary Key
SQL_INTEGER(unsigned) True
Steps_IdPrimary KeyForeign Key linked to columnSteps_Id in Current_Enrollments_Steps table
SQL_INTEGER(unsigned) True
Increment_Company_Property_Actions_Base_Id
SQL_BIGINT(unsigned) True
www.simba.com 214
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Increment_Company_Property_Actions_Base_Name
SQL_VARCHAR(255) True
Increment_Company_Property_Actions_Base_Order
SQL_INTEGER(unsigned) True
Increment_Company_Property_Actions_Base_Type
SQL_VARCHAR(50) True
Increment_Company_Property_Actions_Property_Name
SQL_VARCHAR(255) True
Increment_Company_Property_Actions_Value_To_Modify_Property_By
SQL_BIGINT(unsigned) True
www.simba.com 215
Reference Guide HubSpot Schema Tables
Current_Enrollments_Steps_Notification_Actions
The table below describes the Current_Enrollments_Steps_Notification_Actions table.
This is a virtual table, and is linked to the Current_Enrollments_Steps table (seeCurrent_Enrollments_Steps on page 211).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Contact_IdPrimary KeyForeign Key linked to columnContact_Id in Current_Enrollments_Steps table
SQL_VARCHAR(255) True
IdPrimary KeyForeign Key linked to columnId in Current_Enrollments_Steps table
SQL_VARCHAR(255) True
Notification_Actions_IndexPrimary Key
SQL_INTEGER(unsigned) True
Steps_IdPrimary KeyForeign Key linked to columnSteps_Id in Current_Enrollments_Steps table
SQL_INTEGER(unsigned) True
Notification_Actions_Base_Id SQL_BIGINT(unsigned) True
Notification_Actions_Base_Name SQL_VARCHAR(255) True
Notification_Actions_Base_Order SQL_INTEGER(unsigned) True
Notification_Actions_Base_Type SQL_VARCHAR(255) True
www.simba.com 216
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Notification_Actions_Email_Campaign_Id
SQL_BIGINT(unsigned) True
Notification_Actions_Email_Content_Id
SQL_BIGINT(unsigned) True
Notification_Actions_Static_Recipient
SQL_VARCHAR(255) True
www.simba.com 217
Reference Guide HubSpot Schema Tables
Current_Enrollments_Steps_Set_Company_Property_Actions
The table below describes the Current_Enrollments_Steps_Set_Company_Property_Actions table.
This is a virtual table, and is linked to the Current_Enrollments_Steps table (seeCurrent_Enrollments_Steps on page 211).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Contact_IdPrimary KeyForeign Key linked to columnContact_Id in Current_Enrollments_Steps table
SQL_VARCHAR(255) True
IdPrimary KeyForeign Key linked to columnId in Current_Enrollments_Steps table
SQL_VARCHAR(255) True
Set_Company_Property_Actions_Index
Primary Key
SQL_INTEGER(unsigned) True
Steps_IdPrimary KeyForeign Key linked to columnSteps_Id in Current_Enrollments_Steps table
SQL_INTEGER(unsigned) True
Set_Company_Property_Actions_Base_Id
SQL_BIGINT(unsigned) True
www.simba.com 218
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Set_Company_Property_Actions_Base_Order
SQL_INTEGER(unsigned) True
Set_Company_Property_Actions_Base_Type
SQL_VARCHAR(255) True
Set_Company_Property_Actions_New_Value
SQL_VARCHAR(255) True
Set_Company_Property_Actions_Property_Name
SQL_VARCHAR(255) True
www.simba.com 219
Reference Guide HubSpot Schema Tables
Current_Enrollments_Steps_Sms_Notification_Actions
The table below describes the Current_Enrollments_Steps_Sms_Notification_Actionstable.
This is a virtual table, and is linked to the Current_Enrollments_Steps table (seeCurrent_Enrollments_Steps on page 211).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Contact_IdPrimary KeyForeign Key linked to columnContact_Id in Current_Enrollments_Steps table
SQL_VARCHAR(255) True
IdPrimary KeyForeign Key linked to columnId in Current_Enrollments_Steps table
SQL_VARCHAR(255) True
Sms_Notification_Actions_IndexPrimary Key
SQL_INTEGER(unsigned) True
Steps_IdPrimary KeyForeign Key linked to columnSteps_Id in Current_Enrollments_Steps table
SQL_INTEGER(unsigned) True
Sms_Notification_Actions_Base_Id SQL_INTEGER(unsigned) True
Sms_Notification_Actions_Base_Name
SQL_VARCHAR(255) True
www.simba.com 220
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Sms_Notification_Actions_Base_Order
SQL_INTEGER(unsigned) True
Sms_Notification_Actions_Base_Type
SQL_VARCHAR(255) True
Sms_Notification_Actions_Body SQL_VARCHAR(3000) True
Sms_Notification_Actions_Static_To
SQL_VARCHAR(255) True
www.simba.com 221
Reference Guide HubSpot Schema Tables
Current_Enrollments_Steps_Task_Actions
The table below describes the Current_Enrollments_Steps_Task_Actions table.
This is a virtual table, and is linked to the Current_Enrollments_Steps table (seeCurrent_Enrollments_Steps on page 211).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Contact_IdPrimary KeyForeign Key linked to columnContact_Id in Current_Enrollments_Steps table
SQL_VARCHAR(255) True
IdPrimary KeyForeign Key linked to columnId in Current_Enrollments_Steps table
SQL_VARCHAR(255) True
Steps_IdPrimary KeyForeign Key linked to columnSteps_Id in Current_Enrollments_Steps table
SQL_INTEGER(unsigned) True
Task_Actions_IndexPrimary Key
SQL_INTEGER(unsigned) True
Task_Actions_Assign_Current_Owner
SQL_BIT True
Task_Actions_Base_Id SQL_BIGINT(unsigned) True
Task_Actions_Base_Order SQL_INTEGER(unsigned) True
Task_Actions_Base_Type SQL_VARCHAR(255) True
www.simba.com 222
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Task_Actions_Description SQL_VARCHAR(3000) True
Task_Actions_Due_Days SQL_INTEGER(unsigned) True
Task_Actions_Owner_Id SQL_VARCHAR(50) True
Task_Actions_Status SQL_VARCHAR(50) True
www.simba.com 223
Reference Guide HubSpot Schema Tables
Current_Enrollments_Steps_Workflow_Enrollment_Actions
The table below describes the Current_Enrollments_Steps_Workflow_Enrollment_Actions table.
This is a virtual table, and is linked to the Current_Enrollments_Steps table (seeCurrent_Enrollments_Steps on page 211).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Contact_IdPrimary KeyForeign Key linked to columnContact_Id in Current_Enrollments_Steps table
SQL_VARCHAR(255) True
IdPrimary KeyForeign Key linked to columnId in Current_Enrollments_Steps table
SQL_VARCHAR(255) True
Steps_IdPrimary KeyForeign Key linked to columnSteps_Id in Current_Enrollments_Steps table
SQL_INTEGER(unsigned) True
Workflow_Enrollment_Actions_Index
Primary Key
SQL_INTEGER(unsigned) True
Workflow_Enrollment_Actions_Base_Id
SQL_BIGINT(unsigned) True
www.simba.com 224
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Workflow_Enrollment_Actions_Base_Name
SQL_VARCHAR(50) True
Workflow_Enrollment_Actions_Base_Order
SQL_INTEGER(unsigned) True
Workflow_Enrollment_Actions_Base_Type
SQL_VARCHAR(50) True
Workflow_Enrollment_Actions_Workflow_Id
SQL_BIGINT(unsigned) True
www.simba.com 225
Reference Guide HubSpot Schema Tables
Current_Enrollments_Suppression_Setting_Excluded_List_Ids
The table below describes the Current_Enrollments_Suppression_Setting_Excluded_List_Ids table.
This is a virtual table, and is linked to the Current_Enrollments table (see Current_Enrollments on page 206).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Contact_IdPrimary KeyForeign Key linked to columnContact_Id in Current_Enrollments table
SQL_VARCHAR(255) True
IdPrimary KeyForeign Key linked to columnId in Current_Enrollments table
SQL_VARCHAR(255) True
Suppression_Setting_Excluded_List_Ids_Index
Primary Key
SQL_INTEGER(unsigned) True
Suppression_Setting_Excluded_List_Ids_Value
SQL_INTEGER(unsigned) True
www.simba.com 226
Reference Guide HubSpot Schema Tables
Current_Enrollments_Trigger_Set
The table below describes the Current_Enrollments_Trigger_Set table.
This is a virtual table, and is linked to the Current_Enrollments table (see Current_Enrollments on page 206).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Contact_IdPrimary KeyForeign Key linked to columnContact_Id in Current_Enrollments table
SQL_VARCHAR(255) True
IdPrimary KeyForeign Key linked to columnId in Current_Enrollments table
SQL_VARCHAR(255) True
Trigger_Set_Index SQL_INTEGER(unsigned) True
Trigger_Set_Value SQL_VARCHAR(255) True
www.simba.com 227
Reference Guide HubSpot Schema Tables
Current_Enrollments_Triggers
The table below describes the Current_Enrollments_Triggers table.
This is a virtual table, and is linked to the Current_Enrollments table (see Current_Enrollments on page 206).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Contact_IdPrimary KeyForeign Key linked to columnContact_Id in Current_Enrollments table
SQL_VARCHAR(255) True
IdPrimary KeyForeign Key linked to columnId in Current_Enrollmentstable
SQL_VARCHAR(255) True
Triggers_IndexPrimary Key
SQL_INTEGER(unsigned) True
Triggers_Value SQL_LONGVARCHAR(2000000)
True
www.simba.com 228
Reference Guide HubSpot Schema Tables
Current_Enrollments_Unenrollment_Setting_Excluded_Workflows
The table below describes the Current_Enrollments_Unenrollment_Setting_Excluded_Workflows table.
This is a virtual table, and is linked to the Current_Enrollments table (see Current_Enrollments on page 206).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Contact_IdPrimary KeyForeign Key linked to columnContact_Id in Current_Enrollments table
SQL_VARCHAR(255) True
Excluded_Workflows_IndexPrimary Key
SQL_INTEGER(unsigned) True
IdPrimary KeyForeign Key linked to columnId in Current_Enrollments table
SQL_VARCHAR(255) True
Excluded_Workflows_Value SQL_INTEGER(unsigned) True
www.simba.com 229
Reference Guide HubSpot Schema Tables
Deal_Associations_Associated_Company_Ids
The table below describes the Deal_Associations_Associated_Company_Ids table.
This is a virtual table, and is linked to the All_Deals table (see All_Deals on page 122).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Deal_Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Associated_Company_Ids_IndexPrimary Key
SQL_INTEGER(unsigned) True
Deal_IdPrimary KeyForeign Key linked to columnDeal_Id in Deals table
SQL_VARCHAR(50) False
Associated_Company_Ids_Value SQL_VARCHAR(255) True
www.simba.com 230
Reference Guide HubSpot Schema Tables
Deal_Associations_Associated_Deal_Ids
The table below describes the Deal_Associations_Associated_Deal_Ids table.
This is a virtual table, and is linked to the All_Deals table (see All_Deals on page 122).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Deal_Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Associated_Deal_Ids_IndexPrimary Key
SQL_INTEGER(unsigned) True
Deal_IdPrimary KeyForeign Key linked to columnDeal_Id in Deals table
SQL_VARCHAR(50) False
Associated_Deal_Ids_Value SQL_VARCHAR(255) True
www.simba.com 231
Reference Guide HubSpot Schema Tables
Deal_Associations_Associated_Vids
The table below describes the Deal_Associations_Associated_Vids table.
This is a virtual table, and is linked to the All_Deals table (see All_Deals on page 122).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Deal_Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Associated_Vids_IndexPrimary Key
SQL_INTEGER(unsigned) True
Deal_IdPrimary KeyForeign Key linked to columnDeal_Id in Deals table
SQL_VARCHAR(50) False
Associated_Vids_Value SQL_VARCHAR(255) True
www.simba.com 232
Reference Guide HubSpot Schema Tables
Deal_Imports
The table below describes the Deal_Imports table.
This is a virtual table, and is linked to the All_Deals table (see All_Deals on page 122).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Deal_Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Deal_IdPrimary KeyForeign Key linked to columnDeal_Id in Deals table
SQL_VARCHAR(50) False
Imports_IndexPrimary Key
SQL_INTEGER(unsigned) True
Imports_Value SQL_LONGVARCHAR(2000000)
True
www.simba.com 233
Reference Guide HubSpot Schema Tables
Deal_Pipelines
The table below describes the Deal_Pipelines table.
This table contains the following virtual table:
l Deal_Pipelines_Stages on page 235
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Pipeline_IdPrimary Key
SQL_VARCHAR(50) False
Active SQL_BIT True
Display_Order SQL_INTEGER(signed) True
Label SQL_VARCHAR(255) True
www.simba.com 234
Reference Guide HubSpot Schema Tables
Deal_Pipelines_Stages
The table below describes the Deal_Pipelines_Stages table.
This is a virtual table, and is linked to the Deal_Pipelines table (see Deal_Pipelines onpage 234).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Pipeline_IdPrimary KeyForeign Key linked to columnPipeline_Id in Deal_Pipelinestable
SQL_VARCHAR(50) False
Stages_IndexPrimary Key
SQL_INTEGER(unsigned) True
Stage_Id SQL_VARCHAR(50) True
Stages_Active SQL_BIT True
Stages_Display_Order SQL_INTEGER(signed) True
Stages_Label SQL_VARCHAR(255) True
Stages_Probability SQL_NUMERIC(38,2) True
stages_Closed_Won SQL_BIT True
www.simba.com 235
Reference Guide HubSpot Schema Tables
Deal_Properties
The table below describes the Deal_Properties table.
This table contains the following virtual table:
l Deal_Properties_Options on page 238
None of the columns in this table are foldable.
The primary key columns in this table are returnable.
Column Name SQL Type Updatable Nullable
NamePrimary Key
SQL_VARCHAR(255) True False
Group_NameForeign Key linked tocolumn Name inDeal_Property_Groups table
SQL_VARCHAR(255) True False
Calculated SQL_BIT True False
Description SQL_VARCHAR(2000) True True
Display_Mode SQL_VARCHAR(50) True False
Display_Order SQL_INTEGER(signed) True False
External_Options SQL_BIT True False
Field_Type SQL_VARCHAR(50) True True
Form_Field SQL_BIT True False
Hidden SQL_BIT True False
Hub_Spot_Defined SQL_BIT False True
Label SQL_VARCHAR(255) True True
www.simba.com 236
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Mutable_Definition_Not_Deletable
SQL_BIT True False
Read_Only_Definition SQL_BIT False True
Readonly_Value SQL_BIT False True
Type SQL_VARCHAR(50) True False
www.simba.com 237
Reference Guide HubSpot Schema Tables
Deal_Properties_Options
The table below describes the Deal_Properties_Options table.
This is a virtual table, and is linked to the Deal_Properties table (see Deal_Propertieson page 236).
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Updatable Nullable
NamePrimary KeyForeign Key linked tocolumn Name inDeal_Properties table
SQL_VARCHAR(255) True False
Options_IndexPrimary Key
SQL_INTEGER(unsigned) False True
Options_Description SQL_VARCHAR(255) False True
Options_Display_Order SQL_INTEGER(signed) False True
Options_Double_Data SQL_BIT False True
Options_Hidden SQL_BIT False True
Options_Label SQL_VARCHAR(255) False True
Options_Read_Only SQL_BIT False True
Options_Value SQL_VARCHAR(255) False True
www.simba.com 238
Reference Guide HubSpot Schema Tables
Deal_Properties_Values
The table below describes the Deal_Properties_Values table.
This is a virtual table, and is linked to the All_Deals table (see All_Deals on page 122).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Deal_Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Deal_IdPrimary KeyForeign Key linked to columnDeal_Id in All_Deals table
SQL_VARCHAR(50) False
Property_NamePrimary Key
SQL_VARCHAR(1024) True
Property_Value SQL_VARCHAR(1024) True
www.simba.com 239
Reference Guide HubSpot Schema Tables
Deal_Property_Groups
The table below describes the Deal_Property_Groups table.
None of the columns in this table are foldable.
The primary key columns in this table are returnable.
Column Name SQL Type Updatable Nullable
NamePrimary Key
SQL_VARCHAR(255) True False
Display_Name SQL_VARCHAR(255) True True
Display_Order SQL_INTEGER(signed) True False
Hubspot_Defined SQL_BIT False True
www.simba.com 240
Reference Guide HubSpot Schema Tables
Deals
The table below describes the Deals table.
This table contains the following virtual tables:
l Deals_Associations_Associated_Deal_Ids on page 244l Deals_Associations_Associated_Vids on page 245l Deals_Associations_Associated_Company_Ids on page 243l Deals_Imports on page 246
None of the columns in this table are updatable.
This table contains the following foldable column:
l Deal_Id
The primary key columns in this table are returnable.
Column Name SQL Type Nullable
Deal_IdPrimary Key
SQL_VARCHAR(50) False
Is_Deleted SQL_BIT False
Portal_Id SQL_VARCHAR(50) False
Properties_Amount_Source SQL_VARCHAR(255) False
Properties_Amount_Source_Id SQL_VARCHAR(255) False
Properties_Amount_Timestamp SQL_TIMESTAMP True
Properties_Amount_Value SQL_VARCHAR(255) True
Properties_Close_Date_Source SQL_VARCHAR(255) False
Properties_Close_Date_Source_Id
SQL_VARCHAR(255) False
Properties_Close_Date_Timestamp
SQL_TIMESTAMP True
www.simba.com 241
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Properties_Close_Date_Value SQL_VARCHAR(255) True
Properties_Create_Date_Source SQL_VARCHAR(255) False
Properties_Create_Date_Source_Id
SQL_VARCHAR(255) False
Properties_Create_Date_Timestamp
SQL_TIMESTAMP True
Properties_Create_Date_Value SQL_VARCHAR(255) True
Properties_Deal_Name_Source SQL_VARCHAR(255) False
Properties_Deal_Name_Source_Id
SQL_VARCHAR(255) False
Properties_Deal_Name_Timestamp
SQL_TIMESTAMP True
Properties_Deal_Name_Value SQL_VARCHAR(255) True
Properties_Deal_Stage_Source SQL_VARCHAR(255) False
Properties_Deal_Stage_Source_Id
SQL_VARCHAR(255) False
Properties_Deal_Stage_Timestamp
SQL_TIMESTAMP True
Properties_Deal_Stage_Value SQL_VARCHAR(255) True
Properties_Pipeline_Source SQL_VARCHAR(255) False
Properties_Pipeline_Source_Id SQL_VARCHAR(255) False
Properties_Pipeline_Timestamp SQL_TIMESTAMP True
Properties_Pipeline_Value SQL_VARCHAR(255) True
www.simba.com 242
Reference Guide HubSpot Schema Tables
Deals_Associations_Associated_Company_Ids
The table below describes the Deals_Associations_Associated_Company_Ids table.
This is a virtual table, and is linked to the Deals table (see Deals on page 241).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Deal_Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Associated_Company_Ids_IndexPrimary Key
SQL_INTEGER(unsigned) True
Deal_IdPrimary KeyForeign Key linked to columnDeal_Id in Deals table
SQL_VARCHAR(50) False
Associated_Company_Ids_Value SQL_VARCHAR(255) True
www.simba.com 243
Reference Guide HubSpot Schema Tables
Deals_Associations_Associated_Deal_Ids
The table below describes the Deals_Associations_Associated_Deal_Ids table.
This is a virtual table, and is linked to the Deals table (see Deals on page 241).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Deal_Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Associated_Deal_Ids_IndexPrimary Key
SQL_INTEGER(unsigned) True
Deal_IdPrimary KeyForeign Key linked to columnDeal_Id in Deals table
SQL_VARCHAR(50) False
Associated_Deal_Ids_Value SQL_VARCHAR(255) True
www.simba.com 244
Reference Guide HubSpot Schema Tables
Deals_Associations_Associated_Vids
The table below describes the Deals_Associations_Associated_Vids table.
This is a virtual table, and is linked to the Deals table (see Deals on page 241).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Deal_Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Associated_Vids_IndexPrimary Key
SQL_INTEGER(unsigned) True
Deal_IdPrimary KeyForeign Key linked to columnDeal_Id in Deals table
SQL_VARCHAR(50) False
Associated_Vids_Value SQL_VARCHAR(255) True
www.simba.com 245
Reference Guide HubSpot Schema Tables
Deals_Imports
The table below describes the Deals_Imports table.
This is a virtual table, and is linked to the Deals table (see Deals on page 241).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Deal_Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Deal_IdPrimary KeyForeign Key linked to columnDeal_Id in Deals table
SQL_VARCHAR(50) False
Imports_IndexPrimary Key
SQL_INTEGER(unsigned) True
Imports_Value SQL_LONGVARCHAR(2000000)
True
www.simba.com 246
Reference Guide HubSpot Schema Tables
Domains
The table below describes the Domains table.
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
IdPrimary Key
SQL_VARCHAR(50) False
Actual_Cname SQL_VARCHAR(255) True
Actual_Ip SQL_VARCHAR(255) True
Added_To_Waf SQL_BIT True
Consecutive_Non_Resolving_Count
SQL_INTEGER(unsigned) True
Cos_Object_Type_Id SQL_VARCHAR(255) True
Created SQL_TIMESTAMP True
Deletable SQL_BIT True
Domain SQL_VARCHAR(1024) True
Is_Any_Primary SQL_BIT True
Is_Dns_Correct SQL_BIT True
Is_Internal_Domain SQL_BIT True
Is_Legacy SQL_BIT True
Is_Legacy_Domain SQL_BIT True
www.simba.com 247
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Is_Resolving SQL_BIT True
Is_Ssl_Enabled SQL_BIT True
Is_Ssl_Only SQL_BIT True
Label SQL_VARCHAR(255) True
Manually_Marked_As_Resolving SQL_BIT True
Mark_Ssl_Only_After_Provisioning
SQL_BIT True
Portal_Id SQL_VARCHAR(50) True
Primary_Blog SQL_BIT True
Primary_Blog_Post SQL_BIT True
Primary_Click_Tracking SQL_BIT True
Primary_Email SQL_BIT True
Primary_Landing_Page SQL_BIT True
Primary_Legacy_Page SQL_BIT True
Primary_Site_Page SQL_BIT True
Secondary_To_Domain SQL_VARCHAR(255) True
Site_Id SQL_VARCHAR(50) True
Updated SQL_TIMESTAMP True
www.simba.com 248
Reference Guide HubSpot Schema Tables
File_Metadata
The table below describes the File_Metadata table.
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
The primary key columns in this table are returnable.
Column Name SQL Type Nullable
IdPrimary Key
SQL_VARCHAR(50) False
Folder_IdForeign Key linked to columnId in Folder_Metadata table
SQL_VARCHAR(50) True
Alt_Key SQL_VARCHAR(255) True
Alt_Key_Hash SQL_VARCHAR(255) True
Alt_Url SQL_VARCHAR(2000) True
Archived SQL_BIT True
Cloud_Key SQL_VARCHAR(255) True
Cloud_Key_Hash SQL_VARCHAR(255) True
Containing_Folder_Id SQL_VARCHAR(50) True
Created SQL_TIMESTAMP False
Deleted SQL_BIT False
Deleted_At SQL_TIMESTAMP False
Encoding SQL_VARCHAR(50) True
www.simba.com 249
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Extension SQL_VARCHAR(50) True
Friendly_Url SQL_VARCHAR(2000) True
Height SQL_INTEGER(unsigned) True
Hidden SQL_BIT False
Is_Cta_Image SQL_BIT True
Last_Used SQL_TIMESTAMP True
Meta_Thumbs_Icon_Cloud_Key SQL_VARCHAR(255) True
Meta_Thumbs_Icon_Friendly_Url SQL_VARCHAR(255) True
Meta_Thumbs_Icon_Image_Name SQL_VARCHAR(255) True
Meta_Thumbs_Icon_S3_Url SQL_VARCHAR(2000) True
Meta_Thumbs_Medium_Cloud_Key
SQL_VARCHAR(255) True
Meta_Thumbs_Medium_Friendly_Url
SQL_VARCHAR(2000) True
Meta_Thumbs_Medium_Image_Name
SQL_VARCHAR(255) True
Meta_Thumbs_Medium_S3_Url SQL_VARCHAR(2000) True
Meta_Thumbs_Thumb_Cloud_Key
SQL_VARCHAR(255) True
Meta_Thumbs_Thumb_Friendly_Url
SQL_VARCHAR(2000) True
Meta_Thumbs_Thumb_Image_Name
SQL_VARCHAR(255) True
www.simba.com 250
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Meta_Thumbs_Thumb_S3_Url SQL_VARCHAR(2000) True
Meta_Url_scheme SQL_VARCHAR(255) True
Name SQL_VARCHAR(255) True
Portal_Id SQL_VARCHAR(50) False
Rs_Uploaded_At SQL_TIMESTAMP True
Rs_Url SQL_VARCHAR(2000) True
S3_Uploaded_At SQL_TIMESTAMP True
S3_Url SQL_VARCHAR(2000) True
Size SQL_INTEGER(unsigned) True
Synced SQL_BIT True
Title SQL_VARCHAR(50) True
Type SQL_VARCHAR(50) True
Updated SQL_TIMESTAMP False
Url SQL_VARCHAR(2000) True
Version SQL_INTEGER(unsigned) True
Width SQL_INTEGER(unsigned) True
www.simba.com 251
Reference Guide HubSpot Schema Tables
Folder_Metadata
The table below describes the Folder_Metadata table.
This table contains the following foldable column:
l Id
The primary key columns in this table are returnable.
Column Name SQL Type Updatable Nullable
IdPrimary Key
SQL_VARCHAR(50) False False
Category SQL_INTEGER(unsigned) False True
Created SQL_TIMESTAMP False False
Deleted SQL_BIT False False
Deleted_At SQL_TIMESTAMP False False
Full_Path SQL_VARCHAR(255) False True
Hidden SQL_BIT False False
Name SQL_VARCHAR(255) True True
Parent_Folder_Id SQL_BIGINT(unsigned) True True
Portal_Id SQL_VARCHAR(50) False False
Updated SQL_TIMESTAMP False False
www.simba.com 252
Reference Guide HubSpot Schema Tables
Form_Field_Groups
The table below describes the Form_Field_Groups table.
This is a virtual table, and is linked to the Forms table (see Forms on page 261).
This table contains the following virtual table:
l Form_Field_Groups_Fields on page 254
None of the columns in this table are updatable.
This table contains the following foldable column:
l Guid
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Form_Field_Groups_IndexPrimary Key
SQL_INTEGER(unsigned) True
GuidPrimary KeyForeign Key linked to columnGuid in Forms table
SQL_VARCHAR(50) False
Form_Field_Groups_Default SQL_BIT True
Form_Field_Groups_Is_Smart_Group
SQL_BIT True
Form_Field_Groups_Rich_Text_Content
SQL_VARCHAR(255) True
www.simba.com 253
Reference Guide HubSpot Schema Tables
Form_Field_Groups_Fields
The table below describes the Form_Field_Groups_Fields table.
This is a virtual table, and is linked to the Form_Field_Groups table (see Form_Field_Groups on page 253).
This table contains the following virtual tables:
l Form_Field_Groups_Fields_Options on page 257l Form_Field_Groups_Fields_Validation_Blocked_Email_Addresses on page 260l Form_Field_Groups_Fields_Selected_Options on page 259l Form_Field_Groups_Fields_Dependent_Field_Filters on page 256
None of the columns in this table are updatable.
This table contains the following foldable column:
l Guid
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Fields_IndexPrimary Key
SQL_INTEGER(unsigned) True
Form_Field_Groups_IndexPrimary KeyForeign Key linked to columnForm_Field_Groups_Index inForm_Field_Groups table
SQL_INTEGER(unsigned) True
GuidPrimary KeyForeign Key linked to columnGuid in Form_Field_Groupstable
SQL_VARCHAR(50) False
Fields_Default_Value SQL_VARCHAR(255) True
Fields_Description SQL_VARCHAR(2000) True
Fields_Display_Order SQL_INTEGER(signed) True
www.simba.com 254
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Fields_Enabled SQL_BIT True
Fields_Field_Type SQL_VARCHAR(50) True
Fields_Group_Name SQL_VARCHAR(255) True
Fields_Hidden SQL_BIT True
Fields_Is_Smart_Field SQL_BIT True
Fields_Label SQL_VARCHAR(255) True
Fields_Name SQL_VARCHAR(255) True
Fields_Placeholder SQL_VARCHAR(255) True
Fields_Required SQL_BIT True
Fields_Type SQL_VARCHAR(50) True
Fields_Unselected_Label SQL_VARCHAR(255) True
Fields_Validation_Data SQL_VARCHAR(255) True
Fields_Validation_Message SQL_VARCHAR(255) True
Fields_Validation_Name SQL_VARCHAR(255) True
Fields_Validation_Use_Default_Block_List
SQL_BIT True
Fields_lLabel_Hidden SQL_BIT True
www.simba.com 255
Reference Guide HubSpot Schema Tables
Form_Field_Groups_Fields_Dependent_Field_Filters
The table below describes the Form_Field_Groups_Fields_Dependent_Field_Filterstable.
This is a virtual table, and is linked to the Form_Field_Groups_Fields table (see Form_Field_Groups_Fields on page 254).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Guid
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Dependent_Field_Filters_IndexPrimary Key
SQL_INTEGER(unsigned) True
Fields_IndexPrimary KeyForeign Key linked to columnFields_Index in Form_Field_Groups_Fields table
SQL_INTEGER(unsigned) True
Form_Field_Groups_IndexPrimary KeyForeign Key linked to columnForm_Field_Groups_Index inForm_Field_Groups_Fieldstable
SQL_INTEGER(unsigned) True
GuidPrimary KeyForeign Key linked to columnGuid in Form_Field_Groups_Fields table
SQL_VARCHAR(50) False
Dependent_Field_Filters_Value SQL_LONGVARCHAR(2000000)
True
www.simba.com 256
Reference Guide HubSpot Schema Tables
Form_Field_Groups_Fields_Options
The table below describes the Form_Field_Groups_Fields_Options table.
This is a virtual table, and is linked to the Form_Field_Groups_Fields table (see Form_Field_Groups_Fields on page 254).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Guid
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Fields_IndexPrimary KeyForeign Key linked to columnFields_Index in Form_Field_Groups_Fields table
SQL_INTEGER(unsigned) True
Form_Field_Groups_IndexPrimary KeyForeign Key linked to columnForm_Field_Groups_Index inForm_Field_Groups_Fieldstable
SQL_INTEGER(unsigned) True
GuidPrimary KeyForeign Key linked to columnGuid in Form_Field_Groups_Fields table
SQL_VARCHAR(50) False
Options_IndexPrimary Key
SQL_INTEGER(unsigned) True
Options_Description SQL_VARCHAR(2000) True
Options_Display_Order SQL_INTEGER(signed) True
Options_Double_Data SQL_VARCHAR(50) True
www.simba.com 257
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Options_Hidden SQL_BIT True
Options_Label SQL_VARCHAR(255) True
Options_Read_Only SQL_BIT True
Options_Value SQL_VARCHAR(255) True
www.simba.com 258
Reference Guide HubSpot Schema Tables
Form_Field_Groups_Fields_Selected_Options
The table below describes the Form_Field_Groups_Fields_Selected_Options table.
This is a virtual table, and is linked to the Form_Field_Groups_Fields table (see Form_Field_Groups_Fields on page 254).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Guid
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Fields_IndexPrimary KeyForeign Key linked to columnFields_Index in Form_Field_Groups_Fields table
SQL_INTEGER(unsigned) True
Form_Field_Groups_IndexPrimary KeyForeign Key linked to columnForm_Field_Groups_Index inForm_Field_Groups_Fieldstable
SQL_INTEGER(unsigned) True
GuidPrimary KeyForeign Key linked to columnGuid in Form_Field_Groups_Fields table
SQL_VARCHAR(50) False
Selected_Options_IndexPrimary Key
SQL_INTEGER(unsigned) True
Selected_Options_Value SQL_LONGVARCHAR(2000000)
True
www.simba.com 259
Reference Guide HubSpot Schema Tables
Form_Field_Groups_Fields_Validation_Blocked_Email_Addresses
The table below describes the Form_Field_Groups_Fields_Validation_Blocked_Email_Addresses table.
This is a virtual table, and is linked to the Form_Field_Groups_Fields table (see Form_Field_Groups_Fields on page 254).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Guid
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Fields_IndexPrimary KeyForeign Key linked to columnFields_Index in Form_Field_Groups_Fields table
SQL_INTEGER(unsigned) True
Form_Field_Groups_IndexPrimary KeyForeign Key linked to columnForm_Field_Groups_Index inForm_Field_Groups_Fieldstable
SQL_INTEGER(unsigned) True
GuidPrimary KeyForeign Key linked to columnGuid in Form_Field_Groups_Fields table
SQL_VARCHAR(50) False
Validation_Blocked_Email_Addresses_Index
Primary Key
SQL_INTEGER(unsigned) True
Validation_Blocked_Email_Addresses_Value
SQL_LONGVARCHAR(2000000)
True
www.simba.com 260
Reference Guide HubSpot Schema Tables
Forms
The table below describes the Forms table.
This table contains the following virtual tables:
l Form_Field_Groups on page 253l Forms_Metadata on page 263l Forms_Social_Login_Types on page 264
This table contains the following foldable column:
l Guid
The primary key columns in this table are returnable.
Column Name SQL Type Updatable Nullable
GuidPrimary Key
SQL_VARCHAR(50) False False
Action SQL_VARCHAR(255) False True
Campaign_Guid SQL_VARCHAR(50) False True
Captcha_Enabled SQL_BIT False False
Cloneable SQL_BIT False False
Created_At SQL_TIMESTAMP False False
Css_Class SQL_VARCHAR(255) False True
Deletable SQL_BIT False False
Editable SQL_BIT False False
Follow_Up_Id SQL_VARCHAR(50) False True
Form_Type SQL_VARCHAR(255) False False
Ignore_Current_Values SQL_BIT False False
www.simba.com 261
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Inline_Message SQL_VARCHAR(255) False True
Lead_Nurturing_Campaign_Id
SQL_VARCHAR(50) False True
Method SQL_VARCHAR(50) False True
Migrated_From SQL_VARCHAR(255) False True
Name SQL_VARCHAR(255) True False
Notify_Recipients SQL_VARCHAR(255) False True
Performable_Html SQL_VARCHAR(255) False True
Portal_Id SQL_VARCHAR(50) False False
Redirect SQL_VARCHAR(2000) True True
Social_Login_Enabled SQL_BIT False False
Submit_Text SQL_VARCHAR(2000) False True
Tms_Id SQL_VARCHAR(50) False True
Updated_At SQL_TIMESTAMP False False
www.simba.com 262
Reference Guide HubSpot Schema Tables
Forms_Metadata
The table below describes the Forms_Metadata table.
This is a virtual table, and is linked to the Forms table (see Forms on page 261).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Guid
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
GuidPrimary KeyForeign Key linked to columnGuid in Forms table
SQL_VARCHAR(50) False
Metadata_IndexPrimary Key
SQL_INTEGER(unsigned) True
Metadata_Include_In_Submission SQL_BIT True
Metadata_Name SQL_VARCHAR(255) True
Metadata_Value SQL_VARCHAR(255) True
www.simba.com 263
Reference Guide HubSpot Schema Tables
Forms_Social_Login_Types
The table below describes the Forms_Social_Login_Types table.
This is a virtual table, and is linked to the Forms table (see Forms on page 261).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Guid
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
GuidPrimary KeyForeign Key linked to columnGuid in Forms table
SQL_VARCHAR(50) False
Social_Login_Types_IndexPrimary Key
SQL_INTEGER(unsigned) True
Social_Login_Types_Value SQL_LONGVARCHAR(2000000)
True
www.simba.com 264
Reference Guide HubSpot Schema Tables
Keywords
The table below describes the Keywords table.
This table contains the following virtual table:
l Keywords_Campaigns on page 266
None of the columns in this table are updatable.
None of the columns in this table are nullable.
This table contains the following foldable column:
l Keyword_Guid
The primary key columns in this table are returnable.
Column Name SQL Type
Keyword_GuidPrimary Key
SQL_VARCHAR(50)
Contacts SQL_INTEGER(unsigned)
Country SQL_INTEGER(unsigned)
Created_At SQL_TIMESTAMP
Keyword SQL_VARCHAR(255)
Leads SQL_INTEGER(unsigned)
Visits SQL_INTEGER(unsigned)
www.simba.com 265
Reference Guide HubSpot Schema Tables
Keywords_Campaigns
The table below describes the Keywords_Campaigns table.
This is a virtual table, and is linked to the Keywords table (see Keywords on page265).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Keyword_Guid
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Campaigns_IndexPrimary Key
SQL_INTEGER(unsigned) True
Keyword_GuidPrimary KeyForeign Key linked to columnKeyword_Guid in Keywordstable
SQL_VARCHAR(50) False
Campaigns_Value SQL_LONGVARCHAR(2000000)
True
www.simba.com 266
Reference Guide HubSpot Schema Tables
Layout_Versions
The table below describes the Layout_Versions table.
This table contains the following virtual table:
l Layout_Versions_Attached_Stylesheets on page 269
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Layout_IdPrimary KeyForeign Key linked to columnId in Layouts table
SQL_VARCHAR(50) False
Version_IdPrimary Key
SQL_BIGINT(signed) True
Authored_At SQL_TIMESTAMP True
Body_Class SQL_VARCHAR(255) True
Body_Css SQL_VARCHAR(255) True
Body_Css_Id SQL_VARCHAR(255) True
Category_Id SQL_VARCHAR(50) True
Created SQL_TIMESTAMP True
Custom_Head SQL_VARCHAR(255) True
Deleted_At SQL_TIMESTAMP True
Enable_Domain_Stylesheets SQL_BIT True
Folder SQL_VARCHAR(50) True
www.simba.com 267
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Generator SQL_VARCHAR(255) True
Has_User_Changes SQL_BIT True
Include_Default_Custom_Css SQL_BIT True
Is_Theme_Layout SQL_BIT True
Label SQL_VARCHAR(255) True
Last_Edit_Session_Id SQL_VARCHAR(50) True
Last_Edit_Update_Id SQL_VARCHAR(50) True
Layout_Data SQL_LONGVARCHAR(262144)
True
Linked_Style_Id SQL_VARCHAR(50) True
Path SQL_VARCHAR(255) True
Portal_Id SQL_VARCHAR(50) False
Purchased SQL_BIT True
Template_Type SQL_VARCHAR(50) True
Updated SQL_TIMESTAMP True
Updated_By SQL_VARCHAR(255) True
User_Email SQL_VARCHAR(255) True
User_Full_Name SQL_VARCHAR(255) True
User_Id SQL_VARCHAR(255) True
User_Username SQL_VARCHAR(255) True
www.simba.com 268
Reference Guide HubSpot Schema Tables
Layout_Versions_Attached_Stylesheets
The table below describes the Layout_Versions_Attached_Stylesheets table.
This is a virtual table, and is linked to the Layout_Versions table (see Layout_Versionson page 267).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Attached_Stylesheets_IndexPrimary Key
SQL_INTEGER(unsigned) True
Version_IdPrimary KeyForeign Key linked to columnVersion_Id in Layout_Versionstable
SQL_BIGINT(signed) True
Attached_Stylesheets_Id SQL_VARCHAR(50) True
Attached_Stylesheets_Type SQL_VARCHAR(50) True
www.simba.com 269
Reference Guide HubSpot Schema Tables
Layouts
The table below describes the Layouts table.
This table contains the following virtual table:
l Layouts_Attached_Stylesheets on page 272
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
IdPrimary Key
SQL_VARCHAR(50) False
Body_Class SQL_VARCHAR(255) True
Body_Css SQL_VARCHAR(255) True
Body_Css_Id SQL_VARCHAR(255) True
Category_Id SQL_VARCHAR(50) True
Created SQL_TIMESTAMP True
Custom_Head SQL_VARCHAR(255) True
Deleted_At SQL_TIMESTAMP True
Enable_Domain_Stylesheets SQL_BIT True
Folder SQL_VARCHAR(50) True
Generator SQL_VARCHAR(255) True
Has_User_Changes SQL_BIT True
www.simba.com 270
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Include_Default_Custom_Css SQL_BIT True
Is_Theme_Layout SQL_BIT True
Label SQL_VARCHAR(255) True
Last_Edit_Session_Id SQL_VARCHAR(50) True
Last_Edit_Update_Id SQL_VARCHAR(50) True
Layout_Data SQL_LONGVARCHAR(262144) True
Linked_Style_Id SQL_VARCHAR(50) True
Path SQL_VARCHAR(255) True
Portal_Id SQL_VARCHAR(50) False
Purchased SQL_BIT True
Template_Type SQL_VARCHAR(50) True
Updated SQL_TIMESTAMP True
Updated_By SQL_VARCHAR(255) True
www.simba.com 271
Reference Guide HubSpot Schema Tables
Layouts_Attached_Stylesheets
The table below describes the Layouts_Attached_Stylesheets table.
This is a virtual table, and is linked to the Layouts table (see Layouts on page 270).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Attached_Stylesheets_IndexPrimary Key
SQL_INTEGER(unsigned) True
IdPrimary KeyForeign Key linked to columnId in Layouts table
SQL_VARCHAR(50) False
Attached_Stylesheets_Id SQL_VARCHAR(50) True
Attached_Stylesheets_Type SQL_VARCHAR(50) True
www.simba.com 272
Reference Guide HubSpot Schema Tables
Owners
The table below describes the Owners table.
This table contains the following virtual table:
l Owners_Remote_List on page 274
None of the columns in this table are nullable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Updatable
Owner_IdPrimary Key
SQL_VARCHAR(50) False
Created_At SQL_TIMESTAMP True
Email SQL_VARCHAR(255) True
First_Name SQL_VARCHAR(255) True
Last_Name SQL_VARCHAR(255) True
Portal_Id SQL_VARCHAR(50) False
Type SQL_VARCHAR(50) True
Updated_At SQL_TIMESTAMP True
www.simba.com 273
Reference Guide HubSpot Schema Tables
Owners_Remote_List
The table below describes the Owners_Remote_List table.
This is a virtual table, and is linked to the Owners table (see Owners on page 273).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Owner_IdPrimary KeyForeign Key linked to columnOwner_Id in Owners table
SQL_VARCHAR(50) False
Remote_List_IndexPrimary Key
SQL_INTEGER(unsigned) True
Remote_List_Active SQL_BIT True
Remote_List_Id SQL_VARCHAR(50) True
Remote_List_Owner_Id SQL_VARCHAR(50) True
Remote_List_Portal_Id SQL_VARCHAR(50) True
Remote_List_Remote_Id SQL_VARCHAR(50) True
Remote_List_Remote_Type SQL_VARCHAR(50) True
www.simba.com 274
Reference Guide HubSpot Schema Tables
Page_Attached_Stylesheets
The table below describes the Page_Attached_Stylesheets table.
This is a virtual table, and is linked to the Pages table (see Pages on page 288).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Attached_Stylesheets_IndexPrimary Key
SQL_INTEGER(unsigned) True
IdPrimary KeyForeign Key linked to columnId in Pages table
SQL_VARCHAR(50) False
Attached_Stylesheets_Id SQL_VARCHAR(50) True
Attached_Stylesheets_Type SQL_VARCHAR(50) True
www.simba.com 275
Reference Guide HubSpot Schema Tables
Page_Keywords
The table below describes the Page_Keywords table.
This is a virtual table, and is linked to the Pages table (see Pages on page 288).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
IdPrimary KeyForeign Key linked to columnId in Pages table
SQL_VARCHAR(50) False
Keywords_IndexPrimary Key
SQL_INTEGER(unsigned) True
Keywords_Country SQL_INTEGER(unsigned) True
Keywords_Keyword SQL_VARCHAR(255) True
Keywords_Keyword_Guid SQL_VARCHAR(255) True
Keywords_Keyword_Id SQL_VARCHAR(50) True
www.simba.com 276
Reference Guide HubSpot Schema Tables
Page_Publishing_Personas
The table below describes the Page_Publishing_Personas table.
This is a virtual table, and is linked to the Pages table (see Pages on page 288).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
IdPrimary KeyForeign Key linked to columnId in Pages table
SQL_VARCHAR(50) False
Personas_IndexPrimary Key
SQL_INTEGER(unsigned) True
Personas_Value SQL_LONGVARCHAR(20000000)
True
www.simba.com 277
Reference Guide HubSpot Schema Tables
Page_Versions
The table below describes the Page_Versions table.
This table contains the following virtual tables:
l Page_Versions_Keywords on page 286l Page_Versions_Attached_Stylesheets on page 285l Page_Versions_Personas on page 287
This table contains the following foldable columns:
l Page_Idl Version_Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Updatable Nullable
Page_IdPrimary KeyForeign Key linked tocolumn Id in Pagestable
SQL_VARCHAR(50) False False
Version_IdPrimary Key
SQL_BIGINT(signed) False True
Current_Live_DomainForeign Key linked tocolumn Id in Domainstable
SQL_VARCHAR(255) False False
Ab_Status SQL_VARCHAR(255) False True
Ab_Test_Id SQL_VARCHAR(50) False True
Analytics_Page_Id SQL_VARCHAR(50) False False
Archived SQL_BIT False False
Author_Email SQL_VARCHAR(255) False True
www.simba.com 278
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Author_Name SQL_VARCHAR(255) False True
Author_User_Id SQL_VARCHAR(50) False True
Authored_At SQL_TIMESTAMP False True
Blog_Author_Id SQL_VARCHAR(50) False True
Blog_Publish_Instant_Email_Campaign_Id
SQL_VARCHAR(50) False True
Blog_Publish_Instant_Email_Retry_Count
SQL_INTEGER(unsigned) False True
Blog_Publish_Instant_Email_Task_Uid
SQL_VARCHAR(50) False True
Blog_Publish_To_Social_Media_Task
SQL_VARCHAR(255) False True
Blueprint_Type_Id SQL_VARCHAR(50) False False
Campaign SQL_VARCHAR(255) True True
Campaign_Name SQL_VARCHAR(255) True True
Campaign_Utm SQL_VARCHAR(255) False True
Category_Id SQL_VARCHAR(50) False True
Cloned_From SQL_VARCHAR(255) False True
Compose_Body SQL_VARCHAR(2000) False True
Created SQL_TIMESTAMP False False
Css SQL_VARCHAR(255) False True
Css_Text SQL_VARCHAR(255) False True
www.simba.com 279
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Deleted_At SQL_TIMESTAMP False False
Deleted_By SQL_VARCHAR(255) False True
Domain SQL_VARCHAR(255) False True
Email_Campaign_Id SQL_VARCHAR(50) False True
Email_Schedule_Result SQL_VARCHAR(255) False True
Enable_Domain_Stylesheets
SQL_BIT False False
Enable_Layout_Stylesheets
SQL_BIT False False
Featured_Image SQL_VARCHAR(255) False True
Featured_Image_Alt_Text SQL_VARCHAR(255) False True
Flex_Areas SQL_VARCHAR(255) False True
Folder_Id SQL_VARCHAR(50) False True
Footer_Html SQL_VARCHAR(2000) True True
Freeze_Date SQL_TIMESTAMP False False
Has_Smart_Content SQL_BIT False False
Has_User_Changes SQL_BIT False False
Head_Html SQL_VARCHAR(2000) True True
Head_Title SQL_VARCHAR(1000) False True
Header SQL_LONGVARCHAR(3000)
False True
www.simba.com 280
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Include_Default_Custom_Css
SQL_VARCHAR(255) False True
Is_Draft SQL_BIT True False
Language SQL_VARCHAR(50) False True
Last_Edit_Session_Id SQL_VARCHAR(50) False True
Last_Edit_Update_Id SQL_VARCHAR(50) False True
Legacy_Blog_Tab_Id SQL_VARCHAR(50) False True
Legacy_Id SQL_VARCHAR(50) False True
Legacy_Post_Guid SQL_VARCHAR(50) False True
Meta_Description SQL_VARCHAR(2000) True True
Meta_Keywords SQL_VARCHAR(255) True True
Name SQL_VARCHAR(255) True False
Page_Expiry_Date SQL_TIMESTAMP False True
Page_Expiry_Enabled SQL_BIT False True
Page_Expiry_Redirect_Id SQL_VARCHAR(50) False True
Page_Expiry_Redirect_Url SQL_VARCHAR(2000) False True
Page_Redirected SQL_VARCHAR(255) False True
Password SQL_VARCHAR(255) True True
Perform_Able_Url SQL_VARCHAR(2000) False True
Performable_Campaign_Id SQL_LONGVARCHAR(3000)
False True
www.simba.com 281
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Performable_Campaign_Rules_Data
SQL_LONGVARCHAR(3000)
False True
Performable_Edit_Url SQL_VARCHAR(2000) False True
Performable_Guid SQL_VARCHAR(2000) False True
Performable_Variation_Letter
SQL_VARCHAR(2000) False True
Placement_Guids SQL_VARCHAR(50) False True
Portal_Id SQL_VARCHAR(50) False False
Preview_Image_Src SQL_VARCHAR(255) False True
Preview_Key SQL_VARCHAR(255) False True
Processing_Status SQL_VARCHAR(255) False True
Publish_Date SQL_TIMESTAMP True True
Publish_Immediately SQL_BIT True True
Published_Url SQL_VARCHAR(2000) False True
Rss_Email_Author_Line_Template
SQL_BIT False False
Rss_Email_Blog_Image_Max_Width
SQL_INTEGER(unsigned) False True
Rss_Email_By_Text SQL_VARCHAR(50) False False
Rss_Email_Click_Through_Text
SQL_VARCHAR(50) False False
Rss_Email_Comment_Text
SQL_VARCHAR(255) False False
www.simba.com 282
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Rss_Email_Entry_Template
SQL_VARCHAR(255) False True
Rss_Email_Entry_Template_Enabled
SQL_BIT False False
Rss_Email_Id SQL_VARCHAR(50) False True
Rss_Email_Image_Max_Width
SQL_INTEGER(unsigned) False False
Scheduled_Update_Date SQL_TIMESTAMP False True
Slug SQL_VARCHAR(255) True False
Staged_From SQL_VARCHAR(255) False True
State SQL_VARCHAR(50) False True
Style_Override_Id SQL_VARCHAR(50) False True
Subcategory SQL_VARCHAR(255) True False
Submitted_Batch_At SQL_TIMESTAMP False True
Template_Path SQL_VARCHAR(255) False True
Tms_Id SQL_VARCHAR(50) False True
Translated_From_Id SQL_VARCHAR(50) False True
Unpublished_At SQL_TIMESTAMP False True
Updated SQL_TIMESTAMP False False
Url SQL_VARCHAR(2000) False False
Views SQL_INTEGER(unsigned) False False
www.simba.com 283
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Widget_Containers SQL_LONGVARCHAR(20000000)
True True
Widgets SQL_LONGVARCHAR(20000000)
True True
www.simba.com 284
Reference Guide HubSpot Schema Tables
Page_Versions_Attached_Stylesheets
The table below describes the Page_Versions_Attached_Stylesheets table.
This is a virtual table, and is linked to the Page_Versions table (see Page_Versions onpage 278).
None of the columns in this table are updatable.
This table contains the following foldable columns:
l Page_Idl Version_Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Attached_Stylesheets_IndexPrimary Key
SQL_INTEGER(unsigned) True
Page_IdPrimary KeyForeign Key linked to columnPage_Id in Page_Versionstable
SQL_VARCHAR(50) False
Version_IdPrimary KeyForeign Key linked to columnVersion_Id in Page_Versionstable
SQL_BIGINT(signed) True
Attached_Stylesheets_Id SQL_VARCHAR(50) True
Attached_Stylesheets_Type SQL_VARCHAR(50) True
www.simba.com 285
Reference Guide HubSpot Schema Tables
Page_Versions_Keywords
The table below describes the Page_Versions_Keywords table.
This is a virtual table, and is linked to the Page_Versions table (see Page_Versions onpage 278).
None of the columns in this table are updatable.
This table contains the following foldable columns:
l Page_Idl Version_Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Keywords_IndexPrimary Key
SQL_INTEGER(unsigned) True
Page_IdPrimary KeyForeign Key linked to columnPage_Id in Page_Versionstable
SQL_VARCHAR(50) False
Version_IdPrimary KeyForeign Key linked to columnVersion_Id in Page_Versionstable
SQL_BIGINT(signed) True
Keywords_Country SQL_INTEGER(unsigned) True
Keywords_Keyword SQL_VARCHAR(255) True
Keywords_Keyword_Guid SQL_VARCHAR(255) True
Keywords_Keyword_Id SQL_VARCHAR(50) True
www.simba.com 286
Reference Guide HubSpot Schema Tables
Page_Versions_Personas
The table below describes the Page_Versions_Personas table.
This is a virtual table, and is linked to the Page_Versions table (see Page_Versions onpage 278).
None of the columns in this table are updatable.
This table contains the following foldable columns:
l Page_Idl Version_Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Page_IdPrimary KeyForeign Key linked to columnPage_Id in Page_Versionstable
SQL_VARCHAR(50) False
Personas_IndexPrimary Key
SQL_INTEGER(unsigned) True
Version_IdPrimary KeyForeign Key linked to columnVersion_Id in Page_Versionstable
SQL_BIGINT(signed) True
Personas_Value SQL_LONGVARCHAR(20000000)
True
www.simba.com 287
Reference Guide HubSpot Schema Tables
Pages
The table below describes the Pages table.
This table contains the following virtual tables:
l Page_Keywords on page 276l Page_Attached_Stylesheets on page 275l Page_Publishing_Personas on page 277
This table contains the following foldable column:
l Id
The primary key columns in this table are returnable.
Column Name SQL Type Updatable Nullable
IdPrimary Key
SQL_VARCHAR(50) False False
Author_UsernameForeign Key linked tocolumn Username inBlog_Authors table
SQL_VARCHAR(50) False True
Current_Live_DomainForeign Key linked tocolumn Id in Domainstable
SQL_VARCHAR(255) False False
Ab_Status SQL_VARCHAR(255) False True
Ab_Test_Id SQL_VARCHAR(50) False True
Analytics_Page_Id SQL_VARCHAR(50) False False
Archived SQL_BIT False False
Author_Email SQL_VARCHAR(255) False True
Author_Name SQL_VARCHAR(255) False True
www.simba.com 288
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Author_User_Id SQL_VARCHAR(50) False True
Blog_Publish_Instant_Email_Campaign_Id
SQL_VARCHAR(50) False True
Blog_Publish_Instant_Email_Retry_Count
SQL_INTEGER(unsigned) False True
Blog_Publish_Instant_Email_Task_Uid
SQL_VARCHAR(50) False True
Blog_Publish_To_Social_Media_Task
SQL_VARCHAR(255) False True
Blueprint_Type_Id SQL_VARCHAR(50) False False
Campaign SQL_VARCHAR(255) True True
Campaign_Name SQL_VARCHAR(255) True True
Campaign_Utm SQL_VARCHAR(255) False True
Category_Id SQL_VARCHAR(50) False True
Cloned_From SQL_VARCHAR(255) False True
Compose_Body SQL_VARCHAR(2000) False True
Created SQL_TIMESTAMP False False
Css SQL_VARCHAR(255) False True
Css_Text SQL_VARCHAR(255) False True
Deleted_At SQL_TIMESTAMP False False
Deleted_By SQL_VARCHAR(255) False True
Domain SQL_VARCHAR(255) False True
www.simba.com 289
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Email_Campaign_Id SQL_VARCHAR(50) False True
Email_Schedule_Result SQL_VARCHAR(255) False True
Enable_Domain_Stylesheets
SQL_BIT False False
Enable_Layout_Stylesheets
SQL_BIT False False
Featured_Image SQL_VARCHAR(255) False True
Featured_Image_Alt_Text SQL_VARCHAR(255) False True
Flex_Areas SQL_VARCHAR(255) False True
Folder_Id SQL_VARCHAR(50) False True
Footer_Html SQL_VARCHAR(2000) True True
Freeze_Date SQL_TIMESTAMP False False
Has_Smart_Content SQL_BIT False False
Has_User_Changes SQL_BIT False False
Head_Html SQL_VARCHAR(2000) True True
Head_Title SQL_VARCHAR(1000) False True
Header SQL_LONGVARCHAR(3000)
False True
Include_Default_Custom_Css
SQL_VARCHAR(255) False True
Is_Draft SQL_BIT True False
Language SQL_VARCHAR(50) False True
www.simba.com 290
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Last_Edit_Session_Id SQL_VARCHAR(50) False True
Last_Edit_Update_Id SQL_VARCHAR(50) False True
Legacy_Blog_Tab_Id SQL_VARCHAR(50) False True
Legacy_Id SQL_VARCHAR(50) False True
Legacy_Post_Guid SQL_VARCHAR(50) False True
Meta_Description SQL_VARCHAR(2000) True True
Meta_Keywords SQL_VARCHAR(255) True True
Name SQL_VARCHAR(255) True False
Page_Expiry_Date SQL_TIMESTAMP False True
Page_Expiry_Enabled SQL_BIT False True
Page_Expiry_Redirect_Id SQL_VARCHAR(50) False True
Page_Expiry_Redirect_Url SQL_VARCHAR(2000) False True
Page_Redirected SQL_VARCHAR(255) False True
Password SQL_VARCHAR(255) True True
Perform_Able_Url SQL_VARCHAR(2000) False True
Performable_Campaign_Id SQL_LONGVARCHAR(3000)
False True
Performable_Campaign_Rules_Data
SQL_LONGVARCHAR(3000)
False True
Performable_Edit_Url SQL_VARCHAR(2000) False True
Performable_Guid SQL_VARCHAR(2000) False True
www.simba.com 291
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Performable_Variation_Letter
SQL_VARCHAR(2000) False True
Placement_Guids SQL_VARCHAR(50) False True
Portal_Id SQL_VARCHAR(50) False False
Preview_Image_Src SQL_VARCHAR(255) False True
Preview_Key SQL_VARCHAR(255) False True
Processing_Status SQL_VARCHAR(255) False True
Publish_Date SQL_TIMESTAMP True True
Publish_Immediately SQL_BIT True True
Published_Url SQL_VARCHAR(2000) False True
Rss_Email_Author_Line_Template
SQL_BIT False False
Rss_Email_Blog_Image_Max_Width
SQL_INTEGER(unsigned) False True
Rss_Email_By_Text SQL_VARCHAR(50) False False
Rss_Email_Click_Through_Text
SQL_VARCHAR(50) False False
Rss_Email_Comment_Text
SQL_VARCHAR(255) False False
Rss_Email_Entry_Template
SQL_VARCHAR(255) False True
Rss_Email_Entry_Template_Enabled
SQL_BIT False False
www.simba.com 292
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Rss_Email_Id SQL_VARCHAR(50) False True
Rss_Email_Image_Max_Width
SQL_INTEGER(unsigned) False False
Scheduled_Update_Date SQL_TIMESTAMP False True
Slug SQL_VARCHAR(255) True False
Staged_From SQL_VARCHAR(255) False True
State SQL_VARCHAR(50) False True
Style_Override_Id SQL_VARCHAR(50) False True
Subcategory SQL_VARCHAR(255) True False
Submitted_Batch_At SQL_TIMESTAMP False True
Template_Path SQL_VARCHAR(255) False True
Tms_Id SQL_VARCHAR(50) False True
Translated_From_Id SQL_VARCHAR(50) False True
Unpublished_At SQL_TIMESTAMP False True
Updated SQL_TIMESTAMP False False
Url SQL_VARCHAR(2000) False False
Views SQL_INTEGER(unsigned) False False
Widget_Containers SQL_LONGVARCHAR(20000000)
True True
Widgets SQL_LONGVARCHAR(20000000)
True True
www.simba.com 293
Reference Guide HubSpot Schema Tables
Template_Versions
The table below describes the Template_Versions table.
This table contains the following virtual table:
l Template_Versions_Attached_Stylesheets on page 298
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Updatable Nullable
Template_IdPrimary KeyForeign Key linked tocolumn Id inTemplates table
SQL_VARCHAR(50) False False
Version_IdPrimary Key
SQL_BIGINT(signed) False True
Always_In_Template_Editor
SQL_BIT True True
Authored_At SQL_TIMESTAMP False True
Category_Id SQL_VARCHAR(50) True True
Cdn_Minified_Url SQL_VARCHAR(2000) True True
Cdn_Url SQL_VARCHAR(2000) True True
Deleted_At SQL_TIMESTAMP False False
Enable_Domain_Stylesheets
SQL_BIT True True
Extension_Id SQL_VARCHAR(50) False True
Extension_Name SQL_VARCHAR(255) True True
www.simba.com 294
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Folder SQL_VARCHAR(50) True False
Generated_From_Layout_Id
SQL_VARCHAR(50) False True
Has_Custom_Thumbnail SQL_BIT True True
Has_Menu_Tag SQL_BIT True True
Has_Style_Tag SQL_BIT True True
Has_Style_Tag_Performable_Template_Id
SQL_BIT True True
Has_User_Changes SQL_VARCHAR(50) True True
Include_Default_Custom_Css
SQL_VARCHAR(255) True True
Install_Count SQL_INTEGER(unsigned) True True
Is_Approved SQL_BIT False True
Is_Available_For_New_Content
SQL_VARCHAR(50) True False
Is_Beta SQL_VARCHAR(255) False True
Is_Deletable SQL_VARCHAR(10) False False
Is_From_Layout SQL_BIT True False
Is_Readonly SQL_VARCHAR(10) True True
Is_Rename_Able SQL_BIT False True
Is_Theme_Layout SQL_BIT True False
Label SQL_VARCHAR(2000) True False
www.simba.com 295
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Last_Edit_Session_Id SQL_VARCHAR(50) False True
Last_Edit_Update_Id SQL_VARCHAR(50) False True
Last_Edited_At SQL_TIMESTAMP False True
Legacy_Email_Layout_Id SQL_VARCHAR(50) True True
Linked_Style_Id SQL_VARCHAR(50) False True
Migrated_From_Style_Manager
SQL_BIT True False
Path SQL_VARCHAR(255) True False
Performable_Edit_Url SQL_VARCHAR(2000) True True
Portal_Id SQL_VARCHAR(50) False False
Purchased SQL_BIT False True
Release_Id SQL_VARCHAR(50) False True
Released_At SQL_TIMESTAMP False True
Source SQL_LONGVARCHAR(2000000)
True True
Template_Type SQL_VARCHAR(50) True True
Thumbnail_Path SQL_VARCHAR(255) True True
Thumbnail_Width SQL_INTEGER(unsigned) True False
Type SQL_VARCHAR(50) True True
Updated SQL_TIMESTAMP False False
Updated_By SQL_VARCHAR(255) False True
www.simba.com 296
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
User_Email SQL_VARCHAR(255) False True
User_Full_Name SQL_VARCHAR(255) False True
User_Id SQL_VARCHAR(255) False True
User_Username SQL_VARCHAR(255) False True
_label SQL_VARCHAR(2000) True True
www.simba.com 297
Reference Guide HubSpot Schema Tables
Template_Versions_Attached_Stylesheets
The table below describes the Template_Versions_Attached_Stylesheets table.
This is a virtual table, and is linked to the Template_Versions table (see Template_Versions on page 294).
None of the columns in this table are updatable.
None of the columns in this table are foldable.
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Attached_Stylesheets_IndexPrimary Key
SQL_INTEGER(unsigned) True
Template_IdPrimary KeyForeign Key linked to columnTemplate_Id in Template_Versions table
SQL_VARCHAR(50) False
Version_IdPrimary KeyForeign Key linked to columnVersion_Id in Template_Versions table
SQL_BIGINT(signed) True
Attached_Stylesheets_Id SQL_VARCHAR(50) True
Attached_Stylesheets_Type SQL_VARCHAR(50) True
www.simba.com 298
Reference Guide HubSpot Schema Tables
Templates
The table below describes the Templates table.
This table contains the following virtual table:
l Templates_Attached_Stylesheets on page 302
This table contains the following foldable column:
l Id
The primary key columns in this table are returnable.
Column Name SQL Type Updatable Nullable
IdPrimary Key
SQL_VARCHAR(50) False False
Always_In_Template_Editor
SQL_BIT True True
Category_Id SQL_INTEGER(unsigned) True True
Cdn_Mini_Fied_Url SQL_VARCHAR(2000) True True
Cdn_Url SQL_VARCHAR(2000) True True
Deleted_At SQL_TIMESTAMP False False
Enable_Domain_Stylesheets
SQL_BIT True True
Extension_Id SQL_VARCHAR(50) False True
Extension_Name SQL_VARCHAR(255) True False
Folder SQL_VARCHAR(50) True False
Generated_From_Layout_Id
SQL_VARCHAR(50) False True
Has_Custom_Thumbnail SQL_BIT True True
www.simba.com 299
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Has_Menu_Tag SQL_BIT True True
Has_Style_Tag SQL_BIT True True
Has_Style_Tag_Performable_Template_Id
SQL_BIT True True
Has_User_Changes SQL_BIT True True
Include_Default_Custom_Css
SQL_VARCHAR(255) True True
Install_Count SQL_INTEGER(unsigned) True True
Is_Approved SQL_BIT False True
Is_Available_For_New_Content
SQL_BIT True False
Is_Beta SQL_BIT False True
Is_Deletable SQL_BIT False False
Is_From_Layout SQL_BIT True False
Is_Readonly SQL_BIT True True
Is_Renameable SQL_BIT False True
Is_Theme_Layout SQL_BIT True False
Label SQL_VARCHAR(2000) True False
Last_Edit_Session_Id SQL_VARCHAR(50) False True
Last_Edit_Update_Id SQL_VARCHAR(50) False True
Last_Edited_At SQL_TIMESTAMP False True
www.simba.com 300
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Legacy_Email_Layout_Id SQL_VARCHAR(50) True True
Linked_Style_Id SQL_VARCHAR(50) False True
Migrated_From_Style_Manager
SQL_BIT True False
Path SQL_VARCHAR(255) True False
Performable_Edit_Url SQL_VARCHAR(2000) True True
Portal_Id SQL_VARCHAR(50) False False
Purchased SQL_BIT False True
Release_Id SQL_VARCHAR(50) False True
Released_At SQL_TIMESTAMP False True
Source SQL_LONGVARCHAR(2000000)
True True
Template_Type SQL_BIGINT(unsigned) True True
Thumbnail_Path SQL_VARCHAR(255) True True
Thumbnail_Width SQL_INTEGER(unsigned) True False
Type SQL_VARCHAR(50) True True
Updated SQL_TIMESTAMP False False
Updated_By SQL_VARCHAR(255) False True
_label SQL_VARCHAR(2000) True True
www.simba.com 301
Reference Guide HubSpot Schema Tables
Templates_Attached_Stylesheets
The table below describes the Templates_Attached_Stylesheets table.
This is a virtual table, and is linked to the Templates table (see Templates on page299).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Attached_Stylesheets_IndexPrimary Key
SQL_INTEGER(unsigned) True
IdPrimary KeyForeign Key linked to columnId in Templates table
SQL_VARCHAR(50) False
Attached_Stylesheets_Id SQL_VARCHAR(50) True
Attached_Stylesheets_Type SQL_VARCHAR(50) True
www.simba.com 302
Reference Guide HubSpot Schema Tables
Url_Mappings
The table below describes the Url_Mappings table.
This table contains the following foldable column:
l Id
The primary key columns in this table are returnable.
Column Name SQL Type Updatable Nullable
IdPrimary Key
SQL_VARCHAR(50) False False
Content_Group_Id SQL_VARCHAR(50) False True
Created SQL_TIMESTAMP False False
Deleted_At SQL_TIMESTAMP False False
Destination SQL_VARCHAR(255) True False
Is_Match_Full_Url SQL_BIT True False
Is_Match_Query_String SQL_BIT True False
Is_Only_After_Not_Found SQL_BIT True False
Is_Pattern SQL_BIT True False
Is_Protocol_Agnostic SQL_BIT False False
Is_Regex SQL_BIT False False
Is_Trailing_Slash_Optional
SQL_BIT False False
Name SQL_VARCHAR(255) False True
Portal_Id SQL_VARCHAR(50) False False
www.simba.com 303
Reference Guide HubSpot Schema Tables
Column Name SQL Type Updatable Nullable
Precedence SQL_VARCHAR(50) True False
Redirect_Style SQL_VARCHAR(50) True True
Route_Prefix SQL_VARCHAR(255) True False
Updated SQL_TIMESTAMP False False
www.simba.com 304
Reference Guide HubSpot Schema Tables
Workflows
The table below describes the Workflows table.
This table contains the following virtual tables:
l Workflows_Trigger_Sets on page 315l Workflows_Segment_Criteria on page 313l Workflows_Goal_Criteria on page 309l Workflows_Reenrollment_Trigger_Sets on page 312l Workflows_Unenrollment_Setting_Excluded_Workflows on page 316l Workflows_Metadata_Triggered_By_Workflow_Ids on page 311l Workflows_Actions on page 308l Workflows_Suppression_List_Ids on page 314l Workflows_Goal_List_Ids on page 310
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
The primary key columns in this table are returnable.
Column Name SQL Type Nullable
IdPrimary Key
SQL_VARCHAR(50) False
Allow_Contact_To_Trigger_Multiple_Times
SQL_BIT True
Enabled SQL_BIT True
Enroll_On_Criteria_Update SQL_BIT True
Goal_Criteria_Enabled SQL_BIT False
Inserted_At SQL_TIMESTAMP True
Internal_Starting_List_Id SQL_VARCHAR(50) True
www.simba.com 305
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Is_Segment_Based SQL_BIT False
Last_Updated_By SQL_VARCHAR(255) True
Listening SQL_BIT True
Metadata_Contact_List_Ids_Active
SQL_INTEGER(unsigned) False
Metadata_Contact_List_Ids_Completed
SQL_INTEGER(unsigned) False
Metadata_Contact_List_Ids_Enrolled
SQL_INTEGER(unsigned) False
Metadata_Contact_List_Ids_Succeeded
SQL_INTEGER(unsigned) False
Metadata_Starting_List_Done_Processing
SQL_VARCHAR(255) False
Metadata_Succeeded_List_Id SQL_VARCHAR(50) False
Name SQL_VARCHAR(255) True
Nurture_Time_Range_Enabled SQL_BIT True
Nurture_Time_Range_Start_Hour SQL_INTEGER(unsigned) True
Nurture_Time_Range_Stop_Hour SQL_INTEGER(unsigned) True
Only_Enrolls_Manually SQL_BIT True
Only_Exec_On_Biz_Days SQL_BIT True
Original_Author_User_Id SQL_VARCHAR(255) True
Portal_Id SQL_VARCHAR(50) False
www.simba.com 306
Reference Guide HubSpot Schema Tables
Column Name SQL Type Nullable
Recurring_Setting_Type SQL_VARCHAR(255) True
Type SQL_VARCHAR(50) True
Unenrollment_Setting_Type SQL_VARCHAR(255) True
Updated_At SQL_TIMESTAMP False
www.simba.com 307
Reference Guide HubSpot Schema Tables
Workflows_Actions
The table below describes the Workflows_Actions table.
This is a virtual table, and is linked to the Workflows table (see Workflows on page305).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Actions_IndexPrimary Key
SQL_INTEGER(unsigned) True
IdPrimary KeyForeign Key linked to columnId in Workflows table
SQL_VARCHAR(50) False
Actions_Value SQL_LONGVARCHAR(2000000)
True
www.simba.com 308
Reference Guide HubSpot Schema Tables
Workflows_Goal_Criteria
The table below describes the Workflows_Goal_Criteria table.
This is a virtual table, and is linked to the Workflows table (see Workflows on page305).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Goal_Criteria_IndexPrimary Key
SQL_INTEGER(unsigned) True
IdPrimary KeyForeign Key linked to columnId in Workflows table
SQL_VARCHAR(50) False
Goal_Criteria_Filter_Family SQL_VARCHAR(50) True
Goal_Criteria_Operator SQL_VARCHAR(50) True
Goal_Criteria_Property SQL_VARCHAR(50) True
Goal_Criteria_Property_Object_Type
SQL_VARCHAR(50) True
Goal_Criteria_Type SQL_VARCHAR(50) True
Goal_Criteria_Value SQL_VARCHAR(50) True
Goal_Criteria_Within_Time_Mode SQL_VARCHAR(50) True
www.simba.com 309
Reference Guide HubSpot Schema Tables
Workflows_Goal_List_Ids
The table below describes the Workflows_Goal_List_Ids table.
This is a virtual table, and is linked to the Workflows table (see Workflows on page305).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
Goal_List_Ids_IndexPrimary Key
SQL_INTEGER(unsigned) True
IdPrimary KeyForeign Key linked to columnId in Workflows table
SQL_VARCHAR(50) False
Goal_List_Ids_Value SQL_VARCHAR(255) True
www.simba.com 310
Reference Guide HubSpot Schema Tables
Workflows_Metadata_Triggered_By_Workflow_Ids
The table below describes the Workflows_Metadata_Triggered_By_Workflow_Idstable.
This is a virtual table, and is linked to the Workflows table (see Workflows on page305).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
IdPrimary KeyForeign Key linked to columnId in Workflows table
SQL_VARCHAR(50) False
Metadata_Triggered_By_Workflow_Ids_Index
Primary Key
SQL_INTEGER(unsigned) True
Metadata_Triggered_By_Workflow_Ids_Value
SQL_VARCHAR(255) True
www.simba.com 311
Reference Guide HubSpot Schema Tables
Workflows_Reenrollment_Trigger_Sets
The table below describes the Workflows_Reenrollment_Trigger_Sets table.
This is a virtual table, and is linked to the Workflows table (see Workflows on page305).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
IdPrimary KeyForeign Key linked to columnId in Workflows table
SQL_VARCHAR(50) False
Reenrollment_Trigger_Sets_IndexPrimary Key
SQL_INTEGER(unsigned) True
Reenrollment_Trigger_Sets_Value
SQL_VARCHAR(255) True
www.simba.com 312
Reference Guide HubSpot Schema Tables
Workflows_Segment_Criteria
The table below describes the Workflows_Segment_Criteria table.
This is a virtual table, and is linked to the Workflows table (see Workflows on page305).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
IdPrimary KeyForeign Key linked to columnId in Workflows table
SQL_VARCHAR(50) False
Segment_Criteria_IndexPrimary Key
SQL_INTEGER(unsigned) True
Segment_Criteria_Value SQL_VARCHAR(255) True
www.simba.com 313
Reference Guide HubSpot Schema Tables
Workflows_Suppression_List_Ids
The table below describes the Workflows_Suppression_List_Ids table.
This is a virtual table, and is linked to the Workflows table (see Workflows on page305).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
IdPrimary KeyForeign Key linked to columnId in Workflows table
SQL_VARCHAR(50) False
Suppression_List_Ids_IndexPrimary Key
SQL_INTEGER(unsigned) True
Suppression_List_Ids_Value SQL_VARCHAR(255) True
www.simba.com 314
Reference Guide HubSpot Schema Tables
Workflows_Trigger_Sets
The table below describes the Workflows_Trigger_Sets table.
This is a virtual table, and is linked to the Workflows table (see Workflows on page305).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
IdPrimary KeyForeign Key linked to columnId in Workflows table
SQL_VARCHAR(50) False
Trigger_Sets_IndexPrimary Key
SQL_INTEGER(unsigned) True
TriggerSets_Value SQL_VARCHAR(255) True
www.simba.com 315
Reference Guide HubSpot Schema Tables
Workflows_Unenrollment_Setting_Excluded_Workflows
The table below describes the Workflows_Unenrollment_Setting_Excluded_Workflows table.
This is a virtual table, and is linked to the Workflows table (see Workflows on page305).
None of the columns in this table are updatable.
This table contains the following foldable column:
l Id
This table does not contain Return Primary Key columns.
Column Name SQL Type Nullable
IdPrimary KeyForeign Key linked to columnId in Workflows table
SQL_VARCHAR(50) False
Unenrollment_Setting_Excluded_Workflows_Index
Primary Key
SQL_INTEGER(unsigned) True
Unenrollment_Setting_Excluded_Workflows_Value
SQL_VARCHAR(255) True
www.simba.com 316
Reference Guide HubSpot Schema Tables
Third-Party Trademarks
Linux is the registered trademark of Linus Torvalds in Canada, United States and/orother countries.
Mac, macOS, Mac OS, and OS X are trademarks or registered trademarks of Apple,Inc. or its subsidiaries in Canada, United States and/or other countries.
Microsoft, MSDN, Windows, Windows Server, Windows Vista, and the Windows startbutton are trademarks or registered trademarks of Microsoft Corporation or itssubsidiaries in Canada, United States and/or other countries.
HubSpot is a trademark or registered trademark of HubSpot, Inc. or its subsidiaries inCanada, the United States and/or other countries.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other namesmay be trademarks of their respective owners.
All other trademarks are trademarks of their respective owners.
www.simba.com 317
Reference Guide Third-Party Trademarks