Bubble does not allow dupes in a list of things. The only way to achieve what you are looking for is to create a separate type and then add individual records to the new type.
Based on that, we can conclude Bubble does allow duplicates. However the “add list” behaves like a “merge list” rather than simply appending new data in the array.
Since the “add” button in the data editor allows adding any number to an array without considering duplicates, why doesn’t the workflow function “add list” or “add”?
I find the idea of creating a new data object called “numbers” each time I need to add a number to an array a little absurd. Surely I’m not the first guy trying to append numbers to an array, right?
Is there really no way to just replicate the “add” function in a workflow?
Well that’s new to me. Thanks for the update and the learning.
In that case have you tried doing something like this:
Step 1: Set a custom state to the current value’s numbers of the array.
Step 2: Set the custom state to its current value’s numbers append the additional numbers.
Step 3: Delete the value.
Step 4: Create a new value with the custom state.
Ah, I see. But the same possibility may exist using a workflow parameter and subsequent steps in your BEWF to manipulate the parameter. Just a reminder though that I have no idea if this will even work using custom states or the WF parameter, just brainstorming possibilities now that I’m aware Bubble takes dupes… just not easily
Late reply. “Join With” gets you from a list to a concatenated string. In order to get from a string to list, you’ll need to do “extract with regex” which automatically spits out its Regex groups into list form.
EDIT: so for your specific case, store the “array” as a string. As new numbers are added, convert them to a string via “number_list:join with ,” then forge the new string. When retrieving back to number list, execute “Extract with Regex” with expression
[^,]+
then :format as number