Company Custom Property - API Get Label Instead of Internal Value?

SOLVE
pbmartin
Participant

We added an enumerated property ("sector") to Companies and now would like to use the API to return the company's sector label, not the internal value.  How would I construct the URL?

 

Here's the URL that returns the internal value (among other properties):

{{baseUrl}}/crm/v3/objects/companies?hapikey=xx&limit=100&properties=name,city,state,domain,sector&archived=false

SDK
0 Upvotes
1 Accepted solution

Accepted Solutions
dennisedson
Solution
Community Manager

Hello @pbmartin 

I do not believe there is a way to construct the URL to get what you want.  You would have to call/crm/v3/properties/{objectType}/{propertyName} and get the label there.

@Mike_Eastwood , would you agree with that?

Thanks,

Dennis



Check out our Community Developer Blog
where we feature our Community driven developer podcast and how to content

View solution in original post

1 Reply 1
dennisedson
Solution
Community Manager

Hello @pbmartin 

I do not believe there is a way to construct the URL to get what you want.  You would have to call/crm/v3/properties/{objectType}/{propertyName} and get the label there.

@Mike_Eastwood , would you agree with that?

Thanks,

Dennis



Check out our Community Developer Blog
where we feature our Community driven developer podcast and how to content

View solution in original post