This example uses a fictitious Shuttle Bus Rental Service. The sample allows a salesperson to quickly determine which of the company’s services match the customer’s requirements. This example uses HubSpot quotes, but it adds a custom UI inside the CRM so that users can quickly and intuitively create specialized quotes with a lower margin for error than using the full featured quote tool.
We recommend installing this sample in a Sandbox account.
- Update to latest CLI version by running
npm install -g @hubspot/cli@latest
. - Run
hs init
if you haven’t already done so to create a config file for your parent account. - Run
hs auth
to authenticate your account. Alternatively, select your pre-authenticated account withhs accounts use
.
In the folder where you want this sample to be cloned, create a new project by running hs project create --templateSource="HubSpot/ui-extensions-examples" --location="generate-quotes" --name="generate-quotes" --template="generate-quotes"
Import sample products into your HubSpot account:
- Inside your HubSpot account, click the settings gear icon.
- In the left sidebar menu under
Data Management
, chooseImport & Export
. - Click the
Go to import
button, then on the following screen clickStart an import
. - Choose
Import file from computer
, thenone file
, thenone object
, then select theProducts
. - Select the products.csv file in this project and click
Next
and thenFinish
to finish the import.
Now in the CLI, enter into this newly created folder by cd generate-quotes
. Run npm install
to install the dependencies for this project.
Run hs project upload
. Alternatively, if you’d like to build on this project, run hs project dev
to kickoff the dev process and see changes reflected locally as you build.
HubSpot quotes are always associated with a deal record to track the progress of the quote. If you don’t have any deals in the account you’re using to view this sample, create a deal now.
- In the main menu, select
Sales
>Deals
. - Click
Create deal
in the top right hand corner and fill in all required fields. Clickcreate
once you’ve finished filling in your deal details. - Your new deal should appear in the
Deals table
. Select it and navigate to thecustom tab
in the middle pane to access the Shuttle bus quotes.