Company ID in Company Object | Community
Skip to main content
Juhui_Cho
Level 2
August 21, 2024
Solved

Company ID in Company Object

  • August 21, 2024
  • 1 reply
  • 2819 views

I understand that each Person's Company Object has a Company ID value.


What standard is this company ID? Is it a Company Name or is it have a unique number?
I wonder if there is a way to check the Company ID value by Person or to modify it myself.
(This is the case if CRM or API is not linked.)

 

And if there are People from the same Company(Company Name field value), I wonder if their company ID is the same.


Thank you in advance!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Michael_Florin-2

If I'm not mistaken, any company in Marketo has two IDs. One is available through the token {{company.Id}} while the second is the so-called "External Company ID". External Company ID is a hidden system field that you can't unhide, so AFAIK you can't see it. External Company ID is used in non-native company object integrations, whereas Company ID is used by Marketo to organized the link between companies and people.

 

As the token exists can do this:

 

 

 

No, I don't think you can manipulate either field from the UI. Only the API can do this.



1 reply

Michael_Florin-2
Michael_Florin-2Accepted solution
Level 10
August 21, 2024

If I'm not mistaken, any company in Marketo has two IDs. One is available through the token {{company.Id}} while the second is the so-called "External Company ID". External Company ID is a hidden system field that you can't unhide, so AFAIK you can't see it. External Company ID is used in non-native company object integrations, whereas Company ID is used by Marketo to organized the link between companies and people.

 

As the token exists can do this:

 

 

 

No, I don't think you can manipulate either field from the UI. Only the API can do this.



Juhui_Cho
Juhui_ChoAuthor
Level 2
August 23, 2024

@michael_florin-2 , Thank you very much for your response! I now understand the two types of company IDs.

I have one additional question.
We are trying to update the information of the Company Object via the API.
If multiple people(leads) belong to 'Company A', is it possible to update the Company Object information for all people(leads) whose Company Name field is 'Company A'?
I understand that the key for the Company Object is the company ID, but when I checked the company ID using the token as you mentioned, it seems that each person(lead) has a unique numerical value.
Could you clarify which field should be used as the basis for updating Company Object?

Michael_Florin-2
Level 10
August 23, 2024

@juhui_cho That would be External Company ID.

 

Here's an example:

 

Create a company with some company data first

{{base_url}}/rest/v1/companies.json

 

 

 

{ "action":"createOrUpdate", "lookupField":"externalCompanyId", "input": [ { "externalCompanyId": "9000220869", "company": "Dream Company", "BillingStreet": "Fantasy Street", "BillingCity":"Funny City", "BillingPostalCode": "24576" } ] }

 

 

 


Then create a person:
{{base_url}}/rest/v1/leads.json

 

 

 

{ "action":"createOrUpdate", "lookupField":"email", "input": [ { "email": "m.florin@reply.de", "firstname": "Michael", "lastname" : "Florin", "externalCompanyId": "9000220869" } ] }

 

 

 


Now your person looks like this in Marketo:

Billing City, Address and Postal Code are no longer editable from the UI, as they belong to the Company Object. And any person you will now create or update with that External Company ID will inherit the values from the Company Object.

 

In order to create fields on the Company Object in Marketo you will need to reach out to Marketo Support. Create the fields on the person first and then ask Support to convert them to company fields.

 

@katja_keesom Thanks for the adjustments, Katja! 🙂