Skip to content

Instantly share code, notes, and snippets.

@sksnips
sksnips / msignite.json
Created Sep 28, 2017
MSIgnite 2017 Video details
View msignite.json
[{"Title":"Cert Exam Prep: Exam 70-742: Identity with Windows Server 2016","ID":"3wR_uDk_2HY","Thumb":"AOn4CLB_Wm-UTCbhbMUlKSrF_zQ9JTYH8Q"},{"Title":"Developing for the cloud with Visual Studio","ID":"E19UO3RAtz4","Thumb":"AOn4CLAqmXuICS3whGrZ7Xx9Zog2a1xVEA"},{"Title":"Real world experience from the field - Moving a global client infrastructure into the cloud","ID":"KNtZ-vgWTN4","Thumb":"AOn4CLDJV7VKv1tBZetT1PyK_F6tXoYibQ"},{"Title":"Inside Microsoft Azure datacenter hardware and software architecture with Mark Russinovich","ID":"sOw8On1iCa4","Thumb":"AOn4CLC96HwETxE2wVsvsRRKgLz9tvpM4Q"},{"Title":"Extend the reach of your applications using the Business Application Platform","ID":"ZhnluZCWozA","Thumb":"AOn4CLBriRGt79ppYTtVPMQVv89dm8z0ag"},{"Title":"Azure Service Fabric for Linux","ID":"RzbxL9oSoKw","Thumb":"AOn4CLCcWoWyCZ6sXvmJ4EAcu7_V4buRSA"},{"Title":"Operating principles of Microsoft Azure Stack","ID":"7ylJJq8sKLQ","Thumb":"AOn4CLBbwCx6xUWvjTKII1NqPnWOkdE6Uw"},{"Title":"Deep dive with Microsoft Cognitive T
@sksnips
sksnips / pnpjs.createspgrpoup2.html
Created Sep 25, 2016
This code snippet used to create a new group with different parameters in SharePoint Site Collection using PnP JavaScript Library
View pnpjs.createspgrpoup2.html
//Author: Shantha Kumar T
//Supports: SharePoint Online, SharePoint 2013+
//PnP JavaScript file available from https://github.com/OfficeDev/PnP-JS-Core
//More details: http://www.ktskumar.com/2016/09/pnp-js-core-create-sharepoint-group
<script type="text/javascript" src="/siteassets/scripts/fetch.js"></script>
<script type="text/javascript" src="/siteassets/scripts/promise.min.js"></script>
<script type="text/javascript" src="/siteassets/scripts/pnp.min.js"></script>
<div id="sample"></div>
@sksnips
sksnips / pnpjs.createspgrpoup.html
Created Sep 25, 2016
This code snippets helps to create a new group in SharePoint site collection using PnP JS library
View pnpjs.createspgrpoup.html
//Author: Shantha Kumar T
//Supports: SharePoint Online, SharePoint 2013+
//PnP JavaScript file available from https://github.com/OfficeDev/PnP-JS-Core
//More details: http://www.ktskumar.com/2016/09/pnp-js-core-create-sharepoint-group
<script type="text/javascript" src="/siteassets/scripts/fetch.js"></script>
<script type="text/javascript" src="/siteassets/scripts/promise.min.js"></script>
<script type="text/javascript" src="/siteassets/scripts/pnp.min.js"></script>
<div id="sample"></div>
@sksnips
sksnips / pnpjsfabric.Populatesubsites.html
Created Sep 21, 2016
Populate SharePoint sub sites in a table using PnP JS core component and Office UI Fabric
View pnpjsfabric.Populatesubsites.html
//Author: Shantha Kumar T
//Supports: SharePoint Online, SharePoint 2013+
//PnP JavaScript file available from https://github.com/OfficeDev/PnP-JS-Core
//Fabric Core CSS file available from https://github.com/OfficeDev/office-ui-fabric-core
//https://github.com/OfficeDev/office-ui-fabric-core/<Release build>/dist/css/fabric.min.css
//Fabric JS file available from https://github.com/OfficeDev/office-ui-fabric-js
//https://github.com/OfficeDev/office-ui-fabric-js/<Release build>/dist/js/fabric.min.js
@sksnips
sksnips / PnPSitesCore.Samples.ReIndexWeb.cs
Created Jun 17, 2016
This example used the reindex the current web site in SharePoint using PnP Core Component
View PnPSitesCore.Samples.ReIndexWeb.cs
//Author: Shantha Kumar T
//Assembly Reference Used: OfficeDevPnP.Core, Version=2.5.1606.1, Culture=neutral, PublicKeyToken=3751622786b357c2
//Supports: SharePoint Online, SharePoint 2013+
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.SharePoint.Client;
@sksnips
sksnips / PnPSitesCore.Samples.IsPublishingWeb.cs
Created Jun 16, 2016
This example determines the whether the current web is Publishing web or not
View PnPSitesCore.Samples.IsPublishingWeb.cs
/Author: Shantha Kumar T
//Assembly Reference Used: OfficeDevPnP.Core, Version=2.5.1606.1, Culture=neutral, PublicKeyToken=3751622786b357c2
//Supports: SharePoint Online, SharePoint 2013+
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.SharePoint.Client;
@sksnips
sksnips / PnPSitesCore.Samles.getweb.cs
Created Jun 16, 2016
This example returns the child Web site with the specified leaf URL.
View PnPSitesCore.Samles.getweb.cs
//Author: Shantha Kumar T
//Assembly Reference Used: OfficeDevPnP.Core, Version=2.5.1606.1, Culture=neutral, PublicKeyToken=3751622786b357c2
//Supports: SharePoint Online, SharePoint 2013+
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.SharePoint.Client;
@sksnips
sksnips / PnP.DeleteWeb.cs
Created May 17, 2016
The following example deletes the subsite from the parent website based on the given url and returns true value. If the subsite is not available or problem in deleting the child site, this method returns false.
View PnP.DeleteWeb.cs
//Author: Shantha Kumar T
//Assembly Reference Used: OfficeDevPnP.Core, Version=2.4.1605.0, Culture=neutral, PublicKeyToken=3751622786b357c2
//Supports: SharePoint Online, SharePoint 2013+
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.SharePoint.Client;
@sksnips
sksnips / PnP.GetAllWeburls.cs
Created May 16, 2016
This code snippet returns the collection of all the URLs of web sites from the Site Collection including top level site and its sub-sites using CSOM PnP Core Component.
View PnP.GetAllWeburls.cs
//Author: Shantha Kumar T
//Assembly Reference Used: OfficeDevPnP.Core, Version=2.4.1605.0, Culture=neutral, PublicKeyToken=3751622786b357c2
//Supports: SharePoint Online, SharePoint 2013+
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.SharePoint.Client;
@sksnips
sksnips / PnP.createweb2.cs
Created May 16, 2016
This code snippet used to create a website using PnP Core Component - CSOM Extensions
View PnP.createweb2.cs
//Author: Shantha Kumar T
//Assembly Reference Used: OfficeDevPnP.Core, Version=2.4.1605.0, Culture=neutral, PublicKeyToken=3751622786b357c2
//Supports: SharePoint Online, SharePoint 2013+
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.SharePoint.Client;
You can’t perform that action at this time.