jdporter has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone have any experience scripting SharePoint? I want/need to import whole directory structures full of documents into my SharePoint site. I understand that WebDAV is probably the protocol to use; if so, then HTTP::DAV could be useful. But if anyone has any more info that could help get me started, or even sample code for talking to SharePoint, that would be very helpful.

We're building the house of the future together.

Replies are listed 'Best First'.
Re: SharePoint automation
by NetWallah (Canon) on Feb 02, 2006 at 02:57 UTC
    This is probably easier than you think. Why script it ? Does this need to be done repeatedly ?

    If I remember right, I was able to open my Sharepoint "document library" ine "Explorer" mode, and drag a file structure into it. YMMV.

    I also find documents on the web allowing you direct access into Sharepoint's SQL database, where everything is a list. so, DBI may be a candidate approach . Hmmm : it would be a great idea to come up with a DBI::Sharepoint module.

         "For every complex problem, there is a simple answer ... and it is wrong." --H.L. Mencken

Re: SharePoint automation
by roboticus (Chancellor) on Mar 06, 2008 at 20:20 UTC

    I just got out of a meeting where I learned that I'll have to be publishing some reports to SharePoint. So I did a little googling, and found that under Windows, you can access a sharepoint site via a UNC name. The URL:


    is accessible via:


    So if you're running your code on a Windows client, you may be able to just treat it as another directory. (That's what I'm planning on doing.)