move DocumentSet from one library to another library using JSOM?

can you please help how to move DocumentSet from one library to another library using Java scriptclient side object model(JSOM)?
ravi potturuAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Randy DownsOWNERCommented:
Maybe this will help.

Since sandboxed solutions are deprecated in SharePoint 2013, and Microsoft is pushing SharePoint Online and the App model, many developers are finding that they must move from the server side object model to the client side object model (CSOM). With this, there are a number of challenges: many features are missing in the client object model, and many tasks that were once easy are now difficult.

Presumably as time goes on, the client object model will continue to mature and these issues will improve. However, one thing that won't change is the requirement to write efficient code: we are now, after all, talking across a network - our code is usually executing on a different machine whereas we used to be executing right there on the SharePoint server. And if your experience is anything like mine, you'll soon be spending time on improving your app latency and other performance issues.

In this article, I'll outline a number of techniques to make sure your code runs as fast as possible. My examples are written using the managed CSOM, however many (if not all) of the concepts can also be applied to the JavaScript version.
ravi potturuAuthor Commented:
Thanks for your reply. I need to move the docset either using SPD workflow or JSOM provide me  specific solution to it.
Randy DownsOWNERCommented:
Maybe this would work.

One out of the box feature you can try is to use "Manage Content and Structure" from Site Collection Home --> Site Actions --> Manage Content and Structure.

This will allow you to move your items with the metadata. I have not tried managed metadata and hence that is something you will have to verify. Also I am not sure about the workflow history.
ravi potturuAuthor Commented:
I know the out of box Move feature , But I require a sharepoint designer workflow where users can start the workflow whenever they require and start to move the documentset from one library to another library .Any solution that works precisely .Thanks
Randy DownsOWNERCommented:
Maybe this will help.

The simplest way to Customize SharePoint to get a document to move from one document library to another in SharePoint 2007 is to use SharePoint Designer 2007 and create a Workflow to handle this procedure. Here are the SharePoint Support needed to accomplish this task.


·         Open SharePoint Designer and open your website that contains the document libraries you wish to use.
·         Create a Workflow.
o   Click File -> New -> Workflow
o   A window should open that says Define your new workflow at the top. Give the workflow a name.
o   In the drop down menu under “What SharePoint list should this workflow be attached to?” choose the document library that has the files you wish to move.
o   Under this drop down menu, you should see three
check boxes. Allow this workflow to be manually started from an item and Automatically start this workflow when a new item is created should be checked.

For my example I am using DocLib1 (library that contains the documents we wa

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.