Skip to content

Instantly share code, notes, and snippets.

@sksnips
sksnips / msignite.json
Created September 28, 2017 12:16
MSIgnite 2017 Video details
[{"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 September 25, 2016 05:23
This code snippet used to create a new group with different parameters in SharePoint Site Collection using PnP JavaScript Library
//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 September 25, 2016 05:21
This code snippets helps to create a new group in SharePoint site collection using PnP JS library
//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 September 21, 2016 15:36
Populate SharePoint sub sites in a table using PnP JS core component and Office UI Fabric
//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 June 17, 2016 04:34
This example used the reindex the current web site in SharePoint using PnP Core Component
//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 June 16, 2016 21:05
This example determines the whether the current web is Publishing web or not
/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 June 16, 2016 05:37
This example returns the child Web site with the specified leaf URL.
//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 04:13
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.
//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 11:09
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.
//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 10:31
This code snippet used to create a website using PnP Core Component - CSOM Extensions
//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;