sending email using custom code workflow action on developer account
SOLVE
I am trying to send an email using a custom code action in a workflow, because I want to add a cc to the email. The request seems correct, but I get a forbidden message. I am on a developer account and I am not really sure if the developer account supports doing this or is my code incorrect?
The 403 error indicates that there is something wrong with the authorization. That can either mean that your authorization token is expired, has the incorrect scope or that your current account has no access to the transactional email add-on.
Based on the docs, it should be possible to add a CC to the single-send API. You can add it to the message object in your example.
Learn more about HubSpot by following me on LinkedIn or YouTube
✅ Did my answer solve your issue? Help the community by marking it as the solution.
(1) Any app (a custom code bit) that you build inside a "Developer Account" can then be deployed in either a "Standard Account" or a "Developer TEST Account"
(2) If you wish to deploy your custom code as a workflow action in a "Standard Account", then you need to be sure the transactional email add-on is enabled * this setup should allow you to test the custom code on any given Contact entry that has an email address
(3) You can opt to instead test your custom code in a "Developer TEST Account", but there are some limitations such as needing to ask support to enabled the add-on and also only being able to target email addressed that are added as users into that account
(1) Any app (a custom code bit) that you build inside a "Developer Account" can then be deployed in either a "Standard Account" or a "Developer TEST Account"
(2) If you wish to deploy your custom code as a workflow action in a "Standard Account", then you need to be sure the transactional email add-on is enabled * this setup should allow you to test the custom code on any given Contact entry that has an email address
(3) You can opt to instead test your custom code in a "Developer TEST Account", but there are some limitations such as needing to ask support to enabled the add-on and also only being able to target email addressed that are added as users into that account
The 403 error indicates that there is something wrong with the authorization. That can either mean that your authorization token is expired, has the incorrect scope or that your current account has no access to the transactional email add-on.
Based on the docs, it should be possible to add a CC to the single-send API. You can add it to the message object in your example.
Learn more about HubSpot by following me on LinkedIn or YouTube
✅ Did my answer solve your issue? Help the community by marking it as the solution.