Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Search Folders on Sharepoint Store

0 views
Skip to first unread message

Damir Simunic

unread,
Jul 31, 2001, 4:49:40 AM7/31/01
to
Has anyone been successful in creating search folders on sharepoint store?
When I try to create the search folder using DAV MKCOL command, it always
returns Error 400 Bad Request. Reading through the Exchange SDK, I found out
something about not being able to create search folders on a public store
reserved for MAPI clients, "usually called public."

Then again, if I look at SPPS categories, they seem to be proper search
folders. (Never mind the fact that SPPS uses undocumented INVOKE command to
create categories).

My questions are:

a) does anyone know how to create search folders on sharepoint store, or at
least confirm that such action is totally impossible;
b) is it possible to mark public folder of spps store as not reserved for
MAPI clients, so that it drops the restriction for creating search folders.
c) Is there a third solution? Did something change with Exchange Service
pack 1?

Thanks,

Damir


Philip Semanchuk

unread,
Jul 31, 2001, 7:35:10 AM7/31/01
to
Damir,
The VB code below works for me. It is not sophisticated; it is just a
quickie I wrote to prove a concept. I used my username and password. I
am a top-level coordinator/administrator/Big Cheese everywhere -- in
SPPS on the NT server box, etc. YMMV =)

To run the code successfully you have to replace everything in <angle
brackets> with appropriate strings.

Good luck with it and let me know how it turns out.

Philip

Sub CreateSearchFolder()

' By Philip Semanchuk
' Meridium Sverige AB
' Creates a search folder that enumerates a user's checked-out
documents. The folder must
' not exist beforehand. The folder is created under the Portal Content
folder. That's the
' only place I can get it to work.
' This code was shamelessly stolen from:
'
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wss/_exch2k_creating_search_folders.asp

Dim objReq As XMLHTTPRequest
Dim s As String
Dim sSQL As String
Dim sPath As String
Dim sUsername As String
Dim sPassword As String

' Fully qualified path seems important. Using just "/Documents" fails.
sPath = "http://<servername>/<workspacename>/Documents"
sUsername = "<username>"
sPassword = "<password>"

sSQL = "SELECT " & _
" ""DAV:href"", " & _
" ""DAV:displayname"", " & _
" ""DAV:getlastmodified"", " & _
" ""urn:schemas-microsoft-com:office:office#Description"", " & _
" ""urn:schemas-microsoft-com:publishing:ShortcutTarget"", " & _
" ""urn:schemas-microsoft-com:publishing:checkedoutby"", " & _
" ""urn:schemas-microsoft-com:office:office#Title"", " & _
" ""urn:schemas-microsoft-com:office:office#Author"" " & _
" FROM SCOPE('DEEP traversal of """ & sPath & """')" & _
" WHERE ""urn:schemas-microsoft-com:publishing:checkedoutby"" =
'<DOMAINNAME>\" & sUsername & "'"

Set objReq = New XMLHTTPRequest

Call objReq.Open("MKCOL", "http://<servername>/<workspacename>/Portal
Content/" & sUsername, False, sUsername, sPassword)

s = "<?xml version='1.0'?>"
s = s + "<d:propertyupdate xmlns:d='DAV:'>"
s = s + "<d:set><d:prop><d:searchrequest><d:sql>" + sSQL + "</d:sql>"
s = s + "</d:searchrequest></d:prop></d:set></d:propertyupdate>"
Call objReq.setRequestHeader("Content-type:", "text/xml")

Call objReq.send(s)

Call MsgBox(objReq.statusText)

Set objReq = Nothing

End Sub


On Tue, 31 Jul 2001 10:49:40 +0200, "Damir Simunic" <n...@email.pls>
wrote:

Damir Simunic

unread,
Jul 31, 2001, 10:37:01 AM7/31/01
to
Philip, way cool!

It works indeed. Had the code in vbscript to create all folders and stuff
(I'm actually creating a script so that I can re-install my creation on
other spps machines), but was focused on trying to make it work in Public
folder. Then I tried it on another SPPS machine (other domain), and got 403
on Portal content folder. Finally made it work on the third machine
(standalone server).

I'm in the dark why and how it works. Too bad, it is such a nice concept...
If I find out more, will let you know.


Thanks,

d.

"Philip Semanchuk" <philip.s...@meridium.se> wrote in message
news:3b669666...@msnews.microsoft.com...

Damir Simunic

unread,
Jul 31, 2001, 11:36:50 AM7/31/01
to
You'd be interested in hearing that you can also create search folders under
Categories. If you use your code, the folder will have the content class of
urn:content-classes:rootcategory folder, which you need to change to
urn:content-classes:categoryfolder if you want to delete it, or have it
appear in SPPS dashboard.

d.


Gary A. Bushey

unread,
Jul 31, 2001, 1:22:39 PM7/31/01
to
You may want to check out the new document management web part that is part
of the SPS Resource kit. It has a ".vbs" file that needs to be run before
the web part works and it is my understanding that is creates just such a
folder.

--
Gary A. Bushey
bus...@mindspring.com

"Damir Simunic" <n...@email.pls> wrote in message
news:udVrB3ZGBHA.1324@tkmsftngp07...

Philip Semanchuk

unread,
Aug 1, 2001, 8:15:09 AM8/1/01
to
Thanks Damir. I too would like more explanation on the subject. The
documentation is very Exchange-oriented and some of the concepts don't
map to SPPS very well.

On Tue, 31 Jul 2001 17:36:50 +0200, "Damir Simunic" <n...@email.pls>
wrote:

>You'd be interested in hearing that you can also create search folders under

Damir Simunic

unread,
Aug 1, 2001, 9:42:31 AM8/1/01
to
Philip,

I'm still in the dark about the whole issue. Apparently you can create
search folders on some of the SPPS folders (I know that System is one of
those, thanks to Gary's tip), but not outside of the workspace. Give me a
few days to research a bit more and I'll post here what I found out.

do.

"Philip Semanchuk" <philip.s...@meridium.se> wrote in message

news:3b67f281...@msnews.microsoft.com...

0 new messages