How to save text (from external API) in an Option-Set Datafield?

If you want to change the data type of the result of an API call:

  1. Initialize the API
  2. A popup will appear to confirm the type of data type
  3. Select in a dropdown the data type you like => it can be an option set
  4. Save

You’re done! Now Bubble will return an option set in the results of the API call

Be careful: The text sent by the API must be exactly the text indicated in the Display field of the option set, otherwise Bubble won’t be able to match the text with the option set.

Note: This search can be done with a workflow or on a page, but it’s much longer and therefore less efficient.

devease

1 Like