Client Work

Solving Integration Issues between PhantomBuster and HubSpot with Custom Script

Written by On The Fuze | Jan 12, 2024 8:55:56 AM

 

 

Solution

We broke this project into 3 steps…

(1) Investigation
We investigated 3 possible solutions:

  • Improve the integration
  • Develop a PhantomBuster custom code
  • Improve code to take more actions


(2) Develop Code
Using the PhantomBuster API, we made a POST request to the BP API, and pulled information from the last execution of the “Linked Company Scraper” Phantom. 

(3) Flexible Code Changes

  • Changes to the code were made to make it native because the client requested that a HubSpot default property be used to identify the companies that we had to update.
  • Changes were made to not only take the last Phantom but also the existing ones after the last execution: The code no longer just takes the last result, but identifies the last time it was executed, evaluates all the results, and takes them all at the same time, after the last execution of the custom code we developed.

GREAT WORK TEAM OTF!