Access to unique contact id "vid" in properties

SOLVE
Oliver_Mueller
Participant | Partner

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

1 Accepted solution

Accepted Solutions
Oliver_Mueller
Solution
Participant | Partner

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

View solution in original post

6 Replies 6
jennysowyrda
Community Manager

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. 

 

 

0 Upvotes
Oliver_Mueller
Participant | Partner

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

0 Upvotes
Oliver_Mueller
Solution
Participant | Partner

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

View solution in original post

roisinkirby
HubSpot Product Team

@psx the workaround above might be of help!

0 Upvotes
jkbaseer
Member

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? 

0 Upvotes
Dean123
Participant

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.