# Set dynamic file path in text file input

**URL:** <https://community.automationedge.com/t/set-dynamic-file-path-in-text-file-input/3673>\
**Category:** Process Studio\
**Tags:** rpa, learning\
**Created:** [June 15, 2021, 6:46am UTC](https://community.automationedge.com/t/set-dynamic-file-path-in-text-file-input/3673 "2021-06-15T06:46:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![onkarhiremath](https://avatars.discourse-cdn.com/v4/letter/o/d2c977/32.png) [@onkarhiremath](https://community.automationedge.com/u/onkarhiremath)\
**Post date:** [June 15, 2021, 6:46am UTC](https://community.automationedge.com/t/set-dynamic-file-path-in-text-file-input/3673/1 "2021-06-15T06:46:08Z")

</div>

How to set dynamic file path from email message input to text file input.  
I want to set attachment folder path in text file input step that is coming from email message input step.

---

<div class="post-metadata">

**Author:** ![Garr14](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.automationedge.com/garr14/32/824_2.png) [@Garr14](https://community.automationedge.com/u/Garr14)\
**Post date:** [June 24, 2021, 6:12pm UTC](https://community.automationedge.com/t/set-dynamic-file-path-in-text-file-input/3673/2 "2021-06-24T18:12:49Z")

</div>

Hello Onkar,

Greetings!!!

Kindly try to check the workflow attached and let me know if you are looking for this.

Regards  
Gaurav M  
[email-fileoutput.psw](https://community.automationedge.com/uploads/short-url/u5Mer1vkLw4QK8zcDMIJGVgqaZd.psw) (19.7 KB)

---

<div class="post-metadata">

**Author:** ![onkarhiremath](https://avatars.discourse-cdn.com/v4/letter/o/d2c977/32.png) [@onkarhiremath](https://community.automationedge.com/u/onkarhiremath)\
**Post date:** [June 25, 2021, 10:23am UTC](https://community.automationedge.com/t/set-dynamic-file-path-in-text-file-input/3673/3 "2021-06-25T10:23:06Z")

</div>

Hi Garr,  
Yes, I’m looking for this only but i solved this issue using javascript step. path and file name attached and assigned to variable and selected variable name in text file input step.

---

<div class="post-metadata">

**Author:** ![Garr14](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.automationedge.com/garr14/32/824_2.png) [@Garr14](https://community.automationedge.com/u/Garr14)\
**Post date:** [June 28, 2021, 6:42pm UTC](https://community.automationedge.com/t/set-dynamic-file-path-in-text-file-input/3673/4 "2021-06-28T18:42:48Z")

</div>

Hello @onkarhiremath

Oh Sure you can also go with that approach.

Glad to know, thank you for the update.

Regards

---

<div class="post-metadata">

**Author:** ![amr](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@amr](https://community.automationedge.com/u/amr)\
**Post date:** [July 1, 2021, 12:40pm UTC](https://community.automationedge.com/t/set-dynamic-file-path-in-text-file-input/3673/5 "2021-07-01T12:40:51Z")

</div>

It’s not work. how to solve this problem.

---

<div class="post-metadata">

**Author:** ![Garr14](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.automationedge.com/garr14/32/824_2.png) [@Garr14](https://community.automationedge.com/u/Garr14)\
**Post date:** [July 1, 2021, 7:00pm UTC](https://community.automationedge.com/t/set-dynamic-file-path-in-text-file-input/3673/6 "2021-07-01T19:00:09Z")

</div>

@amr  
Could you please share your workflow or error you are facing so I can suggest?

---

<div class="post-metadata">

**Author:** ![amr](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@amr](https://community.automationedge.com/u/amr)\
**Post date:** [July 2, 2021, 7:49am UTC](https://community.automationedge.com/t/set-dynamic-file-path-in-text-file-input/3673/7 "2021-07-02T07:49:06Z")

</div>

I solve this error but how to fetch data from that downloaded file path in text input step
