Proposal summary
This proposal summarizes the functionality for integrating Hubspot deals data with Netsuite. When a deal is created/updated in the closed won stage in Hubspot. We need to create a sales order in Netsuite for the corresponding deals.
Requirement
To Integrate Hubspot with Netsuite. When creating a new deal or updating an existing deal in Hubspot we need to check the deal stage is “closed” won. If the deal stage is “closed won” we have to create sales orders in Netsuite with “pending fulfillment status”.
We have to also create customers in Netsuite. When the Hubspot customer does not exist on the Netsuite.
Our Solution
For creating/updating sales orders for Hubspot deals.
- The integration will work based on a scheduled basis.
- We will create a scheduled script in Netsuite for Integrating Hubspot Deals with Netsuite.
- The script will work on a specific Time duration (every 2 hrs time span).
- Get all deals from Hubspot with “closed won ”sales stage and created / last updated after the previous day of script execution. This data will be fetched from Hubspot using the API call.
- We will create a sales order in the Netsuite with a “pending fulfillment” status. Also, store Hubspot “deal id” for restricting duplicate sales orders creation in Netsuite.
- The order with the item line the same quantity and same amount which is displayed in the Hubspot deal.
- Every time processing Hubspot API data we will check if the deal already exists on Netsuite using Hubspot “deal id”.
- If the deal id exists we have to verify the quantity and items in already created orders in Netsuite.
- If any mismatch occurs in the line items,item quantity, and the total price we will update those data in the already created sales order in NetSuite.
- Before creating/ updating each sales order in Netsuite. We will check if the HubSpot customer is existing or not in Netsuite.
- If it exists we will create an order for the customer else we will create a new customer in Netsuite then create a sales order for that customer.
- Each Deal is associated with the company. That company is considered as a customer in Netsuite.
For changing deal stage in Hubspot
- Change the sales stage to shipped in Hubspot. When all items are fulfilled in Netsuite.
- We will use a user event script to identify the sales order status.
- We will check created from sales order status when creating new shipments (item fulfillments) in Netsuite.
- If the status is changed to pending billing/ billed status then we will move the sales stage to shipped.
Assumptions
- We will not consider the historical data for integration.
- The item map over Netsuite and Hubspot is done from the client-side.
- The item’s SKU in HubSpot is set as the external id of the corresponding Netsuite item.
- The Hubspot item’s “object id” is needed to store in the Netsuite items record using a custom item field.
- Only the inventory items are considering for sales order creation (Not consider the kit/package, group,discount for order creation)
- We are not checking whether the items are back ordered.We will create a sales order in Netsuite with backorder items.
- For customer data. We take associated companies as customers of the deal. We assume that only one company for one deal.
- We will use “company id” for identifying the Hubspot customer in Netsuite.
- For mapping with HubSpot customers and NetSuite customers the HubSpot ”company id” will be used.Hubspot company id Must be set as the Netsuite Customer record’s external id.
- This customer mapping over Netsuite and Hubspot is done by the client-side.
Questions
- Kindly provide Netsuite and hubspot access for Implementation.
- Have you confirmed the partial fulfillment scenario in Netsuite?