RESTApi response

Hello.

My API response contains the values "Company" and "Company-X"

fields": {
"Company": "sample",
"company-x": "sample",

Now if i do data.fields.Company it shows the value correctly, however company-x gives me nothing, and the autoshow dropdown when i press . doesnt even list it as an available field.
I belive the problem is the minus dash, how can i find a workaround for this if I can not change the response parameters?

Hello, try using

data.fields["company-x"]
2 Likes

Can't believe I tried everything except that. Thanks!

1 Like