Hello I need help iterating through and attaching contacts to a defined company.
I can do this by manually calling the API but need to iterate through an away.
I found https://github.com/intercom/intercom-node but am having problems properly configuring. Once Configured I’d be able to pull list of users that have current segment and pass them through attaching a company. Any help configuring/walking through basics of the intercom-node library would be very helpful.
Page 1 / 1
Hi
Either way you perform this action whether it’s with our REST API or via the intercom-node package, you’ll need to grab that Array of Contacts and loop through it, connecting each Contact to the Company 1-by-1. The general overview of how you would do this with the Node package would be to:
- Search for Contacts based on the Segment that they are in
- Store the returned Contact IDs to an Array
- Loop through that Array and make the Attach a Contact for each ID
Let me know if you have any specific issues that you’re running into!
Reply
Join the Intercom Community 🎉
Already have an account? Login
Login to the community
No account yet? Create an account
Intercom Customers and Employees
Log in with SSOor
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.