# Extract Name to have Date and time

**URL:** <https://forums.pega.com/t/extract-name-to-have-date-and-time/13879>\
**Category:** General\
**Tags:** pega-academy, pega-platform\
**Created:** [October 27, 2026, 5:28pm UTC](https://forums.pega.com/t/extract-name-to-have-date-and-time/13879 "2026-10-27T17:28:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HaripriyaR17725451](https://avatars.discourse-cdn.com/v4/letter/h/c6cbf5/32.png) [@HaripriyaR17725451](https://forums.pega.com/u/HaripriyaR17725451)\
**Post date:** [October 27, 2026, 5:28pm UTC](https://forums.pega.com/t/extract-name-to-have-date-and-time/13879/1 "2026-10-27T17:28:51Z")

</div>

I have tried adding _%d or_ %t or even \__%d_\_%t to get the date or date time in the file name of the csv generated from extract rule but I am not getting them. I am adding this string in the To file field yet file is only getting generated with just the name without any date or time. I am currently in 25.1.4, any suggestions would help

---

<div class="post-metadata">

**Author:** ![Anoop\_Krishna](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/anoop_krishna/32/23458_2.png) [@Anoop\_Krishna](https://forums.pega.com/u/Anoop_Krishna)\
**Post date:** [October 28, 2026, 7:17am UTC](https://forums.pega.com/t/extract-name-to-have-date-and-time/13879/2 "2026-10-28T07:17:19Z")

</div>

In latest versions such substitution variables might not work.Pega’s target storage layer strips out raw system percentage operators or completely overrides them with its standard enforcement pattern (`BIX_<Class>_<Extract>_<Date>_<Seq>.csv`) to prevent file corruption and duplicate issues.

1. Open your Job scheduler activity
2. Look at the parameter mapping for the `pxExtractDataWithArgs` activity step.
3. Supply a dynamic Pega Expression to the **`pyFileName`** parameter.

“YourFileName\_” + @DateTime.FormatDateTime(@String.currentTimeUnique(), “yyyyMMdd\_HHmmss”, “GMT”, “”) + “.csv”

---

<div class="post-metadata">

**Author:** ![HaripriyaR17725451](https://avatars.discourse-cdn.com/v4/letter/h/c6cbf5/32.png) [@HaripriyaR17725451](https://forums.pega.com/u/HaripriyaR17725451)\
**Post date:** [October 29, 2026, 6:58am UTC](https://forums.pega.com/t/extract-name-to-have-date-and-time/13879/3 "2026-10-29T06:58:21Z")

</div>

Thanks for responding @Anoop_Krishna . pyExtractDatawithArgs only accepts 2 parameters which are extract name and class. Could find any parameter related to file name.

---

<div class="post-metadata">

**Author:** ![Anoop\_Krishna](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/anoop_krishna/32/23458_2.png) [@Anoop\_Krishna](https://forums.pega.com/u/Anoop_Krishna)\
**Post date:** [October 29, 2026, 7:33am UTC](https://forums.pega.com/t/extract-name-to-have-date-and-time/13879/4 "2026-10-29T07:33:46Z")

</div>

> [@HaripriyaR17725451](#):
>
> pyExtractDatawithArgs

We can pass additional parameters using pyArgs but seems like In Pega 25.1, its not supported. You will have to write a custom acitivity to rename the file, but renaming as well you cannot directly rename. You will have move the file to different folder and while moving you have to rename the file and move. Please send me the screenshot of your file name configuration. Are you using pegacloudfileStorage as file destination storage.

Meanwhile you can raise a SR to check with product team.
