Hubspot syncing email unsubscribe to powr
In a Hubspot workflow, trigger a webhook and make a POST request to:
https://www.powr.io/hubspot/email_subscription/update/:subscription_type
:subscription_type should be replaced by one of the following:
- plugin
- discount
- blog
- onboarding
- all
- test
Test will print out relevant info into the logs. Can be found by searching for: [[Hubspot::EmailSubscriptionController]]
Properties Mapping​
| subscription_type | POWr | Hubspot |
|---|---|---|
| plugin | plugins_email_subscription_active | hs_email_optout_7698288 |
| discount | discount_email_subscription_active | hs_email_optout_6810594 |
| blog | blog_subscription_active | hs_email_optout_7698434 |
| onboarding | onboarding_emails_active | hs_email_optout_7698386 |
| all | email_subscription_active | hs_email_optout |