Profile
Achievement
blackf0rk's Recent SnippetsTagged sharepoint
- All /
« Prev 1 Next »
An important thing to keep in mind about adding groups is that you add groups to site collections and not webs. To do this, we access the SiteGroups collection rather than the Groups collection.
In order to assign permissions, each group you add n...
0
973
posted 14 years ago by blackf0rk
This will delete all items in a SharePoint list. Better than looping through a SPListItemCollection and doing a .delete();
0
1083
posted 14 years ago by blackf0rk
In order to accurately get the next ID from a SharePoint list you need to access the content database for one reason: If you delete all the items from a list, and execute this simple code: list.Items[list.ItemCount -1].ID) + 1 the ID will always retu...
0
897
posted 14 years ago by blackf0rk
This command will fix the “The list is too large to save as a template. The size of a template cannot exceed 10485760 bytes." error when saving a list (including content) that's too big.
0
806
posted 15 years ago by blackf0rk