Hi all,
I’m attempting to retrieve line items associated with a deal using a Custom Code Action in a HubSpot Workflow. I’m using a Private App with full CRM read access. Authentication works, and I can fetch general deal information, but I’m consistently unable to retrieve associated line items—even though they’re clearly visible in the HubSpot UI.
What is working:
- I can retrieve deal information using /crm/v3/objects/deals/dealId.
- Authentication via Private App works with Bearer token.
- Deal records are new and contain line items added through the “Add Product” button.
What is not working:
- GET /crm/v3/objects/deals/dealId/line_items
Returns: results: - GET /crm/v4/objects/deals/dealId/associations/line_items/deal_to_line_item
Returns: 405 Method Not Allowed - GET /crm/v4/objects/deals/{dealId}/associations/line_items
Returns: 404 Not Found - Checked for associated quotes using /crm/v4/objects/deals/{dealId}/associations/quotes – no quotes found.
- Tried adding archived=false in requests. No difference.
- Removed all property filters to rule out filtering as a cause.
Goal:
I simply need to access the names (or product values) of the line items associated with a deal using a supported method within a workflow-based custom code action. So far, no combination of endpoints is returning the expected line item data, and I would appreciate a working approach or confirmation if there are known limitations here.
If you need more context:
- The portal uses a private app with full object scopes
- Deals are created recently
- Line items are added from the product library
- No quotes are involved
Thanks in advance for any guidance.