# Guidance on renaming datasets in workflows

**URL:** <https://help.galaxyproject.org/t/guidance-on-renaming-datasets-in-workflows/5788>\
**Category:** Uncategorized\
**Tags:** workflow, training\
**Created:** [April 14, 2021, 6:12am UTC](https://help.galaxyproject.org/t/guidance-on-renaming-datasets-in-workflows/5788 "2021-04-14T06:12:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_van\_Heusden](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/peter_van_heusden/32/824_2.png) [@Peter\_van\_Heusden](https://help.galaxyproject.org/u/Peter_van_Heusden)\
**Post date:** [April 14, 2021, 6:12am UTC](https://help.galaxyproject.org/t/guidance-on-renaming-datasets-in-workflows/5788/1 "2021-04-14T06:12:57Z")

</div>

Hi there

I’m trying to find documentation on how the “Rename dataset” action in Workflows works. Thus far Google and searching this forum seem to be the best sources. So from what I can tell:

You can use the variables listed as inputs to the tool by using `#{variable}` e.g. `#{inputs}` (ref: [https://galaxyproject.org/learn/advanced-workflow/variables/](https://galaxyproject.org/learn/advanced-workflow/variables/)). I am not sure if this is an input object, but reading the code it looks like it is drawing from the name (i.e. a string) of the input: [galaxy/post.py at dev · galaxyproject/galaxy · GitHub](https://github.com/galaxyproject/galaxy/blob/dev/lib/galaxy/jobs/actions/post.py#L111)

You can only use one `#{var}` variable in the rename operation: ref: [galaxy/post.py at dev · galaxyproject/galaxy · GitHub](https://github.com/galaxyproject/galaxy/blob/dev/lib/galaxy/jobs/actions/post.py#L154)

You can use workflow parameters using `${parameter}` syntax (ref: [Workflow Variables Rename Outputfile](https://help.galaxyproject.org/t/workflow-variables-rename-outputfile/2435)). I don’t know where this is implemented and how it interacts with input-based variables (the `#{var}` type).

Is this a complete description?

Peter

---

<div class="post-metadata">

**Author:** ![innovate-invent](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/innovate-invent/32/734_2.png) [@innovate-invent](https://help.galaxyproject.org/u/innovate-invent)\
**Post date:** [April 14, 2021, 5:32pm UTC](https://help.galaxyproject.org/t/guidance-on-renaming-datasets-in-workflows/5788/2 "2021-04-14T17:32:35Z")

</div>

It has been a bit since the last time I have touched that feature but I believe you can include multiple #{var}
