Skip to main content
July 16, 2025
Solved

Rename the local document

  • July 16, 2025
  • 5 replies
  • 0 views

Hello Team,

I have a requirement to rename the local file with dateandtimestamp on some condition. 

Input file name - test.csv

expected renamed filename - test.csv_16072025

I am using "Edit Document Properties" smart service and it is renaming the file name. so the output is like test_16072025.csv. 

Unable to get the extension renamed. How to achieve this? can anyone suggest here?

Best answer by shubhama926776

You cannot achieve test.csv_16072025.
Appian requires proper file extensions for file type recognition. The system will always try to maintain a valid extension.

Why can't you use "test_csv_16072025.csv" as you can't change file extension.

5 replies

shubhama926776
July 16, 2025

You cannot achieve test.csv_16072025.
Appian requires proper file extensions for file type recognition. The system will always try to maintain a valid extension.

Why can't you use "test_csv_16072025.csv" as you can't change file extension.

July 16, 2025

Thanks for your reply Shubham. This is what the business requirement. Anyways, thanks for confirmation.

harshas2775
July 16, 2025

The value after dot should be a proper extension. Your current output is good as per standards and meets the requirement mentioned in your question! Thus, while there are no ways to rename extensions, its not a good use case to tweak extensions. 

I have a requirement to rename the local file with dateandtimestamp on some condition

July 16, 2025

This is basically archival file. So after renaming file will get moved to archive location. As I said this is business requirement and this is how they are maintaining currently in all other non-appian applications. So let me recheck with business for any scope of format change.

harshas2775
July 16, 2025

Makes sense! As a workaround, try and make use of the description attribute of the document. If your use case is to move files like these to archival, instead of relying on name, change description to  save the value 'test.csv_16072025' using Edit Documents and archive using this field if business agrees