I have an API response that looks something like this:
{
"id": 29,
"created_at": "2018-06-13T07:56:27.952Z",
"updated_at": "2018-06-13T07:56:27.952Z",
"allocation_line_items": [
{
"id": 17203336,
"quantity": 4,
"sellable": {
"product": {
"id": 1437675,
"title": "Logitech B100 Optical Mouse",
"main_image_src": "https://amazonaws.com/images/1812778/logi-black_original.jpg?146125"
},
"stock_entries": [
{
"id": 18874385,
"sellable_id": 3281766,
"warehouse_id": 24020,
"infinite": false,
"allocated_stock_level": 4,
"location": null,
"stock_running_low": true,
"updated_at": "2018-06-12T20:11:18.836Z",
"incoming_stock_level": 3,
"warehouse": {
"id": 24020,
"name": "DE Warehouse",
"display_position": 1
},
"physical_stock_level": 0,
"available_stock_level": -4,
"sellable_on_hand_value": 0
},
{
"id": 3081548,
"sellable_id": 3281766,
"warehouse_id": 805,
"infinite": false,
"allocated_stock_level": 0,
"location": "Row 6 - Shelf C",
"stock_running_low": false,
"updated_at": "2018-06-12T20:11:07.730Z",
"incoming_stock_level": 0,
"warehouse": {
"id": 805,
"name": "Main Warehouse",
"display_position": 5
},
"physical_stock_level": 5,
"available_stock_level": 5,
"sellable_on_hand_value": 0
},
I’ve setup a workflow that triggers a scheduled api workflow on a list called create-batch
Here’s an image of the endpoint settings for create-batch
the only action I have for this scheduled workflow is to create a new thing called location in the type batch 2.
it creates this from “allocation_line_items”: [“stock_entries”: [“location”]] in the response pasted above.
When the data gets saved into the Bubble server it looks like this. 7 repeating instances of a list of all locations.
instead I need it to be a list of each 7 instance of the location. so instead of:
- , Shelf 1 A, , , bin location 7, Shelf B,
- , Shelf 1 A, , , bin location 7, Shelf B,
- , Shelf 1 A, , , bin location 7, Shelf B,
- , Shelf 1 A, , , bin location 7, Shelf B,
- , Shelf 1 A, , , bin location 7, Shelf B,
- , Shelf 1 A, , , bin location 7, Shelf B,
- , Shelf 1 A, , , bin location 7, Shelf B,
it should be:
1.
2. Shelf 1 A
3.
4.
5.
6. bin location 7
7. Shelf B
I’m sure it’s something simple that i’ve overlooked but there doesn’t seem much available in the form of documentation for scheduled workflows




















