Listen for HubSpot webhooks triggered by the update of a Product's description, then propagate this updated description to all Line Items associated with that Product on all open Deals
- Log into HubSpot account
- Go to Settings → Integrations → Private Apps
- Create a new private app
- Give it scopes:
- crm.objects.products.read
- crm.objects.line_items.read/write
- crm.objects.deals.read/write
- Register Webhook
- enter target url (Lambda endpoint)
- listen for product.propertyChange → description
- Copy Private App API Token
- Set as environment var "API_TOKEN" in Lambda
- In AWS config, set Handler to "index.ProductEventHandler"
- Select Node.js runtime 18.x or higher