Introduction to WSSv3 OM

Hey folks, as promised–we have hit the Beta2 mark, so here come the blogs again.  I have had the opportunity to work with many of you in our private TAP and Beta programs, which I have enjoyed very much.  I hope to initially share some of the knowledge that I gained during this experience with…

9

How to reprovision a document library programatically (simple example)

I have gotten a lot of questions recently around the topic of reprovisioning.  I wanted to show a simple example to get folks started.  Reprovisioning will be a topic of interest during the up and comming site definitions posts that I’m working on putting together.  I am still holding on those for now, but decided that…

1

Programatically remove Manager information from Portal Profiles

I’ve seen a few requests recently where folks want to get rid of the Manager/Direct Reports functionality within Portal.  I suspect the most common reason for this that folks are making their sites externally available and dont want people outside of the company viewing the entire reporting structure.  Removing this functionality would entail removing the mapping from…

2

SharePoint Portal audience compilation testing code sample

Today is fun with Audiences day!  Audience compilation is a codebase that I am very familiar with.  John West (http://blogs.msdn.com/johnwe/) recently posted that if you’re having audience compilation issues to make sure you had the latest Portal rollup applied.  I’ll echo that statement here and note that in reality you simply have to have Microsoft.SharePoint.Portal.dll beyond…

0

Some SharePoint Portal OM basic samples

Refer to http://blogs.msdn.com/dwinter/archive/2005/03/01/383306.aspx (Portal OM) and http://blogs.msdn.com/dwinter/archive/2005/02/15/373076.aspx (WSS OM) for setup if you are not familiar with creating a SharePoint OM application.We’ll start with a C# Windows Form application.  I am using Microsoft.SharePoint, Microsoft.SharePoint.Portal, Microsoft.SharePoint.Portal.Alerts, Microsft.SharePoint.Portal.UserProfiles, Microsoft.SharePoint.Portal.Topology in these samples.  Use the same kind of setup in your designer that I showed in the initial Portal OM post. To…

0

Creating an application using the SharePoint Portal Object Model -- accessing PortalSite

Just as with the WSS OM, I will start out simple here.  I am going to illustrate three different ways you might arrive at a PortalSite object.  PortalSite could be considered to be your starting point in a SPS OM application.  From PortalSite you can establish PortalContext which is required for many OM calls.  As…

1

Using SharePoint Web Services to submit a simple search request

Refer to http://blogs.msdn.com/dwinter/archive/2005/02/15/373076.aspx for setup if you are not familiar with creating a SharePoint OM application. For this entry, you may want to enable the invoke via IE capability discussed in http://blogs.msdn.com/dwinter/archive/2005/02/21/377695.aspxWe’ll start with a C# Windows Form application.  I generally go ahead and add the Microsoft.SharePoint reference because I’m doing more then just a…

2

Programatically change metadata across all data on all SPList objects in WSS

Refer to http://blogs.msdn.com/dwinter/archive/2005/02/15/373076.aspx for setup if you are not familiar with creating a SharePoint OM application. This is a simple example of programatically changing metadata on data within all lists in a site.  This can be necessary if you wish to change static data within custom or default fields, or perhaps to adjust a migration gone wrong. This function…

2

So you want to play with SharePoint web services?

Sometimes you may want to do a quick OM call without actually writing an application. This can on occasion be done using the existing web services.  Not every call allows for it–but many do, and you might just find yourself in a situation where you can use this. Here’s what I’m talking about.  If you…

0

Setting Max and Warning Quotas globally on existing WSS sites

Refer to http://blogs.msdn.com/dwinter/archive/2005/02/15/373076.aspx for setup if you are not familiar with creating a SharePoint OM application. This is a simple example of changing Max and Warning Storage quotas on all sites.  This can be necessary if you wish to change the quotas on existing sites and not just new ones.  I am showing a few…

0