This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
using System.Collections.Generic; | |
using Microsoft.SharePoint.Client; | |
namespace spknowledge.csomsamples.GetGroupUsers | |
{ | |
class Program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
using System.Collections.Generic; | |
using Microsoft.SharePoint.Client; | |
namespace spknowledge.csomsamples.GetSiteGroups | |
{ | |
class Program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
using System.Collections.Generic; | |
using Microsoft.SharePoint.Client; | |
namespace spknowledge.csomsamples.GetWebGroups | |
{ | |
class Program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CSOM Package (16.1.3912.1204) | |
// Gets and sets the current Time Zone settings from the given SharePoint site | |
// Get access to source site | |
using (var ctx = new ClientContext("https://spknowledge.sharepoint.com")) | |
{ | |
//Provide count and pwd for connecting to the source | |
var passWord = new SecureString(); | |
foreach (char c in "<mypassword>".ToCharArray()) passWord.AppendChar(c); | |
ctx.Credentials = new SharePointOnlineCredentials("<office 365 mail id>", passWord); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- How to get the Created date and Last Modified date of a Site --> | |
<!-- HTML Content --> | |
<div id="myapp"></div> | |
<!-- Script Content --> | |
<script type='text/javascript'> | |
var oWeb; | |
function getwebdetails() | |
{ | |
var clientContext = SP.ClientContext.get_current(); // equivalent to SPContext.Current | |
oWeb = clientContext.get_web(); //Gets the current Web Object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- HTML Content --> | |
<div id="myapp"></div> | |
<!-- Script Content --> | |
<script type='text/javascript'> | |
var oWeb; | |
function getwebtitle() | |
{ | |
var clientContext = SP.ClientContext.get_current(); // equivalent to SPContext.Current | |
oWeb = clientContext.get_web(); //Gets the current Web Object | |
clientContext.load(oWeb); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- HTML snippet returns the collection of lists that are not version enabled --> | |
<!-- listswoversion.html - Lists with out version --> | |
<style type="text/css"> | |
.lst-table th{ background-color:#ddd; border:2px solid #fff; text-align:left} | |
.lst-table td{ background-color:#eee; border:2px solid #fff;} | |
.web-heading{ padding:2px;} | |
</style> | |
<!--Include jQuery library to perform dynamic html dom manipulation --> | |
<script type="text/javascript" src="/siteassets/jquery.js"></script> | |
<div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- HTML snippet returns the collection of lists that are version enabled --> | |
<!-- listswversion-rest-jQuery.html - Lists with version --> | |
<!-- Style required for HTML Snippet --> | |
<style type="text/css"> | |
.lst-table th{ background-color:#ddd; border:2px solid #fff; text-align:left} | |
.lst-table td{ background-color:#eee; border:2px solid #fff;} | |
.web-heading{ padding:2px;} | |
</style> | |
<!--Include jQuery library to perform dynamic html dom manipulation --> | |
<script type="text/javascript" src="/siteassets/jquery.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
.files-table th{ background-color:#ddd; border:2px solid #fff; text-align:left} | |
.files-table td{ background-color:#eee; border:2px solid #fff;} | |
.web-heading{ padding:2px;} | |
</style> | |
<!-- HTML Snippet --> | |
<script type="text/javascript" src="/siteassets/angular.min.js"></script> | |
<div ng-app="spng-App"> | |
<h2 class="web-heading">Folder and Files</h2> | |
<div ng-controller="spng-WebCtrl"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- HTML snippet returns the values for properties associated to the root web in sharepoint --> | |
<script type = "text/javascript" src = "/siteassets/jquery.min.js" > </script> | |
<script type="text/javascript"> | |
//jQuery ajax used to call the REST API and get the response | |
jQuery.ajax({ | |
url: "https://sharepointsite/_api/site/rootweb", | |
type: "GET", | |
headers: { | |
"accept": "application/json;odata=verbose", | |
"content-type": "application/json;odata=verbose", |
OlderNewer