SharePoint development is a pain. You need a big VM, lots of RAM, can’t use any of the new fun stuff they show you at TechED. The API can be cumbersome, documentation can be as trustworthy as your average Russian banker.
How is a SharePoint developer to be productive and write reliable code in such a hostile environment? This hard learned session is both funny and sad at the same time where Sahil describes some of his painfully learnt development lessons.
Sahil Malik
1. Hard learned SharePoint dev tips
SAHIL MALIK
WWW.WINSMARTS.COM
@SAHILMALIK
SHAREPOINT AND PROJECT CONFERENCE ADRIATICS 2013
ZAGREB, NOVEMBER 27-28 2013
17. AllUserData
tp_ID
identify the list item
tp_GUID
To uniquely identify the list item
tp_ListId
To identify which list the item belongs to.
tp_SiteId
To identify which site the item belongs to. It is the value of ‘Id’ in ‘AllSites’ table
tp_RowOrdinal
Zero based ordinal index in the set of rows representing the list item
tp_Author
User who created the list item
tp_Editor
User who last edited the list item
tp_Modified
Modified date
tp_Created
Created date
tp_DeleteTransactionID
Not 0x if the item is in recycle bin
tp_IsCurrentVersion (bit)
1 or 0, identifying latest version
nvarchar1..64
Stores values of application fields of type nvarchar
ntext1..32
Stores application fields of type ntext
bit1..16
Application fields of type bit
datetime1..8
Application fields of type datetime
32. Getting a list
proc_EnumLists
proc_MapUrlToListAndView
proc_EnumLists loads all information of all lists in the SPWeb object, and then does a .Title comparison to find the
list you need.
proc_MapUrlToListAndView finds the GUID for the associated list, and then loads the metadata for the list you
need.