# PS: create variable names by expressions

**URL:** <https://community.tulip.co/t/ps-create-variable-names-by-expressions/11944>\
**Category:** Product Suggestions\
**Created:** [July 9, 2024, 11:06am UTC](https://community.tulip.co/t/ps-create-variable-names-by-expressions/11944 "2024-07-09T11:06:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisF](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@ChrisF](https://community.tulip.co/u/ChrisF)\
**Post date:** [July 9, 2024, 11:06am UTC](https://community.tulip.co/t/ps-create-variable-names-by-expressions/11944/1 "2024-07-09T11:06:22Z")

</div>

Hi,  
we have several use cases where we get a batch size (max 6) from our ERP and have to proceed them or collect data successively.  
For this I’m using a set of numbered variables, to store (and hold) the information:  
s\_Item1, s\_ItemName1  
s\_Item2, s\_ItemName2  
…  
s\_Item6, s\_ItemName6

All information for a batch number are stored in one step, so I like to see the possibility to create the name of the variables by an expression:  
‘s\_Item’ + @variable.Batch\_Number  
and store information in this result-variable . Then increase the batch number and recall the same step until the maximum batch number is reached

Its very similar to the transition expression:  
‘Go To Step By Name’ Step or group name: ‘Expression’

Maybe this will be possible in “the very near future”? 😉

Regards Chris

---

<div class="post-metadata">

**Author:** ![David2](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@David2](https://community.tulip.co/u/David2)\
**Post date:** [July 10, 2024, 3:16pm UTC](https://community.tulip.co/t/ps-create-variable-names-by-expressions/11944/2 "2024-07-10T15:16:10Z")

</div>

Hi Chris,

For the use case you have, you might look into using the object list variable type. You can set an object to have different attributes, and you can attach an object list variable to an interactive table, so that it will look just like a normal table record.

When you want to do your operation, you would just load in the particular object index you want to work with, do your data collection, and save it. The object notation in completion records is a bit messy, so you’d probably want to reformat it with some variables dedicated specifically to annotating your records. In our system, we use Tulip Table records for this purpose, but it sounds like you’re driving your operations out of your ERP so you’d want to provide some scaffolding for providing clean, annotated data.
