MarketingEmailById |
Get the details of a specified marketing email.Get the details for a marketing email.
Catalog: MarketingEmailsV33
Schema: MarketingEmails
Label: {res:itgen_hubspot_marketingemailbyid_plural}
This is a read-only table function. The HubSpot API may not support changing the data or the Invantive UniversalSQL 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 MarketingEmailById. 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 |
---|---|---|---|---|
archived |
boolean |
☐ |
|
Whether to return only results that have been archived. |
emailId |
string |
☑ |
|
The marketing email ID. |
includeStats |
boolean |
☐ |
|
Include statistics with email |
Columns of Table Function
The columns of the table function MarketingEmailById are shown below. Each column has an SQL data type.
Name |
Data Type |
Label |
Required |
Documentation |
---|---|---|---|---|
activeDomain |
string |
{res:itgen_hubspot_activedomain} |
☐ |
The active domain of the email. |
archived |
boolean |
Archived |
☐ |
Determines if the email is archived or not. |
businessUnitId |
string |
{res:itgen_hubspot_businessunitid} |
☐ |
|
campaign |
string |
Campaign |
☐ |
The ID of the campaign this email is associated to. |
content_flexAreas |
string |
{res:itgen_hubspot_content_flexareas} |
☐ |
|
content_plainTextVersion |
string |
{res:itgen_hubspot_content_plaintextversion} |
☐ |
|
content_smartFields |
string |
{res:itgen_hubspot_content_smartfields} |
☐ |
|
content_styleSettings |
string |
{res:itgen_hubspot_content_stylesettings} |
☐ |
|
content_templatePath |
string |
{res:itgen_hubspot_content_templatepath} |
☐ |
|
content_themeSettingsValues |
string |
{res:itgen_hubspot_content_themesettingsvalues} |
☐ |
|
content_widgetContainers |
string |
{res:itgen_hubspot_content_widgetcontainers} |
☐ |
|
content_widgets |
string |
{res:itgen_hubspot_content_widgets} |
☐ |
|
createdAt |
datetime |
Created at |
☐ |
The date and time of the email's creation, in ISO8601 representation. |
createdById |
string |
Created by ID |
☐ |
The id of the user who created the email. |
deletedAt |
datetime |
Deleted at |
☐ |
|
feedbackSurveyId |
string |
{res:itgen_hubspot_feedbacksurveyid} |
☐ |
The ID of the feedback survey linked to the email. |
folderId |
int64 |
Folder ID |
☐ |
|
from_customReplyTo |
string |
{res:itgen_hubspot_from_customreplyto} |
☐ |
The reply to recipients will see. |
from_fromName |
string |
{res:itgen_hubspot_from_fromname} |
☐ |
The name recipients will see. |
from_replyTo |
string |
{res:itgen_hubspot_from_replyto} |
☐ |
The from address and reply to email address (if no customReplyTo defined) recipients will see. |
id |
string |
ID |
☐ |
The email ID. |
isPublished |
boolean |
{res:itgen_hubspot_ispublished} |
☐ |
Returns the published status of the email. This is read only. |
isTransactional |
boolean |
{res:itgen_hubspot_istransactional} |
☐ |
Returns whether the email is a transactional email or not. This is read only. |
language |
string |
Language |
☐ |
|
name |
string |
Name |
☐ |
The name of the email, as displayed on the email dashboard. |
publishDate |
datetime |
Publish Date |
☐ |
The date and time the email is scheduled for, in ISO8601 representation. This is only used in local time or scheduled emails. |
publishedAt |
datetime |
Published at |
☐ |
The date and time the email was published at, in ISO8601 representation. |
publishedById |
string |
{res:itgen_hubspot_publishedbyid} |
☐ |
|
rssData_blogEmailType |
string |
{res:itgen_hubspot_rssdata_blogemailtype} |
☐ |
|
rssData_blogImageMaxWidth |
int32 |
{res:itgen_hubspot_rssdata_blogimagemaxwidth} |
☐ |
|
rssData_blogLayout |
string |
{res:itgen_hubspot_rssdata_bloglayout} |
☐ |
|
rssData_hubspotBlogId |
string |
{res:itgen_hubspot_rssdata_hubspotblogid} |
☐ |
|
rssData_maxEntries |
int32 |
{res:itgen_hubspot_rssdata_maxentries} |
☐ |
|
rssData_rssEntryTemplate |
string |
{res:itgen_hubspot_rssdata_rssentrytemplate} |
☐ |
|
rssData_timing |
string |
{res:itgen_hubspot_rssdata_timing} |
☐ |
|
rssData_url |
string |
{res:itgen_hubspot_rssdata_url} |
☐ |
|
rssData_useHeadlineAsSubject |
boolean |
{res:itgen_hubspot_rssdata_useheadlineassubject} |
☐ |
|
sendOnPublish |
boolean |
{res:itgen_hubspot_sendonpublish} |
☐ |
Determines whether the email will be sent immediately on publish. |
state |
string |
State |
☐ |
The email state. |
stats_counters |
string |
{res:itgen_hubspot_stats_counters} |
☐ |
Counters like number of `sent`, `open` or `delivered`. |
stats_deviceBreakdown |
string |
{res:itgen_hubspot_stats_devicebreakdown} |
☐ |
Statistics by device. |
stats_qualifierStats |
string |
{res:itgen_hubspot_stats_qualifierstats} |
☐ |
Number of emails that were dropped and bounced. |
stats_ratios |
string |
{res:itgen_hubspot_stats_ratios} |
☐ |
Ratios like `openratio` or `clickratio` |
subcategory |
string |
Subcategory |
☐ |
The email subcategory. |
subject |
string |
{res:itgen_hubspot_subject} |
☐ |
The subject of the email. |
subscriptionDetails_officeLocationId |
string |
{res:itgen_hubspot_subscriptiondetails_officelocationid} |
☐ |
ID of the selected office location. |
subscriptionDetails_preferencesGroupId |
string |
{res:itgen_hubspot_subscriptiondetails_preferencesgroupid} |
☐ |
|
subscriptionDetails_subscriptionId |
string |
{res:itgen_hubspot_subscriptiondetails_subscriptionid} |
☐ |
ID of the subscription. |
testing_abSampleSizeDefault |
string |
{res:itgen_hubspot_testing_absamplesizedefault} |
☐ |
Version of the email that should be sent if there are too few recipients to conduct an AB test. |
testing_abSamplingDefault |
string |
{res:itgen_hubspot_testing_absamplingdefault} |
☐ |
Version of the email that should be sent if the results are inconclusive after the test period, master or variant. |
testing_abStatus |
string |
{res:itgen_hubspot_testing_abstatus} |
☐ |
Status of the AB test. |
testing_abSuccessMetric |
string |
{res:itgen_hubspot_testing_absuccessmetric} |
☐ |
Metric to determine the version that will be sent to the remaining contacts. |
testing_abTestPercentage |
int32 |
{res:itgen_hubspot_testing_abtestpercentage} |
☐ |
The size of your test group. |
testing_hoursToWait |
int32 |
{res:itgen_hubspot_testing_hourstowait} |
☐ |
Time limit on gathering test results. After this time is up, the winning version will be sent to the remaining contacts. |
testing_testId |
string |
{res:itgen_hubspot_testing_testid} |
☐ |
The ID of the AB test. |
to_limitSendFrequency |
boolean |
{res:itgen_hubspot_to_limitsendfrequency} |
☐ |
|
to_suppressGraymail |
boolean |
{res:itgen_hubspot_to_suppressgraymail} |
☐ |
|
type |
string |
Type |
☐ |
The email type, this is derived from other properties on the email such as subcategory. |
updatedAt |
datetime |
Updated at |
☐ |
The date and time of the last update to the email, in ISO8601 representation. |
updatedById |
string |
Updated by ID |
☐ |
The id of the user who last updated the email. |
webversion_domain |
string |
{res:itgen_hubspot_webversion_domain} |
☐ |
|
webversion_expiresAt |
datetime |
{res:itgen_hubspot_webversion_expiresat} |
☐ |
|
webversion_metaDescription |
string |
{res:itgen_hubspot_webversion_metadescription} |
☐ |
|
webversion_redirectToPageId |
string |
{res:itgen_hubspot_webversion_redirecttopageid} |
☐ |
|
webversion_redirectToUrl |
string |
{res:itgen_hubspot_webversion_redirecttourl} |
☐ |
|
webversion_slug |
string |
{res:itgen_hubspot_webversion_slug} |
☐ |
|
webversion_title |
string |
{res:itgen_hubspot_webversion_title} |
☐ |
|
18-12-2024 20:09 Version 24.1.33-BETA+5180