Hello there,
I’m trying to figure out the way to add device parameters (mobile/desktop) to webhook request whenever user submitted a form.
I’ve checked the request response but seems like hubspot doesn’t have device parameter there.
Is there any workaround for this?
for example, i’m thinking to add hidden field on the form, and set device value using javascript. and it will send using hubspot. is it possible with hubspot?
Thank you.
Hi, @adrianrotama.
To clarify, are you referring to workflow webhook actions or subscriptions in the Webhooks API?
Either way, you should be able to populate a hidden form field with the desired information and pass it to the contact record. Your custom contact property and value will be included in workflow webhook payloads by default. To receive a Webhooks API notification for the property, you must create a contact property change subscription for it (see the Managing Subscriptions via the UI section of this article).
Hi @IsaacTakushi ,
Thank you for responding.
Thank you for the detailed link. I’m referring to workflow webhook actions.
Okay sure, will try using hidden form field first. But I’m just wondering, is there any other options to get device (desktop/mobile) information more easily ?
Hi, @adrianrotama.
Happy to help.
I don’t know of any other way to get device information into a workflow webhook requests payload. These requests only contain contact meta data and properties, so the device information must live in a custom contact property.