Extract Name to have Date and time

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

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”

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

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.