# How to make an infinite number of id ? 1,2,3 and up to a trillion, how to write Castor action?

**URL:** https://forum.adalo.com/t/how-to-make-an-infinite-number-of-id-1-2-3-and-up-to-a-trillion-how-to-write-castor-action/31711
**Category:** Database
**Created:** [September 10, 2022, 9:48am UTC](https://forum.adalo.com/t/how-to-make-an-infinite-number-of-id-1-2-3-and-up-to-a-trillion-how-to-write-castor-action/31711 "2022-09-10T09:48:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![TonyS](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tonys/32/23681_2.png) [@TonyS](https://forum.adalo.com/u/TonyS)
#### Post date: [September 10, 2022, 9:48am UTC](https://forum.adalo.com/t/how-to-make-an-infinite-number-of-id-1-2-3-and-up-to-a-trillion-how-to-write-castor-action/31711/1 "2022-09-10T09:48:54Z")

</div>

the parameter is needed to read the number of orders and assign it to the user

---

<div class="post-metadata">

### Author: ![Benalihoussam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/benalihoussam/32/10346_2.png) [@Benalihoussam](https://forum.adalo.com/u/Benalihoussam)
#### Post date: [September 13, 2022, 10:13pm UTC](https://forum.adalo.com/t/how-to-make-an-infinite-number-of-id-1-2-3-and-up-to-a-trillion-how-to-write-castor-action/31711/2 "2022-09-13T22:13:31Z")

</div>

Hi you can acheive this just by doing this:

ID= orders (count) +1  
in this case ID has to be a number property in the orders collection, if it’s not use a custom formula to performe the same thing

---

<div class="post-metadata">

### Author: ![TonyS](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tonys/32/23681_2.png) [@TonyS](https://forum.adalo.com/u/TonyS)
#### Post date: [September 15, 2022, 8:43pm UTC](https://forum.adalo.com/t/how-to-make-an-infinite-number-of-id-1-2-3-and-up-to-a-trillion-how-to-write-castor-action/31711/3 "2022-09-15T20:43:38Z")

</div>

it’s not that
