Unable to add timestamp while saving the file

when I set as you mentioned in the post, it renamed the directory not the file name.
image

@Lahiru.Fernando

1 Like

usually file path wont take space inbetween buddy
Thats why we were getting such error like “The given path’s format is not supported”

So
we need to mention like this
in_Path+“\”+now.ToString(“dd_MM_yy_hh_mm_tt”)

Cheers @balkishan

2 Likes

I’m not getting you @balkishan

2 Likes

me neither :slight_smile: Couldn’t understand it bro

1 Like

Bro it renamed the folder name not the file name.
@HareeshMR

1 Like

Fine in order to rename the file name
Kindly follow the below steps that could help
because we cannot directly change the file name in save attachment actiivty as it takes only the folder path and not file name

Cheers @balkishan

1 Like

It’s creating folder bro not renaming the file.

1 Like

You are trying to rename the file with the time-stamp?

Try this along with the extension @balkishan… not sure if it works

image

2 Likes

The filename must end with some extension.

Please include file extension after the timestamp.

For example:

strFolderPath + "\" + FileName + timestamp + FileExtension

Regards,
Karthik Byggari

3 Likes

Kindly check with thread once buddy
even we had this discussion before

Cheers @balkishan

2 Likes

Yep, as the guys here have proposed, use the file extension along with the path and it will work :slight_smile:

2 Likes

How I got the result, It’s renaming the folder name not the file.

when I gave like this.
image

@Lahiru.Fernando When gave the file extension.

one question, do you have anythiing inside that folder? I mean is the document you are trying to save is in the folder which just got created?

1 Like

Here the input is folder, not the file name.
Here you can’t directly edit the file name.

Just mention the folder path. Once the attachment is saved then use rename file activity.

2 Likes

there is an attachment bro inside it.

do we have rename file activity.

yes bro… as @KarthikByggari just mentioned, that property defines the folder which you need to store the files. So you will need to use another activity just below it to rename the files in the name you want.

After the save attachments, use the Move File activity to rename it. For the source forlder and the destination folder, give the same folder. However, for the destination make sure to use the new file name you need :slight_smile:

2 Likes
3 Likes

Did that work buddy

Cheers @balkishan

1 Like

will inform once work bro

1 Like