Is there a way to access the custom fields via the rest api by their names rather than their Id’s? I am able to access the custom fields via their index numbers however when I added or deleted custom fields, all of their id’s were re-numbered.
I did see a post where someone is using a loop to go through all of the custom fields and identify the appropriate Id by comparing the label contents - however this seems clunky.
Hi @leonardo_cutone, the issue with accessing custom fields via their label is that it’s not a unique value, more than one custom field can share the same label.
Okay I’ll try this -
So this is not a rest call then?
If I use the Rest/Json method would the for loop on the label names work? If you are gonna phase out the xml methods then I would rather develop on the future protocols
Correct, this is using our legacy XML-RPC API. I’m not sure of the time frame for when XML-RPC will be sunset but I don’t imagine it being anytime soon.
Looping over the results from the REST endpoint will also work.
@Nicholas_Trecina - question to add to this. When I use a system like Zapier or Workato, they are able to pull custom field names instead of field ID’S. how are they doing this?
They are using the Legacy XML-RPC API, and specifying the Label of the DataFormField (internal name for custom fields) to return as shown above in @Nicholas_Trecina comment.