jesseaerts
(Jesse Aerts)
January 3, 2023, 10:54am
1
I’m getting my collection items via API in JSON as I want to create a custom XML feed of them. I have many (option) selection fields in my collection. The choices don’t appear as the choice e.g. yes or no but as a ID like ‘236ba241872e92850220dcc1fdd34f12’.
What can I do about this as I need the word yes or no in my XML feed.
Here is my site Read-Only: LINK
(how to share your site Read-Only link )
memetican
(Michael Wells)
January 3, 2023, 8:02pm
2
Hi Jesse,
You should be able to get the option ID to value translations as part of the collection schema.
Hello,
When reading an ‘Option’ type field via API, we are getting an ID of the option, rather than the option value itself.
But unlike with Reference fields where we can read the list of respective ID’s and match them with respective values, we don’t seem to be able to get the corresponding ID’s to the options. This makes it impossible for us to compare the values when synchronizing data with an external database.
Am I correct here? If so, is there any workaround?
And would it not be possib…
I think today that’s this endpoint.
https://developers.webflow.com/reference/get-collection
Let me know if that works.
Toledo
(Nicola Toledo)
March 24, 2023, 12:36pm
4
how can I set the schema to get the full value string?
is not clear
edit: ah ok I thought it was possible to retrieve the value directly in the item instead I have to match the id manually from the get collection
1 Like