PS SharePoSH:\> SPListItem / SPFile SharePoint + PowerShell User Group March 27,

Slides:



Advertisements
Similar presentations
Samsung Smart TV is a web-based application running on an application engine installed on digital TVs connected to the Internet.
Advertisements

MOSS 2007 Document Management Adam McCarthy 1 st April 2009.
Attributes of SharePoint Migration  Quickly Migrate bulk SharePoint offline or Online database in other SharePoint or Office365.  Transfer Multiple.
Programming SharePoint Object Model, Web Services, and Events Michael Morton 4/15/03.
SharePoint PREP Version 2.0 Chris Felknor MIT iCampus
Microsoft ® Official Course Working with Lists and Libraries Microsoft SharePoint 2013 SharePoint Practice.
KEISER UNIVERSITY GRADUATE SCHOOL FACULTY LIBRARY HELP GUIDE A Q&A TUTORIAL TO ACCESS LIBRARY RESOURCES.
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
©2011 Quest Software, Inc. All rights reserved. Steve Walch, Senior Product Manager Blog: November, 2011 Partner Training Webcast.
AdvisorEvents.com Building WorkFlow Solutions with Windows SharePoint Services Patrick Tisseghem MVP SharePoint Portal.
Agenda Overview 2.What is SharePoint? 3.NCDOT Websites 4.Roles 5.Search 6.SharePoint Interface.
DAVE WILLIAMS (NOTRE DAME) AND MARK SULLIVAN (SUNY GENESEO) ILLiad Addons: Significant Improvement to Your Staff Productivity.
Developing Workflows with SharePoint Designer David Coe Application Development Consultant Microsoft Corporation.
Office 365 & Charts. Office 365 Features Latest versions of Office suites No tension of loosing your work Access from anywhere and on any device Share.
In addition to Word, Excel, PowerPoint, and Access, Microsoft Office® 2013 includes additional applications, including Outlook, OneNote, and Office Web.
Agenda Principal Consultant, SharePoint Development Team Lead John Ramminger Linked In:
OBJECT REFERENCE. Objective How to work with objects in SharePoint by using classes?
SOML Issue Tracking Guide to using the new ETSEDMS server for Issue Tracking.
PS SharePoSH:\> PowerPivot & other BI Commands REST APIs & PowerShell SharePoint.
PS SharePoSH:\> Lists & Views SharePoint + PowerShell User Group September 14, 2012.
HOW SHAREPOINT WORKS By Gary Newman. Root Folder Virtual Directories SP Farm DNS Iterative Forward DNS query for A host record HTTP request HTML & JS.
0 eCPIC User Training: Resource Library These training materials are owned by the Federal Government. They can be used or modified only by FESCOM member.
Macro Express. What is a Macro? “A macro is a way to automate a task that you perform repeatedly or on a regular basis. It is a series of commands and.
New & Improved Events List Relationships and Joins Large List Support Field & List Item Validation.
Damian Tamayo Tutorial DTM Data Generator Fall 2008 CIS 764.
Microsoft TS: Microsoft Windows SharePoint Services Application Development Thousands of IT Professionals before you have already passed their.
Welcome to the Minnesota SharePoint User Group. Introductions / Overview SharePoint 101 High level overview of SharePoint Differences between SharePoint.
Technical Overview. Project Overview Document Library Document List Index TransmittalsPlanning.
Copyright © 2006 Pilothouse Consulting Inc. All rights reserved. Security Overview Functional security – users, groups, and permissions for sites, lists,
Online Public Access ACERA Spring Meeting April 6, 2011 Pamela Wright Chief Digital Access Strategist, NARA 1.
PS SharePoSH:\> SharePoint Solutions & Features SharePoint + PowerShell User Group.
PS SharePoSH:\> Web Parts! SharePoint + PowerShell User Group August 17, 2012.
PS SharePoSH:\> SPSite & SPWebs SharePoint + PowerShell User Group November 21, 2012.
SharePoint 2013 Creation of Lists (and useful application of them)
The SharePoint Shepherd’s Course for End Users Based on the book by Robert L. Bogue Copyright 2011 AvailTek LLC All Rights Reserved.
PubMed/How to Search, Display, Download & (module 4.1)
Microsoft ® Official Course Implementing Enterprise Content Management Microsoft SharePoint 2013 SharePoint Practice.
Electronic Collaboration Introduction to Basecamp.
GP 2015 Client Event. Management Reporter As of 5/1/2015 the most recent version of MR is 2012 Cumulative Update 12. Mainstream Support for FRx 6.7 ended.
Working with PerformancePoint in SharePoint 2013 Christina Wheeler.
Programming the Microsoft SharePoint Products and Technologies Object Model Paul Appleby Developer & Platform Group
Programming the Microsoft SharePoint Products and Technologies Object Model Paul Appleby Developer & Platform Group
VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Architecture & Object Model Overview VITALE, CATURANO & COMPANY LTD SharePoint Developer Series – Architecture.
UST Connect – Learn how to set up your profile and upload a resume. UST Connect is managed by UST Career Services. (713)
AFSA Website New Retainer Form Process March 2015 – IVP Tim Litherland (Updated August 2015)
WMarket For Adminstrators Manual Installation. Basic Dependencies To install your own WMarket instance, you are required to install the following software:
Name Developing your own Query Magic in SharePoint Search Virgil Carroll principal architect, high monkey.
Instructions for Website How to register: 1. Click “Register” under the banner 1.
Installing RMS 3.0 Contractor Mode
SharePoint PREP Version 2.0
Yochay Kiriaty Senior Technical Evangelist Microsoft® Corporation
LMEvents SharePoint Portal How-to Guide
Programming SharePoint Object Model, Web Services, and Events
Learn How to Register as a Student and Upload a Resume
Navigation SharePoint.
Microsoft Dynamics.
Open Source Ecommerce Script | PHP Shopping Cart Script | Ecommerce Software | Ecommerce Website Software source-ecommerce-script/
Office 365 Development.
This presentation has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational purposes.
This presentation document has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational.
Manage your documents CIRCABC Module 1 DIGIT A3
“Hello” slide Hello. Here’s what you need to know about your new Office: Access your files and personal settings, and applications from virtually anywhere.
This presentation document has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational.
This presentation has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational purposes.
This presentation document has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational.
Microsoft Visit: Pass4sureofficial.com is a reputable.
This presentation has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational purposes.
This presentation document has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational.
This presentation document has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational.
Presentation transcript:

PS SharePoSH:\> SPListItem / SPFile SharePoint + PowerShell User Group March 27, 2013

PS SharePoSH:\> Agenda Hello! Group Logistics (GoToMeeting/ website / register / / twitter) SPListItem / SPFile Next meeting Survey!

PS SharePoSH:\> Raymond Mitchell SharePoint Consultant – Author Dad Information Worker Kid – SharePoSHing since 2008 Hello!

PS SharePoSH:\> What about you?

PS SharePoSH:\> SPListItem List item Library item SPListItemCollection – SPList.Items

PS SharePoSH:\> SPListItem SPList.Items[5] Iterating by index can be VERY expensive

PS SharePoSH:\> SPListItem More ways to get items using SPList members – GetItems String[]items only with specific fields SPQueryitems by query SPViewitems by view SPQuery, Stringby query and view – GetItemsWithUniquePermissions

PS SharePoSH:\> SPListItem More ways to get items using SPList members – GetItemById & GetItemByIdAllFields – GetItemByIdSelectedFields – GetItemByUniqueId

PS SharePoSH:\> SPListItem Once you have an item: – SPList.Fields or SPListItem.Fields

PS SharePoSH:\> SPListItem Reading field values – Item[guid]Field’s id – Item[Int32]Field’s index – Item[String]Title or Internal Name But it isn’t always quite that easy...

PS SharePoSH:\> SPListItem Reading field values – SPFieldUser / SPFieldUserValue – SPFieldLookup / SPFieldLookupValue LookupId LookupValue $fieldName = "Assigned To" $f = $list.Fields[$fieldName] $fv = $f.GetFieldValue($item[$fieldName])

PS SharePoSH:\> SPListItem Similar for setting values $new = $list.Items.Add() $fv = new-object Microsoft.SharePoint.SPFieldUrlValue() $new["Search URL"] = $fv $new.Update()

PS SharePoSH:\> SPListItem Requires Update to commit – Update() – UpdateOverwriteVersion() – SystemUpdate(boolean) true = increment item version false = don’t update Modified or Modified By

PS SharePoSH:\> SPListItem Common Properties – Attachments – Fields – File / Folder – HasUniqueRoleAssignments Common Methods – BreakRoleInheritance – ResetRoleInheritance

PS SharePoSH:\> SPFile SPListItem.File SPFolder.Files – RootFolder property – SPWeb.GetFolder(string)URL of the folder SPWeb.GetFile(string) URL of the file

PS SharePoSH:\> SPFile Common Properties – Exists – ItemFile’s parent SPListItem – LengthFile size (in bytes) – Url

PS SharePoSH:\> SPFile Common Methods – CheckIn/CheckOut/Publish – CopyTo(string, bool) Destination and Overwrite – MoveTo – OpenBinary/OpenBinaryStream – SaveBinary/SaveBinaryStream

PS SharePoSH:\> SPFile Download files from SharePoint via SPFile (C#) $b = $file.OpenBinary() $fs = New-Object System.IO.FileStream("c:\temp\test.docx", "create", "readwrite") $bw = New-Object System.IO.BinaryWriter($fs) $bw.Write($b) $bw.Close() Just want a string? – SPWeb.GetFileAsString(string)URL

PS SharePoSH:\> Next Meeting TBD – Your Demos

PS SharePoSH:\> Resources PowerShell + SharePoint forum at PowerShell.org: – PowerShell Summit: April

PS SharePoSH:\> Resources Save files from SharePoint document library to File System sharepoint-document-library-to-file-system.aspx sharepoint-document-library-to-file-system.aspx SPListItem us/library/microsoft.sharepoint.splistitem(v=office.14).aspx us/library/microsoft.sharepoint.splistitem(v=office.14).aspx SPFile

PS SharePoSH:\> Survey!