-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Update new-contact-property-change.mjs #8462
Conversation
Slack Discussion: https://pipedream-users.slack.com/archives/CMZG4EBJ9/p1697210929916869 https://api.hubapi.com/crm/v3/objects/contacts/batch/read can only accept 50 inputs per call. If there are more than 50 contacts, it will fail with the following message: "The maximum number of inputs supported in a batch request for property histories is 50. Please reduce the number of items and try again" The code loops over the Contact IDs and limits the inputs to less than 50.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Thank you so much for submitting this! We've added it to our backlog to review, and our team has been notified. |
You need to bump the version of the component that you enhanced and the package.json too |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- You need to change the version of components/hubspot/sources/new-contact-property-change/new-contact-property-change.mjs.
- You need to change the version of components/hubspot/package.json.
Hi everyone, all test cases are passed! Ready for release! |
* Update new-contact-property-change.mjs Slack Discussion: https://pipedream-users.slack.com/archives/CMZG4EBJ9/p1697210929916869 https://api.hubapi.com/crm/v3/objects/contacts/batch/read can only accept 50 inputs per call. If there are more than 50 contacts, it will fail with the following message: "The maximum number of inputs supported in a batch request for property histories is 50. Please reduce the number of items and try again" The code loops over the Contact IDs and limits the inputs to less than 50. * bump versions * package.json --------- Co-authored-by: michelle0927 <michellelbergero@hotmail.com> Co-authored-by: michelle0927 <michelle0927@users.noreply.github.com>
Slack Discussion: https://pipedream-users.slack.com/archives/CMZG4EBJ9/p1697210929916869
https://api.hubapi.com/crm/v3/objects/contacts/batch/read can only accept 50 inputs per call. If there are more than 50 contacts, it will fail with the following message:
"The maximum number of inputs supported in a batch request for property histories is 50. Please reduce the number of items and try again"
The code loops over the Contact IDs and limits the inputs to less than 50.
WHAT
🤖 Generated by Copilot at 3741e30
Improved the performance and reliability of the
new-contact-property-change
source by processing the updated contacts in batches. Added abatchSize
variable and a for loop tonew-contact-property-change.mjs
to implement the batching logic.🤖 Generated by Copilot at 3741e30
WHY
Fixes bug whereby the workflow will fail if there are more than 50 Contacts in the BATCH API call
HOW
🤖 Generated by Copilot at 3741e30