Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Does SPPS have an API so that things can be done through code rather than manually (Log In, Che

  Asked By: Krysta    Date: Mar 16    Category: Sharepoint    Views: 1532

I was very pleased to find this group. I'm a programmer and I've
taken on a project for a company that uses SPPS, which I know nothing
about. This project involves creating files to be placed into SPPS
folders for approval. I installed SPPS 2 days ago I've been lost in
the wilderness since, trying to figure out what SPPS is all about and
how to make it yield the best results.

I have a number of questions that I would be thrilled to have
answered but I'll start with just one:

Does SPPS have an API so that things can be done through code rather
than manually (Log In, Check In, Check Out, etc.)?

Also, can you guys point me to some SPPS site that I can visit to get
some ideas of what all can done with it?



1 Answer Found

Answer #1    Answered By: Marcus Davis     Answered On: Mar 16

I know exactly how you feel. I was in the same boat last year. What you
aiming to do is pretty straight-forward but I know that finding stuff can be
a bit of a headache.
There's no high level API as such - not like the Windows API - I guess it's
more COM rather than API. code  is written through CDO - I think the DLL is
PKMCDO. You can write ASP or VB code that will access your Sharepoint
objects, properties etc. Here's a good place to go:
Look in the CODE section.

Here's an example that deletes a document using ado going through the cdo-
it deletes a document (by Tom Thompson).

Dim objSPSDoc
Set objSPSDoc = CreateObject("CDO.KnowledgeDocument")

"http://fileserver/test/Documents/LinkChecker.txt", , 3


Set objSPSDoc = Nothing


This one will move a doc. from Sharepoint to the physical file system, again
using ado. (Tom Thompson). You can use ADO to move the document the other
way too.

Dim objADOStream
Dim objCDOKnowledgeDocument

Set objCDOKnowledgeDocument = CreateObject("CDO.KnowledgeDocument")

"http://fileserver/test/documents/Jokes.txt", , 3, 0

Set objADOStream = objCDOKnowledgeDocument.OpenStream
objADOStream.Type = 1 ' adTypeBinary
objADOStream.SaveToFile "c:\test.txt"


There's some good stuff on the Microsoft site  about file migration. I have
something similar at work. Let me know if you want it.