cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Can workflow copy a file and rename it?

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);}

Labels: (1)
0 Kudos
Reply
4 Replies
Workflow Hero

Re: Can workflow copy a file and rename it?

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

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Can workflow copy a file and rename it?

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

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Can workflow copy a file and rename it?

Previously you could use the Copy Item action

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Can workflow copy a file and rename it?

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

0 Kudos
Accept as Solution Reply