BlogPosts: HubSpot Blog Posts |
Get all Blog PostsGet the list of blog posts. Supports paging and filtering. This method would be useful for an integration that examined these models and used an external service to suggest edits.
Catalog: CMSBlogPosts
Schema: BlogPosts
Label: Blog Posts
This is a read-only table function. The HubSpot API may not support changing the data or the Invantive SQL driver for HubSpot does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the HubSpot API.
Parameters of Table Function
The following parameters can be used to control the behaviour of the table function BlogPosts. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values.
Value specification by position is done by listing all values from the first to the last needed value. For example: a `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three.
Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third.
Name |
Data Type |
Required |
Default Value |
Documentation |
---|---|---|---|---|
after |
string |
☐ |
|
The cursor token value to get the next set of results. You can get this from the `paging.next.after` JSON property of a paged response containing more results. |
archived |
boolean |
☐ |
|
Specifies whether to return deleted Blog Posts. Defaults to `false`. |
createdAfter |
datetime |
☐ |
|
Only return Blog Posts created after the specified time. |
createdAt |
datetime |
☐ |
|
Only return Blog Posts created at exactly the specified time. |
createdBefore |
datetime |
☐ |
|
Only return Blog Posts created before the specified time. |
updatedAfter |
datetime |
☐ |
|
Only return Blog Posts last updated after the specified time. |
updatedAt |
datetime |
☐ |
|
Only return Blog Posts last updated at exactly the specified time. |
updatedBefore |
datetime |
☐ |
|
Only return Blog Posts last updated before the specified time. |
Columns of Table Function
The columns of the table function BlogPosts are shown below. Each column has an SQL data type.
Name |
Data Type |
Label |
Required |
Documentation |
---|---|---|---|---|
abStatus |
string |
A/B Status |
☐ |
|
abTestId |
string |
A/B Test ID |
☐ |
|
archived |
boolean |
Archived |
☐ |
|
archivedInDashboard |
boolean |
Archived in Dashboard |
☐ |
If True, the post will not show up in your dashboard, although the post could still be live. |
authorName |
string |
Author Name |
☐ |
The name of the user that updated this Blog Post. |
blogAuthorId |
string |
Blog Author ID |
☐ |
The ID of the Blog Author associated with this Blog Post. |
campaign |
string |
Campaign |
☐ |
The GUID of the marketing campaign this Blog Post is a part of. |
categoryId |
int32 |
Category ID |
☐ |
ID of the type of object this is. Should always . |
contentGroupId |
string |
Content Group ID |
☐ |
The ID of the parent Blog this Blog Post is associated with. |
contentTypeCategory |
string |
Content Type Category |
☐ |
An ENUM descibing the type of this object. Should always be BLOG_POST. |
created |
datetime |
Created at |
☐ |
|
createdById |
string |
Created by ID |
☐ |
The ID of the user that created this Blog Post. |
currentlyPublished |
boolean |
Currently Published |
☐ |
|
currentState |
string |
Current State |
☐ |
A generated ENUM descibing the current state of this Blog Post. Should always match state. |
deletedAt |
datetime |
Deleted at |
☐ |
The timestamp (ISO8601 format) when this Blog Post was deleted. |
domain |
string |
Domain |
☐ |
The domain this Blog Post will resolve to. If null, the Blog Post will default to the domain of the ParentBlog. |
dynamicPageDataSourceId |
string |
Dynamic Page Data Source ID |
☐ |
|
dynamicPageDataSourceType |
int32 |
Dynamic Page Data Source Type |
☐ |
|
enableDomainStylesheets |
boolean |
Enable Domain Stylesheets |
☐ |
Boolean to determine whether or not the styles from the template should be applied. |
enableGoogleAmpOutputOverride |
boolean |
Enable Google AMP Output Override |
☐ |
Boolean to allow overriding the AMP settings for the blog. |
enableLayoutStylesheets |
boolean |
Enable Layout Stylesheets |
☐ |
Boolean to determine whether or not the styles from the template should be applied. |
featuredImage |
string |
Featured Image |
☐ |
The featuredImage of this Blog Post. |
featuredImageAltText |
string |
Featured Image Alternate Text |
☐ |
Alt Text of the featuredImage. |
folderId |
string |
Folder ID |
☐ |
|
footerHtml |
string |
Footer (HTML) |
☐ |
Custom HTML for embed codes, javascript that should be placed before the </body> tag of the page. |
headHtml |
string |
Head (HTML) |
☐ |
Custom HTML for embed codes, javascript, etc. that goes in the <head> tag of the page. |
htmlTitle |
string |
Title (HTML) |
☐ |
The html title of this Blog Post. |
id |
string |
ID |
☐ |
The unique ID of the Blog Post. |
includeDefaultCustomCss |
boolean |
Include Default Custom CSS |
☐ |
Boolean to determine whether or not the Primary CSS Files should be applied. |
language |
string |
Language |
☐ |
The explicitly defined ISO 639 language code of the Blog Post. If null, the Blog Post will default to the language of the ParentBlog. |
layoutSections |
string |
Layout Sections |
☐ |
|
linkRelCanonicalUrl |
string |
Link Rel Canonical (URL) |
☐ |
Optional override to set the URL to be used in the rel=canonical link tag on the page. |
mabExperimentId |
string |
MAB Experiment ID |
☐ |
|
metaDescription |
string |
Meta Description |
☐ |
A description that goes in <meta> tag on the page. |
name |
string |
Name |
☐ |
The internal name of the Blog Post. |
pageExpiryDate |
int64 |
Page Expiry Date |
☐ |
|
pageExpiryEnabled |
boolean |
Page Expiry Enabled |
☐ |
|
pageExpiryRedirectId |
int64 |
Page Expiry Redirect ID |
☐ |
|
pageExpiryRedirectUrl |
string |
Page Expiry Redirect (URL) |
☐ |
|
password |
string |
Password |
☐ |
Set this to create a password protected page. Entering the password will be required to view the page. |
postBody |
string |
Post Body |
☐ |
The HTML of the main post body. |
postSummary |
string |
Post Summary |
☐ |
The summary of the blog post that will appear on the main listing page. |
publicAccessRulesEnabled |
boolean |
Public Access Rules Enabled |
☐ |
Boolean to determine whether or not to respect publicAccessRules. |
publishDate |
datetime |
Publish Date |
☐ |
The date (ISO8601 format) the blog post is to be published at. |
publishImmediately |
boolean |
Publish Immediately |
☐ |
Set this to true if you want to be published immediately when the schedule publish endpoint is called, and to ignore the publish_date setting. |
rssBody |
string |
RSS Body |
☐ |
The contents of the RSS body for this Blog Post. |
rssSummary |
string |
RSS Summary |
☐ |
The contents of the RSS summary for this Blog Post. |
slug |
string |
Slug |
☐ |
The path of the this blog post. This field is appended to the domain to construct the url of this post. |
state |
string(25) |
State |
☐ |
An ENUM descibing the current state of this Blog Post. |
tagIds |
string |
Tag IDs |
☐ |
List of IDs for the tags associated with this Blog Post. |
themeSettingsValues |
string |
Theme Setting Values |
☐ |
|
translatedFromId |
string |
Translated from ID |
☐ |
ID of the primary blog post this object was translated from. |
translations |
string |
Translations |
☐ |
|
updated |
datetime |
Updated at |
☐ |
|
updatedById |
string |
Updated by ID |
☐ |
The ID of the user that updated this Blog Post. |
url |
string |
URL |
☐ |
A generated field representing the URL of this blog post. |
useFeaturedImage |
boolean |
Use Featured Image |
☐ |
Boolean to determine if this post should use a featuredImage. |
widgetContainers |
string |
Widget Containers |
☐ |
A data structure containing the data for all the modules inside the containers for this post. This will only be populated if the page has widget containers. |
widgets |
string |
Widgets |
☐ |
A data structure containing the data for all the modules for this page. |
17-08-2023 07:25 Version 22.1.262-BETA+4120