# Issue while creating multiple things using backend workflows

**URL:** <https://forum.bubble.io/t/issue-while-creating-multiple-things-using-backend-workflows/269694>\
**Category:** APIs\
**Created:** [June 26, 2023, 5:42pm UTC](https://forum.bubble.io/t/issue-while-creating-multiple-things-using-backend-workflows/269694 "2023-06-26T17:42:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![akash1406](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/akash1406/32/175678_2.png) [@akash1406](https://forum.bubble.io/u/akash1406)\
**Post date:** [June 26, 2023, 5:42pm UTC](https://forum.bubble.io/t/issue-while-creating-multiple-things-using-backend-workflows/269694/1 "2023-06-26T17:42:23Z")

</div>

![image](https://us1.discourse-cdn.com/bubble/original/3X/4/c/4c528290d2d6cb97d0be683b7da080a361e68909.png)  
Trying to create multiple things in the database. Created a backend workflow first to create and save multiple things. In the attached screenshot, I am trying to iterate through the API response. I have selected the actual API call I created in ‘Type of things’ which is being called in step 1. Also, the list to run this on is the result of step 1 which I have added in already, on hovering, I can see that it evaluates to the same API being mentioned on top but yet gives an error. Can anyone explain why\>

Thanks.

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [June 26, 2023, 10:39pm UTC](https://forum.bubble.io/t/issue-while-creating-multiple-things-using-backend-workflows/269694/2 "2023-06-26T22:39:11Z")

</div>

I think your Step1 return an item, not a list. (Evaluates to a SearchPodcast API… This is not a list)

---

<div class="post-metadata">

**Author:** ![akash1406](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/akash1406/32/175678_2.png) [@akash1406](https://forum.bubble.io/u/akash1406)\
**Post date:** [June 27, 2023, 10:29am UTC](https://forum.bubble.io/t/issue-while-creating-multiple-things-using-backend-workflows/269694/3 "2023-06-27T10:29:11Z")

</div>

![image](https://us1.discourse-cdn.com/bubble/original/3X/d/1/d147c8825ae7d20cd6b56f9b477818184ec9793d.png)  
Here you can see the count and the list of objects under “results”. Doesn’t this mean its a list?

---

<div class="post-metadata">

**Author:** ![akash1406](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/akash1406/32/175678_2.png) [@akash1406](https://forum.bubble.io/u/akash1406)\
**Post date:** [June 27, 2023, 5:27pm UTC](https://forum.bubble.io/t/issue-while-creating-multiple-things-using-backend-workflows/269694/4 "2023-06-27T17:27:48Z")

</div>

OkayI have now used a different approach by using the bubble feature to create new things with the bulk operation. Here are the steps I took:

1. Create an API call to get the JSON object, here is the example response:

![image](https://us1.discourse-cdn.com/bubble/original/3X/9/0/90be35c8fe82272acbed30417e17971205cff029.png)

I need to save parameters from each of these 10 results passed.  
2. I created an API request to create things in bulk.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/d/9/d9ff9f25dbe8a509e5baba28e45705d2043188b6.png)

1. I then created a workflow and called the API to create things in bulk, while calling an external API and formatting its output in text:  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/d/4/d4642cb3214c27100ebbe6b6723763cb1a7d9dc4.png)

When I preview the app it does not give any error but in the database, only the first result placed at 0th position is saved in the database. The remaining 9 are leaked somehow. How, do I ensure that all of them get created in the database?

I really appreciate any help you can provide.
