We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Feb 28, 2018 2:57 AM
I want to use the unique contact id as a property so to insert in transactionsmails like vouchers, booking, etc. Unfortunately the "vid" is only available in the api not as a regular property in the contact portal. Should be an easy taks to have it there as a non-editable property.
Thx
Oli
Solved! Go to Solution.
Mar 13, 2018 6:21 PM
here's a workaround:
http://hubhacker.com/use-hubspot-vid-as-a-contact-property/
but I don't dare to run a php-script with my hub-id...
Here's more info about the api access to vid:
https://developers.hubspot.com/docs/methods/contacts/get_contact
But what I want is that the portal shows this as a default contact property.
Best
Oli
Nov 9, 2018 12:48 PM
To add to this, since Hubspot creates the vid, why not just make it a property that is immediately populated? One use I have for this is that in some of our internal emails that get created based on someone a contact does, I could create a link in those emails that go directly to the contact record by using the personalization token for the vid (such token does not currently exist since VID is not a property). Oh - and I need the VID the moment (within minutes) the contact is created, which could be off a form. Thus, it doesn't help me to manually create and populate this property through manual efforts.
Mar 13, 2018 11:43 AM
Hi @Oliver_Mueller,
Can you please share more about how this property is associated with HubSpot? Is this an ID property you are bringing into HubSpot through an api?
Additionally, can you clarify why this property can't be editable? You can edit who has access to contact properties on the user basis, however the only properties that are completely non editable are those which are default HubSpot properties.
Mar 13, 2018 6:21 PM
here's a workaround:
http://hubhacker.com/use-hubspot-vid-as-a-contact-property/
but I don't dare to run a php-script with my hub-id...
Here's more info about the api access to vid:
https://developers.hubspot.com/docs/methods/contacts/get_contact
But what I want is that the portal shows this as a default contact property.
Best
Oli
Apr 10, 2019 5:43 AM
Hey Guys,
Am not sure whether everyone is going ahead testing via this PHP file method.
I have one question, when the file is stored in public html folder > which means anybody can access that file? can the attackers get the API token in that sense ?
Or is there anywork around without using the php file?
May 1, 2018 9:02 AM
@psx the workaround above might be of help!
Mar 13, 2018 12:43 PM
Hi
No, that's a HubSpot property, a unique contact id, but it is only accessible through api for external use. But I would like to access this HubSpot id through the regular portal. You just have to show the field in the portal, non-editable, then we copy it to a custom property and use it as a personal voucher number.
Does that answer your question?
Best regards
Oli