Lightweight Bulk Company Attaching using API/NodeJS | Community
Skip to main content
Answered

Lightweight Bulk Company Attaching using API/NodeJS

  • April 26, 2023
  • 1 reply
  • 56 views

Joe Caffrey
Forum|alt.badge.img+1

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.

Best answer by Jacob Cox

Hi @Joe Caffrey !

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:

Let me know if you have any specific issues that you’re running into!

1 reply

Jacob Cox
Intercom Team
Forum|alt.badge.img+5
  • Sr. Technical Support Engineer
  • 441 replies
  • Answer
  • April 30, 2023

Hi @Joe Caffrey !

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:

Let me know if you have any specific issues that you’re running into!