Sharepoint 2010 Forum

 
Home » Forum » Sharepoint 2010       Ask a questionRSS Feeds

Move file between folders in a Document Library in Sharepoint 2010

  Asked By: Sunil Dhiman         Date: Apr 26, 2011      Category: Sharepoint 2010      Views: 6877
 

Hi,

I have a Sharepoint Document Library. In which I have two folders, i.e. Test1, Test2. Test1 contains a file i.e file1.txt. I want to move this file to Test2 folder using workflow. I tried to create workflow in Sharepoint Designer 2010, but not succeed. How can I achieve this or is there ant other way to move Item/File from one folder to another.


Regards,
Sunil Dhiman

Tagged:                  

 

1 Answer Found

 
Answer #1       Answered By: Sirisha Reddimasi          Answered On: May 10, 2011       

Hi,
You can use customize work flow to do this one.

If not you can customize code in the below way.

1. Once file is submitted for approval, move this file using splistitem.move to Test2 folder.
2. Once its approved, again move this file from test 2 to test 1.

You can maintain some column like Approval Status to check the status

 


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].