Presentation is loading. Please wait.

Presentation is loading. Please wait.

PS SharePoSH:\> Lists & Views SharePoint + PowerShell User Group September 14, 2012.

Similar presentations


Presentation on theme: "PS SharePoSH:\> Lists & Views SharePoint + PowerShell User Group September 14, 2012."— Presentation transcript:

1 PS SharePoSH:\> http://www.SharePoSH.comhttp://www.SharePoSH.com @SharePoSH@SharePoSH Lists & Views SharePoint + PowerShell User Group September 14, 2012

2 PS SharePoSH:\> http://www.SharePoSH.comhttp://www.SharePoSH.com @SharePoSH@SharePoSH Agenda Hello! Group Logistics (GoToMeeting/ website / register / email / twitter) Lists & Views Useful Scripts Next meeting

3 PS SharePoSH:\> http://www.SharePoSH.comhttp://www.SharePoSH.com @SharePoSH@SharePoSH Raymond Mitchell SharePoint Consultant – http://www.Rackspace.com http://www.Rackspace.com Author Dad Information Worker Kid – http://www.iwkid.com http://www.iwkid.com SharePoSHing since 2008 Hello!

4 PS SharePoSH:\> http://www.SharePoSH.comhttp://www.SharePoSH.com @SharePoSH@SharePoSH What about you?

5 PS SharePoSH:\> http://www.SharePoSH.comhttp://www.SharePoSH.com @SharePoSH@SharePoSH Lists & Views Lists & Views Basics Review SPListCollection SPList Creating Lists (templates) SPField SPView

6 PS SharePoSH:\> http://www.SharePoSH.comhttp://www.SharePoSH.com @SharePoSH@SharePoSH List & Views Lists – View all site content – Hidden lists (Galleries, Workflow Support, User Info) – Lists vs. Libraries Views – Shared and Personal – Hidden

7 PS SharePoSH:\> http://www.SharePoSH.comhttp://www.SharePoSH.com @SharePoSH@SharePoSH SPListCollection SPWeb.Lists Filter by Type / Hidden $web.Lists | ? { $_.BaseType -eq "DocumentLibrary" -and $_.Hidden -eq $false } | ft Title, Hidden, RootFolder

8 PS SharePoSH:\> http://www.SharePoSH.comhttp://www.SharePoSH.com @SharePoSH@SharePoSH SPList SPWeb.Lists[title] SPWeb.GetList(url) SPListCollection.GetList(GUID, bool) SPListCollection.TryGetList(title)

9 PS SharePoSH:\> http://www.SharePoSH.comhttp://www.SharePoSH.com @SharePoSH@SharePoSH SPList Common Properties – Title, Description, Hidden, Versioning, DefaultView, Items, BaseType – RootFolder, EventReceivers, ContentTypes, WorkflowAssociations Common Methods – GetItems – GetItemById http://msdn.microsoft.com/en- us/library/microsoft.sharepoint.splist_properties

10 PS SharePoSH:\> http://www.SharePoSH.comhttp://www.SharePoSH.com @SharePoSH@SharePoSH Creating Lists SPListCollection.Add(title, description, template) SPListTemplateType (http://msdn.microsoft.com/en- us/library/microsoft.sharepoint.splisttemplatetype)http://msdn.microsoft.com/en- us/library/microsoft.sharepoint.splisttemplatetype SPWeb.ListTemplates SPSite.GetCustomListTemplates(web) http://msdn.microsoft.com/en-us/library/ms477358

11 PS SharePoSH:\> http://www.SharePoSH.comhttp://www.SharePoSH.com @SharePoSH@SharePoSH SPField SPFieldCollection.Add(name, Type, bool) SPFieldType (http://msdn.microsoft.com/en- us/library/microsoft.sharepoint.spfieldtype)http://msdn.microsoft.com/en- us/library/microsoft.sharepoint.spfieldtype http://msdn.microsoft.com/en-us/library/ms472869

12 PS SharePoSH:\> http://www.SharePoSH.comhttp://www.SharePoSH.com @SharePoSH@SharePoSH SPView SPList.DefaultView ViewFields.Add(title)

13 PS SharePoSH:\> http://www.SharePoSH.comhttp://www.SharePoSH.com @SharePoSH@SharePoSH YOUR scripts!

14 PS SharePoSH:\> http://www.SharePoSH.comhttp://www.SharePoSH.com @SharePoSH@SharePoSH Next Meeting Wednesday, October 17 th Topics: – Publishing – IIS / web.config – Security – Crazy Stuff

15 PS SharePoSH:\> http://www.SharePoSH.comhttp://www.SharePoSH.com @SharePoSH@SharePoSH Resources PowerShell + SharePoint forum at PowerShell.org: – http://powershell.org/discuss/viewforum.php?f=1 2 http://powershell.org/discuss/viewforum.php?f=1 2


Download ppt "PS SharePoSH:\> Lists & Views SharePoint + PowerShell User Group September 14, 2012."

Similar presentations


Ads by Google