Sharepoint Tutorial
Sharepoint Tutorial
Audience
This tutorial has been prepared for anyone has an urge to develop websites and Apps.
After completing this tutorial you will find yourself at a moderate level of expertise in
developing websites and Apps using SharePoint.
Prerequisites
Before you start proceeding with this tutorial, we are assuming that you are already aware
about the basics of Web development.
All the content and graphics published in this e-book are the property of Tutorials Point (I)
Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute or republish
any contents or a part of contents of this e-book in any manner without written consent
of the publisher.
We strive to update the contents of our website and tutorials as timely and as precisely as
possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt.
Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of our
website or its contents including this tutorial. If you discover any errors on our website or
in this tutorial, please notify us at [email protected]
i
SharePoint
Table of Contents
About the Tutorial ............................................................................................................................................ i
Audience ........................................................................................................................................................... i
Prerequisites ..................................................................................................................................................... i
Copyright & Disclaimer ..................................................................................................................................... i
Table of Contents ............................................................................................................................................ ii
iii
1. SharePoint – Overview SharePoint
This tutorial will give you an idea of how to get started with SharePoint development.
Microsoft SharePoint is a browser-based collaboration, document management platform
and content management system. After completing this tutorial, you will have a better
understating of what SharePoint is and what are the high-level feature areas and
functionalities of SharePoint.
What is SharePoint
SharePoint is a platform to support collaboration and content management system. It is a
central web-based portal. Using SharePoint, you can manage your colleague’s and your
own documents, social activities, data, and information.
Documents can be stored, downloaded and edited, then uploaded for continued
sharing.
SharePoint offers such a wide array of features that it is very challenging for any
one person to be an expert across all the workloads.
Let us understand what all can we do with SharePoint. It is divided into three separate
areas-
Collaboration
The term collaboration contains a very strong theme for SharePoint. It means bringing
people together through different types of collaboration, such as enterprise content
management, Web content management, social computing, discoverability of people and
their skills.
Developers can extend, customize, or build their own Apps for SharePoint as well
manage collaboration on SharePoint.
1
SharePoint
Interoperability
SharePoint is also about bringing this collaboration together through interoperability such
as-
Capability to build and deploy secure and custom solutions that integrate line-of-
business data with SharePoint and Office.
Platform
SharePoint is also a platform that supports not only interoperability and collaboration but
also extensibility, through a rich object model, a solid set of developer tools, and a growing
developer community.
One of the key paradigm shifts is the notion of the cloud in SharePoint.
2
2. SharePoint – Types SharePoint
In this chapter, we will be covering the different types and versions to start working on
SharePoint.
SharePoint Foundation
SharePoint Server
Office 365
The first two options are SharePoint on-premise, while Office 365 has emerged as a third,
fully cloud-hosted model for SharePoint.
SharePoint Foundation
SharePoint Foundation is the essential solution for organizations that need a secure,
manageable, web-based collaboration platform. SharePoint Foundation provides you with
the basic collaboration features that are included within SharePoint.
In essence, it provides a baseline set of features that enable you to get started
with both using and developing for SharePoint.
3
SharePoint
In short, SharePoint Foundation represents the core content storage and collaboration
features of SharePoint. It is the ideal edition for teams and small organizations looking to
improve on their ability to work with one another in a secure, easy-to-use, collaborative
workspace.
SharePoint Server
SharePoint Server offers a wealth of features that extend upon those offered in SharePoint
Foundation. It provide a richer, more advanced collection of features that you can utilize
in your organization’s solutions.
Advanced Search: The search features and functionality features available within
the Server versions offer more flexibility. They allow customized Search Results
pages that you can configure with customized search Web Parts.
Enterprise Services: These services provide ways for you to build custom
solutions quickly and easily using tools that are available to you within the Office
product family.
Office 365
Office 365 has emerged as a third, fully cloud-hosted model for SharePoint. It is the
alternate option to hosting your own farm in your own on-premises Data Center.
It has also become a great place where you can develop rich applications (both as
SharePoint-hosted and cloud-hosted apps) and scale without the cost of managing
the on-premises infrastructure.
4
SharePoint
It does not have all the same services and features as SharePoint Server, but does
carry with it some great development capabilities.
There are .NET applications that you build using C# or Visual Basic and then deploy
into SharePoint as .WSPs or .APPs. There are lighter-weight apps such as HTML5
and JavaScript apps that you can also deploy.
As a developer, you have the capability to customize any of the SharePoint editions,
whether it is SharePoint Foundation, Server, or Office 365.
5
3. SharePoint – Capabilities SharePoint
In this chapter, we will be covering the default set of capabilities (or features) built into
SharePoint that enables you to take advantage of the platform without doing any
development.
You can use or extend these core capabilities when building your Apps. Microsoft
has historically referred to these capabilities as workloads.
These workloads provide a way to talk about the different capabilities of SharePoint
coming together. You should see these workloads as representing not only a core
set of related applications but also as opportunities for your application
development.
Sites: Representing the different types of sites available for use and the features
within these sites.
Communities: Representing the community and social features such as blogs and
wikis.
Example
Capability Native Features
Extensibility
6
SharePoint
Apps for
Contains the capability to explore, search,
SharePoint,
Content and manage content using Web pages, apps,
workflows, Word
workflow, or content types.
or Excel Services
7
4. SharePoint – Setup Environment SharePoint
In this chapter, we will setup the development environment for SharePoint. As you already
know that there are three different options of SharePoint. They are-
SharePoint Foundation
SharePoint Server
Office 365
In this chapter, we will be using the Office 365, which is cloud-based version.
8
SharePoint
Step 2. Click the Free trial option. A new page will open.
9
SharePoint
Step 3. Enter the required information and click Next and you will see the following page.
10
SharePoint
Step 4. Enter the username, company name and password and click Next. It will send
you a verification code. Once the verification is completed then it will start creating the
account.
11
SharePoint
Step 5. Once your account is created, you will see the following page.
12
SharePoint
Step 6. Click You’re ready to go and you will see the following page-
Now your environment is ready and you can start share point development but you will
also need to install visual studio.
Microsoft provides a free version of visual studio, which also contains SQL Server and it
can be downloaded from https://www.visualstudio.com/en-us/downloads/download-
visual-studio-vs.aspx.
13
SharePoint
Installation
Following steps will guide you to install SharePoint.
Step 1. Once downloading is complete, run the installer. The following dialog will be
displayed.
14
SharePoint
15
SharePoint
Step 3. Once the installation process is completed successfully, you will see the
following message-
16
SharePoint
Step 4. Restart your computer if required. Now open Visual studio from the Start
Menu. It will open the following dialog box and it will take some time for preparation.
Step 5. Once all is done, you will see the main window of Visual studio.
17
SharePoint
Step 7. Select Office/SharePoint in the left pane under Templates > Visual C#. Double-
click Install Office Developer Tools.
18
SharePoint
Step 8. Click Install and close all Visual Studio instances. A new page will open. Click
Next.
19
SharePoint
20
SharePoint
Step 10. Once it is updated, you will see the message as follows-
21
5. SharePoint – Create Site Collection SharePoint
The site is the core thing to SharePoint and represents the starting point for developers,
and without site collection, you cannot start SharePoint development. A Microsoft
SharePoint online site collection is a top-level site that contains subsites.
A number of site templates are available which you can use. The subsites share
administration settings, navigation, and permissions each of which can be changed for
individual subsites as needed.
22
SharePoint
Step 2. Select Admin icon and you will see the following page-
Step 3. Select Resources > Sites, in the left pane. In the right pane, click Add a site.
23
SharePoint
Step 4. Following page will open. Enter the required information and click OK.
24
SharePoint
You can see that the site collection is added in your admin center URL list. The URL is the
site collection location at which the administrator can start to create and manage sites.
25
SharePoint
Step 5: Click the link and you will see the detailed information regarding that site
collection.
26
6. SharePoint – APIs SharePoint
In this chapter, we will be covering the several sets of APIs to access the SharePoint
platform.
Application type
Developer existing skills
Device on which the code runs
Application Type
There are different types of applications such as-
SharePoint Add-in
Web Part on a SharePoint page
Silverlight application running on either a client computer or a client mobile device
ASP.NET application exposed in SharePoint
JavaScript running in a SharePoint site page
SharePoint application page
Microsoft .NET Framework application running on a client computer
Windows PowerShell script
Timer job running on a SharePoint server
JavaScript
ASP.NET
REST/OData
.NET Framework
Windows Phone
Silverlight
Windows PowerShell
27
SharePoint
The following table provides guidance for different set of APIs, which can be used for a
selected list of common SharePoint extensibility projects.
APIs Usage
Mobile client object Create a Windows Phone app that performs CRUD operations
model on SharePoint data.
Mobile client object Create a Windows Phone app that uses the Microsoft Push
model and the server Notification Service to alert the mobile device of events in
object model SharePoint.
.NET Framework client Create a .NET Framework application that performs CRUD
object model operations on SharePoint data.
Silverlight client object Create a Silverlight application that performs CRUD operations
model on SharePoint data.
28
SharePoint
29
SharePoint
30