I’m trying to duplicate a list of ‘Divisions’ in my Bubble app, each with linked ‘Division Specifics’ data. How can I create exact copies of these divisions, including their associated specifics, while ensuring the new division specifics are correctly linked to the new divisions?
Schedule API workflow on list of Divisions
In the BE workflow:
Step 1: Copy a list of. Divisions:Division:converted to a list
Step 2: Copy a list of Division Specifics
Step 3: Make changes to result of Step 1 → Set Division Specifics to Result of Step 2 (if you have a list on the Division) or Make changes to Result of Step 2 → Set Division to Result of Step 1’s:first item.
If this is only needed to be done by you to populate the database, create a backend workflow with only one parameter for ‘Divisions’
In the actions run an action to create a new division and for fields populate with same data from the division parameter value.
Then run from the app editor in the app data tab a bulk update by pressing the bulk button and selecting the backend workflow created. Make sure when in app data the Divisions data type is selected.
This method worked, but I didn’t need to run a bulk update in the app data tab of the app editor.
Thanks!