13
PS SharePoSH:\> http://www.SharePoSH.com @SharePoSH PowerPivot & other BI Commands REST APIs & PowerShell SharePoint + PowerShell User Group April 17, 2013

PS SharePoSH:\> :// @SharePoSH@SharePoSH PowerPivot & other BI Commands REST APIs & PowerShell SharePoint

Embed Size (px)

Citation preview

Page 1: PS SharePoSH:\> :// @SharePoSH@SharePoSH PowerPivot & other BI Commands REST APIs & PowerShell SharePoint

PS SharePoSH:\>

http://www.SharePoSH.com @SharePoSH

PowerPivot & other BI CommandsREST APIs & PowerShell

SharePoint + PowerShell User Group

April 17, 2013

Page 2: PS SharePoSH:\> :// @SharePoSH@SharePoSH PowerPivot & other BI Commands REST APIs & PowerShell SharePoint

PS SharePoSH:\>

http://www.SharePoSH.com @SharePoSH

Agenda

• Hello!• Group Logistics (GoToMeeting/ website /

register / email / twitter)• Doug! (PowerPivot + BI)• REST API nonsense• Next meeting• Survey!

Page 3: PS SharePoSH:\> :// @SharePoSH@SharePoSH PowerPivot & other BI Commands REST APIs & PowerShell SharePoint

PS SharePoSH:\>

http://www.SharePoSH.com @SharePoSH

Raymond Mitchell• SharePoint Consultant

– http://www.Rackspace.com

• Author• Dad• Information Worker Kid

– http://www.iwkid.com

• SharePoSHing since 2008

Hello!

Page 4: PS SharePoSH:\> :// @SharePoSH@SharePoSH PowerPivot & other BI Commands REST APIs & PowerShell SharePoint

PS SharePoSH:\>

http://www.SharePoSH.com @SharePoSH

Doug Hemminger• SharePoint Solution Architect

– Quantitative Risk Management

• Dad• Chicago, IL• @DougHemminger

– http://www.SharePointDoug.com

• SharePoSHing since 2007

Hello!

Page 5: PS SharePoSH:\> :// @SharePoSH@SharePoSH PowerPivot & other BI Commands REST APIs & PowerShell SharePoint

PS SharePoSH:\>

http://www.SharePoSH.com @SharePoSH

What about you?

Page 6: PS SharePoSH:\> :// @SharePoSH@SharePoSH PowerPivot & other BI Commands REST APIs & PowerShell SharePoint

PS SharePoSH:\>

http://www.SharePoSH.com @SharePoSH

Your turn, Doug!

Page 7: PS SharePoSH:\> :// @SharePoSH@SharePoSH PowerPivot & other BI Commands REST APIs & PowerShell SharePoint

PS SharePoSH:\>

http://www.SharePoSH.com @SharePoSH

REST APIs

Page 8: PS SharePoSH:\> :// @SharePoSH@SharePoSH PowerPivot & other BI Commands REST APIs & PowerShell SharePoint

PS SharePoSH:\>

http://www.SharePoSH.com @SharePoSH

• Interact with SharePoint from your desktop– Automate site/content creation– Check for list content

• Sample requires PowerShell 3.0– Invoke-RestMethod

• Make GET requests

PowerShell + REST API

Page 9: PS SharePoSH:\> :// @SharePoSH@SharePoSH PowerPivot & other BI Commands REST APIs & PowerShell SharePoint

PS SharePoSH:\>

http://www.SharePoSH.com @SharePoSH

• Upload files to SharePoint

1. Save your creds for use later2. Make a call to get the ContextInfo3. Read the FormDigest from the

ContextInfo4. Tweak the header for future

requests to include FormDigest5. Make a REST call

PowerShell + REST API

Only required for POST/PUT

Page 10: PS SharePoSH:\> :// @SharePoSH@SharePoSH PowerPivot & other BI Commands REST APIs & PowerShell SharePoint

PS SharePoSH:\>

http://www.SharePoSH.com @SharePoSH

Next Meeting

• TBD – Your Demos

Page 11: PS SharePoSH:\> :// @SharePoSH@SharePoSH PowerPivot & other BI Commands REST APIs & PowerShell SharePoint

PS SharePoSH:\>

http://www.SharePoSH.com @SharePoSH

Resources

• REST API– http://

msdn.microsoft.com/en-us/library/jj164022.aspx • PowerShell + SharePoint forum at

PowerShell.org:– http://powershell.org/discuss/viewforum.php?f=12

• PowerShell Summit: April 22-24http://powershell.org/summit

Page 13: PS SharePoSH:\> :// @SharePoSH@SharePoSH PowerPivot & other BI Commands REST APIs & PowerShell SharePoint

PS SharePoSH:\>

http://www.SharePoSH.com @SharePoSH

Survey!

• http://sdrv.ms/17HzsYd