Welcome to MSDN Blogs Sign in | Join | Help

September 2009 - Posts

Code snippet to add / modify columns in a list

It iterates through a whole site collection and wherever the list with name “test” it finds, It will do the changes. 1: using System; 2: using System.Collections.Generic; 3: using System.Text; 4: using Microsoft.SharePoint; 5:   6: namespace ConsoleApplication1
Posted by TejasRathod | 0 Comments

Code sample to aggregate the text from "append changes" column to Multiline text field.

This is a code sample to copy all of the text from the “col1” column to “col2” column. To note again, “col1” is an "append changes" column so the previous edits of the comments field are stored in previous versions of the list item. 1: using
Posted by TejasRathod | 0 Comments

Ways to pass security credentials to web service call

[1] 1: WS.Credentials = new System.Net.NetworkCredential(userName, password, domain); .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/
Posted by TejasRathod | 0 Comments

Code to subscribe the User for alert notifications from a list

1: SPWeb web = SPContext.Current.Web; 2:   3: SPList list = web.Lists[ "Pages" ]; 4:   5: SPUser user = web.CurrentUser; 6:   7: SPAlert alert = user.Alerts.Add(); 8:   9: alert.Title = "My Alert" ; 10:   11:
Posted by TejasRathod | 0 Comments

In SPS 2003, Use custom template to create the document workspace through ECB menu link.

In SPS 2003, In the ECB menu of the documents we get an option “Create Document Workspace”. This link uses the OOB document workspace STS#2 to create the document workspace. There was a requirement to use our own custom template to create the document
Posted by TejasRathod | 0 Comments

How To: Access item metadata from workflow when associated in document library

Problem There is a workflow which accesses the item metadata on workflow activated. In case of document library, when you upload a document, if the workflow is set to start on ItemAdded, it will start just after upload is done and before you completely
Posted by TejasRathod | 0 Comments
 
Page view tracker