Save the date! Join us on October 16 for our Product Ops launch event. Register here.
Jan 13, 2020 07:23 AM
Hi,
I would to retrieve an array of all single select options from the api. but i dont know if its stored anywhere…
Is it possible?
Solved! Go to Solution.
Sep 22, 2022 01:34 AM
Yes!
This is possible.
Visit the Meta API documentation.
Through this (see image below) GET request you can iterate over the tables
(a list), check for your specific name
(table name), and once you hit the desired name
, iterate over the fields
, until you reach the field name / id you desire. If the field
type is either singleSelect
or multipleSelects
then you’ll have an additional options
key, and inside it you’ll have choices
key, which includes a list of the options to choose from. Inside every choice object, the name
key is what you’re asking for.
An Image from the API documentation to illustrate the kind of payload you expect to receive (no singleSelect / multiSelect examples there, these are from my own experience)
Enjoy :slightly_smiling_face:
Feb 02, 2021 09:25 AM
Did this ever get resolved? I am also curious how to accomplish this.
Sep 22, 2022 01:34 AM
Yes!
This is possible.
Visit the Meta API documentation.
Through this (see image below) GET request you can iterate over the tables
(a list), check for your specific name
(table name), and once you hit the desired name
, iterate over the fields
, until you reach the field name / id you desire. If the field
type is either singleSelect
or multipleSelects
then you’ll have an additional options
key, and inside it you’ll have choices
key, which includes a list of the options to choose from. Inside every choice object, the name
key is what you’re asking for.
An Image from the API documentation to illustrate the kind of payload you expect to receive (no singleSelect / multiSelect examples there, these are from my own experience)
Enjoy :slightly_smiling_face: