I then have another database called “Spinner Blocks”, where the entries there contain the same “Item Number” as each other and in the database “RouteCard” (as seen above) but each have unique “Shell IDs”.
What I have been trying to do is assign a unique “Shell ID” to every 6 entries in “RouteCard” databases. The 6 entries being the list above. For example:
and so forth for each “Shell ID” in the “Spinner Block” database making changes to the “RouteCard” database. So far my API workflow only changes all 36 entries to one “Shell ID”.
Constraints:
- Item Number = [fixed value or pass as input]
Sort by: Created Date (or another consistent sort)
Then:
:items from Start Index to Start Index + 5
Loop through these 6 items and Make Changes to a Thing → set Shell ID = input Shell ID.
STEP 3: Schedule that backend workflow for each Spinner Block
In your front-end workflow:
Search for Spinner Blocks:sorted
→ Schedule API Workflow `assign-shell-to-routecards` on a list
Inputs:
- Shell ID = This Spinner Block's Shell ID
- Start Index = (This Spinner Block's List Index - 1) * 6 + 1
If you’re not using list scheduling, you can loop manually using “Schedule API Workflow” in a recursive way, but using “Schedule API Workflow on a list” is easier if the Spinner Block list is fixed.
I don’t understand step 2 really, where do I do “Do a search for”, is that when I make changes to a list of things?
Same thing with step 3 I don’t fully understand.
I am aware this is a ChatGPT answer which I have tried to utilise with this problem, but it misses key terminology and referencing on exactly what I should be doing as I don’t know what it refers to half the time.
Dont think you need a backend wf for this, just create a test page and use a workflow repeater plugin. You can set up a repeating group in this test page to show only the desired itens filtred however you like and live preview all these changes in the front end. Ive done data manipulation like this many times, just dele the page after you done with it