CRM

Ran-ST
Colaborador

Set contacts as marketing 'on demand'

resolver

How can I set contacts as marketing 'on demand' using the API or any other hubspot tool?

 

For example, we might have many contacts but only some of them are interested in the newsletter. When the user clicks subscribe to newsletter on our website we want to set the contact as marketing using the API / hubspot form / open link to another page where he confirms this.

 

How can I achieve this?

0 Me gusta
1 Soluciones aceptada
Bryantworks
Solución
Asesor destacado | Partner nivel Diamond
Asesor destacado | Partner nivel Diamond

Set contacts as marketing 'on demand'

resolver

Hmm, workflows is the easiest way.  But if you're already working with the API, maybe you create a form that you submit contacts to when they want to subscribe?  HubSpot forms have the ability to set as a marketing contact upon submission which is what you would be doing with the Forms API.

 

Forms _ HubSpot - Google Chrome 2021-11-30 at 2.47.14 AM.jpeg

 

 

Chris Bryant | Your Dedicated HubSpot Expert

Ver la solución en mensaje original publicado

0 Me gusta
11 Respuestas 11
Bryantworks
Solución
Asesor destacado | Partner nivel Diamond
Asesor destacado | Partner nivel Diamond

Set contacts as marketing 'on demand'

resolver

Hmm, workflows is the easiest way.  But if you're already working with the API, maybe you create a form that you submit contacts to when they want to subscribe?  HubSpot forms have the ability to set as a marketing contact upon submission which is what you would be doing with the Forms API.

 

Forms _ HubSpot - Google Chrome 2021-11-30 at 2.47.14 AM.jpeg

 

 

Chris Bryant | Your Dedicated HubSpot Expert
0 Me gusta
Ran-ST
Colaborador

Set contacts as marketing 'on demand'

resolver

I thought of this option and if I remember correctly, in order to set contacts created as marketing, you must enable captcha - and then the form can't be used with the API.

0 Me gusta
Ran-ST
Colaborador

Set contacts as marketing 'on demand'

resolver

I think we'll be working with the automation /workflows after all.

Thanks!

0 Me gusta
Bryantworks
Asesor destacado | Partner nivel Diamond
Asesor destacado | Partner nivel Diamond

Set contacts as marketing 'on demand'

resolver

Ah okay @Ran-ST, you could also set this up to auto-set these to Marketing Contacts in that case.  Scroll to the "Set contacts created by API key apps as marketing contacts" section.

Chris Bryant | Your Dedicated HubSpot Expert
0 Me gusta
Ran-ST
Colaborador

Set contacts as marketing 'on demand'

resolver

This will set all contacts but I need to do it programmatically in response to a user request. Is there any other way?

0 Me gusta
Bryantworks
Asesor destacado | Partner nivel Diamond
Asesor destacado | Partner nivel Diamond

Set contacts as marketing 'on demand'

resolver

Hey @Ran-ST,

 

So sorry about that!  I thought this was accessible via API.  Turns out there's still just an idea here.  As for the form, do you have access to Workflows?

Chris Bryant | Your Dedicated HubSpot Expert
0 Me gusta
Ran-ST
Colaborador

Set contacts as marketing 'on demand'

resolver

I do not have access to Workflows or Automation

0 Me gusta
Bryantworks
Asesor destacado | Partner nivel Diamond
Asesor destacado | Partner nivel Diamond

Set contacts as marketing 'on demand'

resolver

Hey @Ran-ST, you can do this a few different ways, the first with a workflow:

 

  1. Form submission
  2. Set as Marketing contact

 

Or you can use the CRM API by updating the property, "hs_marketable_status" to "true".

 

Hope this helps!

 

 

Chris Bryant | Your Dedicated HubSpot Expert
Ran-ST
Colaborador

Set contacts as marketing 'on demand'

resolver

I get the following error:

{
  "status": "error",
  "message": "Property values were not valid: [{\"isValid\":false,\"message\":\"\\\"hs_marketable_status\\\" is a read only property; its value cannot be set.\",\"error\":\"READ_ONLY_VALUE\",\"name\":\"hs_marketable_status\"}]",
  "correlationId": "70651ddb-b37b-4eb7-925c-b905e496cad9",
  "category": "VALIDATION_ERROR"
}

 

Can you please let me know what to fix or elaborate on the forms solution?

0 Me gusta
Ran-ST
Colaborador

Set contacts as marketing 'on demand'

resolver

Thanks! Setting hs_marketable_status using the api has all the limitations as doing it in any other way such as setting in the same month to marketing and then non marketing?

0 Me gusta
Bryantworks
Asesor destacado | Partner nivel Diamond
Asesor destacado | Partner nivel Diamond

Set contacts as marketing 'on demand'

resolver

Yes @Ran-ST, that's correct!

Chris Bryant | Your Dedicated HubSpot Expert
0 Me gusta