Skip to main content
Nintex Community Menu Bar

Can workflow copy a file and rename it?

  • May 22, 2015
  • 4 replies
  • 16 views

Forum|alt.badge.img+4

Here's my goal and I thought of trying Nintex first. Maybe you have a simpler solution, jscript or something. 

 

I have a library with multiple images and a webpage that displays one image as the background of a Div (via a CSS file), hard coded with a file name.  I'd like that image change once a day. Maybe have a workflow copy a random file from the library to the destination library and overwrite the existing file.

 

My Div that displays the image is like:

#s4-titlerow {background-image:url(image/rig.jpg);}

4 replies

Forum|alt.badge.img+16
  • May 22, 2015

Use #s4-titlerow {background-image:url(image/myDailyImage.jpg);

You can use the action named "Copy To Sharepoint" copying each day the file you want and renaming it to myDailyImage.jpg


Forum|alt.badge.img+4
  • Author
  • May 22, 2015

But if the original files in that folder with multiple images are named image01, image02, image03...

How do I rename it to myDailyImage? I can't seem to figure that part  and It only overwrites the file if they are named the same. I haven't seen a rename action either.

Or is it like this:

1. Delete existing myDailyImage.jpg

2. Copy to SharePoint and point to the folder that myDailyImage.jpg would be

3. Update Item and change the Name field to myDailyImage.jpg


Forum|alt.badge.img+16
  • May 22, 2015

Previously you could use the Copy Item action


Forum|alt.badge.img+16
  • May 26, 2015

Peter Behler​, please mark it as answered, if have solved it