Slack Archive
SearchChannelsQ&AUsersFiles

Slack Archive Browser

    Questions & Answers

    Pop Petru is trying to associate a conversation with a contact using the CRM API but encountered issues

    PPop Petru
    #apiOct 22, 2024

    Joe Conery suggests that associating conversations with contacts via API isn't possible and recommends creating a custom object as a workaround.

    JAnswered by joe conery

    Raghav Aggarwal asked for an API to retrieve object properties filtered by a specific property group name.

    RRaghav Aggarwal
    #apiOct 21, 2024

    There's no direct API filter for group name. The solution is to fetch all properties for the object (`GET /crm/v3/properties/{objectType}`) and then filter the results client-side based on the `groupName` field.

    RAnswered by Ryan Ginsberg

    Sneh needs to implement a video player pop-up on a HubSpot webpage.

    SSneh Shah
    #generalOct 21, 2024

    bspaulding recommends creating a custom module with a popup containing a video player and adding it to the page.

    BAnswered by bspaulding

    Matt S asked if HubSpot's OAuth grant type implementation uses PKCE (Proof Key for Code Exchange).

    MMatt S
    #apiOct 21, 2024

    Ryan Huff stated that, to his knowledge, HubSpot OAuth does not use PKCE.

    RAnswered by Ryan Huff

    Ankit reported getting a 202 'Accepted' response from the legacy v1 batch contact update API (/contacts/v1/contact/batch/) but the contacts weren't actually updated. Asked how to find errors.

    AAnkit
    #apiOct 21, 2024

    Joe Conery explained 202 means the request was accepted for asynchronous processing, not guaranteed success. He suggested checking for a status query endpoint (unlikely for v1) or re-querying the data after a delay. Using the v3 batch APIs is recommended for better status handling.

    JAnswered by joe conery

    Reece Sim sought a more robust CMS theme boilerplate than HubSpot's default.

    RReece Sim
    #themesOct 21, 2024

    Jennifer Nixon recommended the HubSpot Tailwind boilerplate and the marketplace channel for custom solutions.

    JAnswered by Jennifer Nixon

    Joe Conery asked how to retrieve the schema (including data types) for standard and custom HubSpot objects via API.

    Jjoe conery
    #apiOct 20, 2024

    Use the CRM Object Schemas API (`GET /crm-object-schemas/v3/schemas/{objectType}` for a specific object) or the CRM Properties API (`GET /crm/v3/properties/{objectType}` for all properties of an object).

    RAnswered by Ryan Ginsberg

    Joe Conery asked if there's a shortcut (like `?properties=all`) to retrieve all properties of an object record without listing them explicitly.

    Jjoe conery
    #apiOct 20, 2024

    No, there is no 'all' shortcut. The recommended method is to first fetch all property names using the Properties API (`GET /crm/v3/properties/{objectType}`) and then include those names in the `properties` parameter of the record retrieval request.

    RAnswered by Ryan Ginsberg

    Breannah Gladden faced an error when adding DND sections to a blog post template.

    BBreannah
    #themesOct 20, 2024

    Miteshkumar Padariya explained that blog post templates do not support DND areas and suggested using the post editor.

    MAnswered by Mitesh Padariya

    Travis Longmore sought guidance on automating the import of ticketing data (compressed JSON from S3) into HubSpot contacts, looking for alternatives to manual CSV uploads.

    TTravis Longmore
    #apiOct 19, 2024

    The recommended approach was to build a custom script (e.g., Python) to fetch/extract files from S3 (using AWS CLI/SDK) and use the HubSpot API (e.g., batch contact endpoints) to import the data. Joe Conery provided a basic code outline.

    JAnswered by joe conery

    Garrett Tacoronte encountered an 'out of bounds integer' error using the Conversations API (/conversations/v3/conversations/threads) with a large inboxId (7952967017), suggesting the API treated it as a 32-bit int.

    GGarrett Tacoronte
    #apiOct 18, 2024

    Nick Drane (HubSpot) clarified that inbox IDs are 4-byte integers. He provided the valid inbox IDs for the user's portal, confirming the large ID being used was incorrect.

    NAnswered by Nick Drane

    Joe Conery asked for the best deployment/hosting approach for a Python script needing to run every 5 minutes to sync data between HubSpot and MS Dynamics, wondering if HubSpot offered a solution.

    Jjoe conery
    #apiOct 18, 2024

    Ryan Ginsberg explained that HubSpot's serverless/custom code options are not designed for recurring background tasks. The recommended solution is to self-host the script externally (e.g., on AWS, Render) using a scheduler like CRON.

    RAnswered by Ryan Ginsberg

    Linda requires automated phone number formatting with country codes

    LLinda Castano
    #workflowsOct 18, 2024

    Sebastian provides a JavaScript code snippet to format numbers dynamically

    SAnswered by Sebastian

    Ryan Huff was encountering 400 errors when trying to upload a zip file using the CMS source code upload API via JS/TS and requested a working example.

    RRyan Huff
    #apiOct 18, 2024

    Aldo Carrillo provided a Node.js code example using `axios` and `form-data` for the file upload. Ryan Huff identified his error based on the example: he was incorrectly passing a Buffer instead of the file stream itself to FormData.

    RAnswered by Ryan Huff

    Bradley asks if the serverless function execution time limit (observed as 20s) can be bypassed or worked around.

    BBradley
    #serverless-functionsOct 18, 2024

    While direct bypass isn't possible, suggestions include code optimization. A common workaround for long-running tasks involves delegating the heavy processing to an external service (like AWS Lambda or another server) and using techniques like polling HubDB or webhooks to get the results back into HubSpot once completed.

    MAnswered by matiasvad

    Max wants to trigger the HubSpot chat widget on a button click in a React app instead of on page load.

    MMax Addison
    #generalOct 18, 2024

    Harpreet advises configuring the chat widget to not auto-load and using HubSpot's JavaScript API to manually open it via a button click.

    HAnswered by Harpreet Singh

    David Gibson asked if API results for associated records (like tickets for a company) could be sorted, specifically to get the newest records first.

    DDavid Gibson
    #apiOct 18, 2024

    Jacob Jennings suggested using the object's Search API endpoint (e.g., `/crm/v3/objects/tickets/search`) which allows filtering by association and specifying a sort order (like `createdate DESCENDING`) in the request body.

    JAnswered by Jacob Jennings

    Thomas encounters a 'module not found' error when deploying a CRM Card serverless function, even though it works locally. He asks about limitations on installable packages.

    TThomas Lane
    #data-driven-contentOct 18, 2024

    Thomas discovered the solution: the required package must be listed as a dependency in the `package.json` file located specifically within the `app.functions` folder of the CRM Card project structure.

    TAnswered by Thomas Lane

    Jesse Gaines asked for a method to pass logged-in user data from a Salesforce Client Portal to an embedded HubSpot Form to ensure submissions are correctly associated.

    JJesse Gaines
    #apiOct 17, 2024

    Ramandeep Singh suggested using hidden fields on the HubSpot form and populating them dynamically within the Salesforce Portal, potentially using Salesforce APIs to fetch user data like email.

    RAnswered by Ramandeep Singh

    Laura is seeking a way to automate updating HubSpot meeting outcomes based on Calendly meeting statuses beyond her current Zapier setup.

    LLaura Alonso
    #generalOct 17, 2024

    Ramandeep suggests implementing a custom script with webhooks or cron jobs to periodically check Calendly and sync changes to HubSpot.

    RAnswered by Ramandeep Singh
    Page 18 of 535