How do I copy folder/data from a site to a new site with Web Services

Éric Labelle's Avatar

Éric Labelle

02 Aug, 2010 02:22 PM

Hello! I'm trying to create a new site, and then browse an existing site and copy everything I found in this site to the new site using the web services. I have been able to List all the element from the existing site, but not so sure how to Create the new site
Site wSite = new Site();

wSite.setName("Site-Copy");

does not seam to create anything. As for the asset/folders copy.. it's really unclear how to do this, with Copy, CopyParameters or AssetOperationHandler.copy.

Is there any documentation somewhere because it's really hard to guess how to do what in there..

Thanks

  1. Support Staff 1 Posted by Tim on 26 Aug, 2010 01:35 PM

    Tim's Avatar

    Hi Eric,

    Check out this post. I believe the sample linked from there will help you get started. Or, you may even be able to make use of that script as it is.

    Hope this helps!

  2. Tim closed this discussion on 26 Aug, 2010 01:36 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac