# How to make file name dynamic?

**URL:** <https://community.fibery.io/t/how-to-make-file-name-dynamic/2075>\
**Category:** Misc\
**Created:** [September 29, 2021, 2:29pm UTC](https://community.fibery.io/t/how-to-make-file-name-dynamic/2075 "2021-09-29T14:29:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niraj\_Chourasia](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/niraj_chourasia/32/4084_2.png) [@Niraj\_Chourasia](https://community.fibery.io/u/Niraj_Chourasia)\
**Post date:** [September 29, 2021, 2:29pm UTC](https://community.fibery.io/t/how-to-make-file-name-dynamic/2075/1 "2021-09-29T14:29:38Z")

</div>

![Company Filing _ (1)](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/a/ad29514ba1777a384face0a4b350c29df258985a.png)

Please help me can we make file name dynamic if yes then how.

Thanks

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [September 29, 2021, 2:33pm UTC](https://community.fibery.io/t/how-to-make-file-name-dynamic/2075/2 "2021-09-29T14:33:24Z")

</div>

> [@Upload file to Fibery in Action button](https://community.fibery.io/t/upload-file-to-fibery-in-action-button/1664/8):
>
> Hi, Chr1sG It is possible. You may use script \<% NAME(“File Name String”) %\> Please see below the screen how it looks like

---

<div class="post-metadata">

**Author:** ![Niraj\_Chourasia](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/niraj_chourasia/32/4084_2.png) [@Niraj\_Chourasia](https://community.fibery.io/u/Niraj_Chourasia)\
**Post date:** [September 29, 2021, 3:06pm UTC](https://community.fibery.io/t/how-to-make-file-name-dynamic/2075/3 "2021-09-29T15:06:23Z")

</div>

Hi there,

I tried but it’s giving bad request error.

 ![Company Filing _ (2)](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/a/a02faa30541ff37c4c8fec4a20597792fda0c4ef.png)

 ![Company Filing _ (3)](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/e/e8e2e419b3b00375d124f5d69a7a2d9c08a60bfe.png)

please help me

---

<div class="post-metadata">

**Author:** ![Oleg](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/oleg/32/1887_2.png) [@Oleg](https://community.fibery.io/u/Oleg)\
**Post date:** [September 29, 2021, 3:34pm UTC](https://community.fibery.io/t/how-to-make-file-name-dynamic/2075/4 "2021-09-29T15:34:30Z")

</div>

Hi, @Niraj_Chourasia

Looks like there is some other error in your script.

Please find below an example of custom name set

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/0/06d365993cc235b899aa22af6b8a3f44bda995ce.png)

The result is

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/a/a21180299148851e105992ac09d60921de334dfb.png)

Please let me know about any questions,  
Oleg

---

<div class="post-metadata">

**Author:** ![Oleg](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/oleg/32/1887_2.png) [@Oleg](https://community.fibery.io/u/Oleg)\
**Post date:** [September 29, 2021, 3:36pm UTC](https://community.fibery.io/t/how-to-make-file-name-dynamic/2075/5 "2021-09-29T15:36:45Z")

</div>

@Niraj_Chourasia

Probably I noticed the error. Please use uppercase **NAME** function.

---

<div class="post-metadata">

**Author:** ![Niraj\_Chourasia](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/niraj_chourasia/32/4084_2.png) [@Niraj\_Chourasia](https://community.fibery.io/u/Niraj_Chourasia)\
**Post date:** [September 30, 2021, 10:20am UTC](https://community.fibery.io/t/how-to-make-file-name-dynamic/2075/6 "2021-09-30T10:20:45Z")

</div>

@Oleg , @Chr1sG thank you seems working for me now. it was the function name.
