Slack Archive
SearchChannelsQ&AUsersFiles

Slack Archive Browser

    Questions & Answers

    Martin Hlavacka (mhl) encounters issues retrieving messages from ticket_to_conversation_v2 associations.

    MMartin Hlavacka
    #apiAug 12, 2024

    Eric Hirsh references an existing thread and mentions upcoming enhancements to the Conversations API by end of year.

    EAnswered by Eric Hirsh

    Alexandre wants to dynamically change the content of a schema.org FAQPage `<script>` tag based on keywords in the page URL. His attempt to use HubL `{% set %}` variables inside a JavaScript `if` statement (checking `window.location`) isn't working as expected.

    AAlexandre Smadja
    #seoAug 11, 2024

    Matt explains that HubL runs on the server before the page is sent to the browser, while JavaScript runs in the browser. Therefore, JS variables cannot control HubL `set` statements in this way. The solution is to perform the conditional logic entirely in HubL using the page URL variable (`page_meta.canonical_url`) and HubL's `string_containing` test.

    MAnswered by Matt

    Rakel is asking for guidance on displaying tag names correctly in her blog listing template.

    RRakel Fairfull
    #hs-cms-boilerplateAug 9, 2024

    Nicholas suggests using `{{ page_meta.html_title }}` to access page titles and mentions splitting the title to format it correctly.

    NAnswered by nick decker - level -32(negative)

    Craig Smith (craig992) asks how to show authenticated user activity for actions performed via a private app.

    CCraig Smith
    #apiAug 9, 2024

    Nicholas Decker suggests using the Timeline Events API to log user-specific actions manually.

    CAnswered by Craig Smith

    Gary is encountering an 'undefined' error when trying to access `hubspotClient.files.filesApi` in a serverless function, suspecting it's due to an outdated version of the `@hubspot/api-client` used in the serverless environment.

    GGary Wong
    #serverless-functionsAug 9, 2024

    Nicholas suggests this is likely the issue, acknowledging that the version of the `@hubspot/api-client` available in serverless functions might lag behind the latest npm version and differ from other environments like workflows, potentially causing inconsistencies.

    NAnswered by nick decker - level -32(negative)

    Kaitlynn needs to remove background image from quote template

    KKaitlynn
    #generalAug 8, 2024

    Jake Lett identifies CSS file containing background image URL

    JAnswered by Jake Lett

    Psalm asks how the V3 contact merge handles email addresses when merging two contacts (based on phone number) where only one contact has an email.

    PPsalm Gajudo
    #workflowsAug 8, 2024

    Justin explains that during a merge, the record designated as the `primaryObjectId` remains the primary record. Properties from the secondary record (like an email address) will be merged into the primary record if the primary record doesn't already have a value for that property. So, the email address should not be lost.

    JAnswered by Justin Givens - Level 2

    Rakel is trying to modify the blog_posts module but cannot find it to clone/edit for customization.

    RRakel Fairfull
    #hs-cms-boilerplateAug 8, 2024

    Bradley confirms the module uses React and suggests cloning might not be possible as it's not editable directly.

    BAnswered by Bradley

    Andrey Kondratyuk asks about balancing developer experience with Design Manager compatibility for marketplace themes

    AAndrey.DSRPTV
    #marketplaceAug 8, 2024

    Anton Bujanowski and Nicholas Decker recommend avoiding complex build tools (e.g., webpack) to ensure themes remain user-friendly in Design Manager.

    AAnswered by Anton

    Dnyaneshwar Zukle asks about using PHP in HubSpot

    DDnyaneshwar Zukle
    #generalAug 8, 2024

    Anton Bujanowski explains Hubl templating system while Scott Marion mentions PHP API client library

    TAnswered by Twentyninetimes

    Harry Parfitt experiences UI extension deployment issues

    HHarry Parfitt
    #generalAug 8, 2024

    Harry later resolves issue caused by corporate firewall restrictions

    HAnswered by Harry Parfitt

    Juan Sebastián Ayala (juansebastianayala20) cannot retrieve email templates via the /content/api/v2/templates endpoint.

    JJuan Sebastián Ayala
    #apiAug 8, 2024

    Nicholas Decker explains that templates must be marked for automation in HubSpot's UI to appear in API responses.

    NAnswered by nick decker - level -32(negative)

    Jack Seminara asks about implementing SCIM user provisioning via Azure AD with HubSpot

    JJack Seminara
    #randomAug 7, 2024

    Nicholas Decker outlines using HubSpot's User Provisioning API and permission/team mapping strategies

    NAnswered by nick decker - level -32(negative)

    Emma Boroson (emma662) wants to identify current subscriptions for contacts without tracking historical changes.

    EEmma Boroson
    #apiAug 7, 2024

    Nicholas Decker advises using the Lists API to segment and retrieve contacts based on subscription status.

    NAnswered by nick decker - level -32(negative)

    Psalm's workflow uses custom code to merge duplicate contacts based on phone number. The action logs say 'Contacts merged!', but the contacts remain separate duplicates.

    PPsalm Gajudo
    #workflowsAug 7, 2024

    Justin points out the provided custom code uses an outdated V1 merge API endpoint (`/contacts/v1/contact/merge-vids/{idToMerge}`). He provides a link to the current V3 merge API documentation (`/crm/v3/objects/contacts/merge`) which the developer should use to update the code. Psalm later confirms updating the code based on this documentation resolved the issue.

    JAnswered by Justin Givens - Level 2

    Sean is experiencing an issue where a module's module.js script tag appears in the DOM but seems inactive (colored black), while the same tag works if moved to the page footer.

    SSean Bell
    #modulesAug 7, 2024

    Nicholas suggests that a JavaScript error occurring earlier on the page is likely preventing the subsequent module.js script from executing correctly. Jayme also suggests checking for syntax errors (like unclosed tags) in scripts loaded before the problematic one.

    NAnswered by nick decker - level -32(negative)

    Rajanikanth Devulapalli wants to remove legacy jQuery from header includes

    RRajanikanth Devulapalli
    #generalAug 7, 2024

    Anton Bujanowski and Matt Scott provide troubleshooting steps including CMS settings and template modifications

    AAnswered by Anton

    Ace encountered an error during UI extension deployment stating required scopes are missing for './app.functions', but the error message itself doesn't specify which scopes.

    AAce Hedger
    #serverless-functionsAug 7, 2024

    Nicholas suggests checking the HubSpot API documentation for the endpoints used in the serverless function to identify the required scopes. He also recommends inspecting the full error object (potentially using JSON.stringify) as the specific scope names might be nested within it.

    NAnswered by nick decker - level -32(negative)

    Kevin is finding that data (like post_id) sent to a webhook trigger URL is not directly accessible within subsequent custom code actions in the same workflow.

    KKevin-C
    #workflowsAug 7, 2024

    Carter suggests using a 'Format data' action immediately after the webhook trigger. Configure it to simply take the webhook data payload value as input (no specific formatting function needed). The output of this 'Format data' action can then be successfully referenced within the custom code action.

    CAnswered by carter

    Amitabh wants to trigger a workflow based on a specific file being attached to a contact record and needs a reliable way to identify the file.

    AAmitabh Saikia
    #workflowsAug 7, 2024

    Maximilian suggests avoiding activity triggers. Instead, create a file property, trigger the workflow when that property is known, copy the file details (like name or URL) to a text property, and then use workflow filters/branches based on the text property's value.

    MAnswered by Maximilian Holzer
    Page 34 of 535