about me i have been working with sharepoint since 2008 my blog: email:

31

Upload: cory-page

Post on 12-Jan-2016

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: About Me I have been working with sharepoint since 2008 My blog:   Email:
Page 2: About Me I have been working with sharepoint since 2008 My blog:   Email:

About Me• I have been working with sharepoint since

2008• My blog:

http://www.greenroomsolutions.ca/blog/• Email: [email protected]• My spare time:

Page 3: About Me I have been working with sharepoint since 2008 My blog:   Email:
Page 4: About Me I have been working with sharepoint since 2008 My blog:   Email:

Timesheet System Integration

Page 5: About Me I have been working with sharepoint since 2008 My blog:   Email:

Background

• City of Langford has a homegrown ASP.NET timesheet system

• Allows staff to enter there time on a daily basis. Time entry is recorded on a project by project basis

• The times system exports a file which is imported into our Payroll ERP System (Great Plains)

Page 6: About Me I have been working with sharepoint since 2008 My blog:   Email:

Background Cont.

• System has its own SQL server database

Page 7: About Me I have been working with sharepoint since 2008 My blog:   Email:

Background Cont.

• Projects assigned to each employee are configurable.

• Each user is assigned a supervisor in the system.

Page 8: About Me I have been working with sharepoint since 2008 My blog:   Email:

Timesheet System Snip

Page 9: About Me I have been working with sharepoint since 2008 My blog:   Email:

Approval Process

• In the “old days”– People would print out there timesheet get their

supervisor to sign it and submit it to the payroll department

– Purely a paper process

Page 10: About Me I have been working with sharepoint since 2008 My blog:   Email:

Integration Functionality

• Approval done in SharePoint document library • Submit timesheet to SharePoint using SharePoint API• Document tagged with metadata (submitter, date),

dropped in Supervisor Folder (with security)• Ability to comment Timesheet

Page 11: About Me I have been working with sharepoint since 2008 My blog:   Email:

Server API vs CSOM (SP2010)

• Pros/ConsServer API CSOMEasier to code Limited OM exposed

Entire OM exposed More difficult to code

Requires sharepoint server on machine running code

Can run on any client

Wrapper over web services

Page 12: About Me I have been working with sharepoint since 2008 My blog:   Email:
Page 13: About Me I have been working with sharepoint since 2008 My blog:   Email:

Development History

• Originally in SP2007 this system used the Server API (no CSOM available). Required timesheet website to run on sharepoint server.

• In migration to SP2010 CSOM became available. Switched to this API so timesheet not coupled to sharepoint server

Page 14: About Me I have been working with sharepoint since 2008 My blog:   Email:

Pseudocode

• Generate report (already existing), byte array• Connect to sharepoint site, list• Query for supervisor folder IF it doesn’t exist

then create it first• Upload to supervisor folder• Tag with metadata

Page 15: About Me I have been working with sharepoint since 2008 My blog:   Email:

Generate Report

• Using .rdlc (visual studio report designer) to generate report Set it up

Render

Page 16: About Me I have been working with sharepoint since 2008 My blog:   Email:

Connect to the sharepoint site, list

Server API (old)

Page 17: About Me I have been working with sharepoint since 2008 My blog:   Email:

Connect to the sharepoint site, list

CSOM (new)

Page 18: About Me I have been working with sharepoint since 2008 My blog:   Email:

Query for Supervisor Folder (CSOM)

Page 19: About Me I have been working with sharepoint since 2008 My blog:   Email:

Query for supervisor folder cont

Page 20: About Me I have been working with sharepoint since 2008 My blog:   Email:

Create Supervisor Folder (CSOM)

Page 21: About Me I have been working with sharepoint since 2008 My blog:   Email:

Versus Server API

Page 22: About Me I have been working with sharepoint since 2008 My blog:   Email:

Upload Code

CSOM (new)

Server API

Page 23: About Me I have been working with sharepoint since 2008 My blog:   Email:

Tag with metadata (CSOM)

Page 24: About Me I have been working with sharepoint since 2008 My blog:   Email:

Tag with metadata (server API)

Page 25: About Me I have been working with sharepoint since 2008 My blog:   Email:

Timesheet Library

• Approve View (data grid format)

Page 26: About Me I have been working with sharepoint since 2008 My blog:   Email:

Supervisor Folders (in approval view)

Page 27: About Me I have been working with sharepoint since 2008 My blog:   Email:

Approval View (Datagrid)

Page 28: About Me I have been working with sharepoint since 2008 My blog:   Email:

Approval View Settings

Page 29: About Me I have been working with sharepoint since 2008 My blog:   Email:

Bonus Content

• Ever tried to change someones name in sharepoint?

• Ever had someone accidentally delete the root site in a site collection?

Page 30: About Me I have been working with sharepoint since 2008 My blog:   Email:

Bonus Content – Changing User Names

Page 31: About Me I have been working with sharepoint since 2008 My blog:   Email:

Bonus – Recover Deleted Site Collection