Now, the weird thing is that, conceptually, the “capabilities” parameter on your API response object is a scalar (single) value. It just happens to hold an array. The elements of this array (which we might call singularly a “capability” may or may not be defined as such). In the past, there was no such thing as a singular capability, but there’s evidence that this might have changed in more recent Bubble versions. Either way, the exact behavior in this situation is not explicitly documented.
With it being an array of strings (OR List of texts in bubble’s jargon) It allows you to enjoy a few extra features with your texts.
Like you can grab the first item, or the last text string from this array, also you can access any specific position’s text, and if you want all of them to be in a single text, you can use format as text for that list, and it will concatenate them in a single string.
You will have all of them in the list, if you see the list’s count it would be something like 3,4 etc. but if you use it as a text, most probably it will show the first value, unless you handle it as an array and use format as text in order to retreive all the text from all items.
Here are some more details to help you understand the problem. I need to write the result of this call in a table. I do it thanks to a recursive worflow.
I defined “capabilities” and “channel_type” as text fields in my table:
I tried to format as text before wrting in the table but is not an option because it’s not recognized as a list (despite it’s written as such in the API call).
Change your database fields from text to list of texts, and then save the API reponse directly in it as a list. by using capabilitity => set list => [capability field from THE API RESPONSE ]
Or you can simply keep your database field as text, and when you are creating a new bridge_bank, do it like:
capabilities = capabilities : formatted as text
Note: Dont do formatted as text on the item # as you are doing in the SS, do it on the main list instead. Like:
capabitiies:item # iteration: formatted as - WRONG
capabilities : formatted as text - CORRECT