Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

source-hubspot-native: custom object path components #2064

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

Alex-Bair
Copy link
Contributor

@Alex-Bair Alex-Bair commented Oct 17, 2024

Description:

Some HubSpot endpoints like /v3/properties/{objectType} do not work for every custom object type. However, these endpoints do work if we prepend a p_ to the beginning of the custom object name and use that in the path instead.

I chose to add path_component to the crm_object_with_associations function signature mainly so we only prepend p_ in one spot rather than in two. I'm not dead-set on this approach though, and I can adjust if there's a better/more desireable solution.

Workflow steps:

(How does one use this feature, and how has it changed)

Documentation links affected:

(list any documentation links that you created, or existing ones that you've identified as needing updates, along with a brief description)

Notes for reviewers:

Tested on a local stack. Confirmed custom objects and their properties are retrieved from HubSpot.


This change is Reviewable

Some HubSpot endpoints like /v3/properties/{objectType} do not work for
every custom object type. However, these endpoints do work if we prepend
a "p_" to the beginning of the custom object name and use that in the
path instead.
@Alex-Bair Alex-Bair added the change:unplanned Unplanned change, useful for things like doc updates label Oct 17, 2024
Copy link
Member

@williamhbaker williamhbaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@Alex-Bair Alex-Bair merged commit 2f7298d into main Oct 17, 2024
72 of 77 checks passed
@Alex-Bair Alex-Bair deleted the bair/hubspot-native-custom-object-endpoints branch October 17, 2024 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change:unplanned Unplanned change, useful for things like doc updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants