I would like to create a new line item on a deal using the custom code actions in a workflow, I am new to JS.Node but have tried this without any luck, any one that can see what I am doing wrong?
@JStenbaek it seems that the callback is missing at line 3:
exports.main = (event, callback) => {
Also, it seems that in line 13 you are referring to the product id that there is in the sample code in the documentation. Since this product probably doesn't exist in your portal you will probably end up with an error. You need to change this for an actual product id in your HubSpot product library. You can find this in Settings > Products & Quotes:
hs_product_id: '191902',
Start by fixing this and let me know where it leads you and I could keep continue to help you.
@JStenbaek it seems that the callback is missing at line 3:
exports.main = (event, callback) => {
Also, it seems that in line 13 you are referring to the product id that there is in the sample code in the documentation. Since this product probably doesn't exist in your portal you will probably end up with an error. You need to change this for an actual product id in your HubSpot product library. You can find this in Settings > Products & Quotes:
hs_product_id: '191902',
Start by fixing this and let me know where it leads you and I could keep continue to help you.