GithubHelp home page GithubHelp logo

ayanpan / hubspot-connectivity-using-boomi Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 17 KB

The objective of this document is to show the HubSpot configurations which are required to get it connected with Boomi to synchronize records with various other applications.

License: Creative Commons Zero v1.0 Universal

JavaScript 100.00%
boomi boomi-integrated hubspot hubspot-api hubspot-crm

hubspot-connectivity-using-boomi's Introduction

HubSpot Connectivity using Boomi

Introduction

HubSpot’s Customer Relationship Management (CRM) platform has the tools required for marketing, sales, content management, and customer service.  It can store Customer, Engagements, Product, Deals, and various other details related to CRM operations and transactions.

The objective of this document is to show the HubSpot configurations which are required to get it connected with Boomi to synchronize records with various other applications.

HubSpot Authentication Options

Option-1: Fetch HubSpot API Key

Step-1: Go to Settings --> Integrations --> API Key and click “Show”. image

Step-2: Use this API key in Request URL as Query Parameter.

image

Option-2: Create Private App in HubSpot

Step-1: Go to Settings --> Integrations --> Private Apps and click “Create a private app”.

image

Step-2: Fill Basic Info.

image

Step-3: Select CRM Scopes and click “Create app”.

image

Step-4: A pop-up window will now open. Click “Continue creating”.

image

Step-5: Click “Show token” and then “Copy” to save it in a secure location.

image

Step-6: Token can also be viewed by going through Settings --> Private Apps --> Ayan’s API (Private App created in Step-4).

image

image

Step-7: Use this token as “Bearer Token” in the Request Header.

image

Implement Pagination in Boomi to Fetch Records from HubSpot

Overall Boomi process to fetch records from HubSpot using Pagination, and send the records to NetSuite.

image

Step-1: Set Last Successful Run Date

image

Step-2: Set JSON profile for subsequent Map shape.

image

Step-3: Convert normal date value to EPOCH date value. Please refer "Normal Date to EPOCH Date.js" file for the conversion code. This is required because HubSpot accepts only EPOCH date in Search query.

image

Step-4: Set Request JSON to search HubSpot records.

image

Message: Please refer "Message Shape JSON.txt" file.

Example: Please refer "Message Shape JSON Example.json" file. Default Limit is 10 and Maximum Limit is 100. “Properties” key is used to fetch only the required fields from HubSpot.

Step-5: Set HubSpot connection.

image

Step-6: Set HubSpot operation.

image

Step-7: If value of “total” key is greater than 0, then records exist in HubSpot and proceed with next steps in Branch-1. Below is a Sample Response.

image

image

Step-8: If value of “after” key is not null, then more records need to be fetched and pagination is required to be carried out in this Boomi process.

image

image

Step-9: Set value of “after” key in Dynamic Process Property.

image

Step-10: Return to “Set HubSpot Filter Groups” Message shape to form a loop of requests being made to HubSpot. This loop will break once value of “after” key is null.

Implement UPSERT Operation

Below is the sample Postman screenshot.

image

Sample URL: https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/[email protected]/?hapikey=hubspot_api_key_value

where, [email protected] is the email-id which needs to UPSERT, and “createOrUpdate” value in URL is to implement UPSERT operation.

Sample Request Payload: Please refer "Sample Request Payload.json" file.

Sample Response Payload: Please refer "Sample Response Payload.json" file.

If “isNew” value is “true”, then record is created. If “isNew” value is “false”, then record is updated.

hubspot-connectivity-using-boomi's People

Contributors

ayanpan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.