Welcome to Comunidade Bloggers |create|it| Sign in | Join | Help

Browse by Tags

All Tags » Sharepoint 2007
Change MOSS 2007 server to another Windows 2003 Domain
Last week I found that some emails weren't sent by sharepoint. When I created an alert I received an email saying that the alert was just created but after some change in the list no email was sent. The same problems happened with approval workflows. Read More...
Approval status, MOSS and Sharepoint Designer
I was creating a SPD workflow that checks the approval status field. When you add this condition in SPD, the designer automatically gives you a combo box with all the possible values for the approval status field: 1;#Rejected, ... This works fine if you Read More...
Custom Action for Sharepoint Designer
I'm going to create a custom action for Sharepoint Designer that creates a discussion thread in a discussion list based on the current list item. I'm going to use the code found here and put it into a SPD custom action. First create a Workflow Read More...
How to upload a list template
public static SPFile UploadListTemplate(string siteUrl, string templatePath) { using (SPSite site = new SPSite(siteUrl)) { SPDocumentLibrary templates = (SPDocumentLibrary)site.GetCatalog(SPListTemplateType. ListTemplateCatalog); System.IO.FileInfo fileInfo Read More...
How to upload a site template
public static SPFile UploadWebTemplate(string siteUrl, string templatePath) { using (SPSite site = new SPSite(siteUrl)) { SPDocumentLibrary templates = (SPDocumentLibrary)site.GetCatalog(SPListTemplateType.WebTemplateCatalog); System.IO.FileInfo fileInfo Read More...
How to create an item in a discussion list
Creating a discussion in discussion list is different from creating a simple list item. The code for creating a discussion item is: using (SPSite site = new SPSite("SITE URL")) { using (SPWeb web = site.OpenWeb()) { SPList list =web.Lists["LIST TITLE"]; Read More...
Built-In ContentType and Field Ids
Only today that I've found that the WSS object model has 2 classes that hold all the IDs of the built-in ContentTypes and Fields. Instead of doing things like this: SPListItem item = list.Items.Add(); item["Title"] = "bla la bla"; Read More...
ItemUpdating, AfterProperties and field names
I was checking for a field value change in a WSS V3 list with the help of event handlers with no success. In the ItemUpdating event, the list item has the current values of the item and the AfterProperties has the values that the item will have after Read More...
List User Profiles from MOSS 2007
using (SPSite site = new SPSite(siteUrl)) { ServerContext context = ServerContext.GetContext(site); UserProfileManager profileManager = new UserProfileManager(context); foreach (UserProfile userProfile in profileManager) Console.WriteLine(userProfile[PropertyConstants.UserName].Value); Read More...
Problems with ItemAdded and ItemUpdated in MOSS
Just followed the steps described by Ted Pattison at Creating and Using Event Handlers in Windows SharePoint Services 3.0 in my MOSS virtual machine to set up event handlers for the ItemAdded and ItemUpdated of a Sharepoint Custom List. The problem is Read More...
“Wait for field change in current item” workflow action in Sharepoint Designer
The "Wait for field change in current item" workflow action in the Sharepoint Designer only detects the change after the item is checked in. Imagine you have a document in a document library with a status field and you want to do something based on the Read More...