January 3, 2023, 10:54am
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:
( how to share your site Read-Only link)
January 3, 2023, 8:02pm
You should be able to get the option ID to value translations as part of the collection schema.
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.
Let me know if that works.
March 24, 2023, 12:36pm
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