I have a feature where users can select their skills. At present, I would only create a ‘skill’ thing if they select it.
For various reasons I’ve made an update where now it will create all skills on registration, and then set the value (y/n).
I only have 28 users so not a big deal, but wondering how I would go about creating the missing skills for people (over 200 ‘things’)? SQL I would just write a script, but wondering the most sensible way to do this in Bubble…
Issue 1. I’ve tried creating a Backend workflow, but when I select the ‘Bulk’ button on the data type I want to create lots of, I can’t select any of my backend workflows:
Issue 2. I have 40 Sport Profiles (things), and for each I want to create up to 9 things in my Custom Profile Data table. I’m not sure how quite to build the workflow… I was thinking of using the following logic in the backend API, given it’s a once-off task:
For each Sport Profile where role = player in the App Data, loop through 9 create a thing (Custom Profile Data) tasks (each represents a unique attribute I want to create).
On each create a thing, there will be an ‘Only when’ condition that searches custom profile data to see if the attribute for a given Sports Profile already exists.
Seems simple enough, but I can’t figure out how to do this - any advice is greatly appreciated
Make sure the backend workflow has a single parameter with the datatype you want to process. If it’s called “Item” then inside the workflow you can reference “Item” as the specific thing in question.
Sounds like the parameter datatype needs to be “Sport Profile”, then it might sounds dumb, but could you add 9 “Create a thing” workflows, each with the condition you want?
Also, just confirming I don’t select ‘is a list/array’? How do I feed the list of Sport Profiles I want to run the update on (it’s only 40 of 46 that I want to use)?
EDIT: Realised I have to go to the Sport Profile table, not the Custom Profile Data table and I can select it (got confused because I’m creating Custom Profile Data, but looping through Sport Profile)
I also added a conditon to the workflow that says:
I assume this means it’ll loop through all and only trigger on the ones where it is true?