Hi again @jonl
Thanks for providing me with all the details here.
Unfortunately, I don’t see how you can redirect to the create
form for the native collection companies
when the Smart Action has been triggered from the hubspot-companies
Smart Collection.
You can implement a new create
form in the Smart Action itself regrouping both -
- The fields needed to persist the new company in your database
- The fields needed to fire the call to the Hubspot API
Did you see what the Smart Action documentation had to offer about -
Don’t forget to import
const { companies } = require('../models');
in your Smart Collection’s route file to use the ORM methods.