monicapope
Forms Fledgling

Add sufix to output filename when using "Copy file to File Share" Action

Jump to solution

How to append text [-obsolete] to the end of file name (preserving file extension) before copying the file to file share without changing the document name in library? ** Item level action - cannot use collection operation **

ExampleExample

0 Kudos
Reply
3 Replies
SimonMuntz
Nintex Employee
Nintex Employee

Re: Add sufix to output filename when using "Copy file to File Share" Action

Jump to solution
HI,

As you dont want to change the name of the document in the library you would have to copy it with the new name then move it to the file share.
Name can be appended to using a regular expression action.
0 Kudos
Reply
monicapope
Forms Fledgling

Re: Add sufix to output filename when using "Copy file to File Share" Action

Jump to solution

Can you give me a hand with the expression to get the file extension?   I have the expression to remove the file extension, but I'm stuck on capturing and saving just the extension to a variable.  Basically, spliting filename and file extension > concatenate strings. 

0 Kudos
Reply
monicapope
Forms Fledgling

Re: Add sufix to output filename when using "Copy file to File Share" Action

Jump to solution

Got it.. 

Filename txt var = Regex remove file extension \.[^.]+($|\?)

File extension Col var = Regex extract (\.[^\.]+$) 

File extension txt var = For each in collection (even with single item)

NewFileName txt var = build string concatenate FileNameVar_obsoleteFileExtesionVar

 

View solution in original post

0 Kudos
Reply