Saturday, April 28, 2018

Helpful SharePoint URLs & Site Locations Urls

Helpful SharePoint URLs & Site Locations

------------------------------------------------------------------------------------------------------------------------

Destination
URL
Site Settings
/_layouts/settings.aspx

Site Contents
/_layouts/viewlsts.apx

Save Site as a Template
/_layouts/savetmpl.aspx

View All People
/_layouts/people.aspx?MembershipGroupId=0

View People and Groups
/_layouts/groups.aspx

Workflows
/_layouts/wrkmng.aspx

Workflow Health
/_layouts/15/workflowservicehealth.aspx

Workflow History (Hidden)
/lists/Workflow%20History

Create New Site items
/_layouts/create.aspx

Manage Site Collection Admin Permissions
/_layouts/mngsiteadmin.aspx

View Sites and Workspaces
/_layouts/mngsubwebs.aspx

Manage User Permissions
/_layouts/user.aspx

Recycle Bin
/_layouts/RecycleBin.aspx

Second-Stage Recycle Bin (w/ Admin Permissions)
/_layouts/AdminRecycleBin.aspx

Manage Site Content and Structure
/_layouts/sitemanager.aspx

Manage Site Content Types
/_layouts/mngctype.aspx

Manage Site Columns
/_layouts/mngfield.aspx

Quick Launch Settings
/_layouts/quiklnch.aspx

Navigation Settings
/_layouts/AreaNavigationSettings.aspx

Web Analytics Reports (Site Usage Summary)
/_layouts/usage.aspx

Manage Site Collection Features
/_layouts/ManageFeatures.aspx?Scope=Site

Manage Site Features
/_layouts/ManageFeatures.aspx

Application page for registering SP Apps
/_layouts/appregnew.aspx

Sign in as a different user
/_layouts/closeConnection.aspx?loginasanotheruser=true

Enable SharePoint Designer
/_layouts/SharePointDesignerSettings.aspx

Welcome Page
/_layouts/AreaWelcomePage.aspx

Change Site Master Page
/_layouts/ChangeSiteMasterPage.aspx

Page Layouts and Site Templates
/_Layouts/AreaTemplateSettings.aspx

Force Display the User Profile in the Site Collection
/_layouts/userdisp.aspx?id={UserID}&Force=True

Site App Permissions
/_layouts/15/appprincipals.aspx?Scope=Web

List Template Gallery
/_catalogs/lt

Master Page Gallery
/_catalogs/masterpage

Solution Gallery
/_catalogs/solutions/

Web Part Gallery
/_catalogs/wp

Get SharePoint Server Version
/_vti_pvt/Service.cnf

Taxonomy List (Hidden)
Lists/TaxonomyHiddenList/AllItems.aspx

Quick Deploy Items
Quick%20Deploy%20Items/AllItems.aspx

Web Part Maintenance Page
?Contents=1

Filter Toolbar (For Lists and Libraries)
?Filter=1

Load Ribbon Tab (In a Document Library or List)
?InitialTabId=Ribbon.Document

Show Page in a Dialog
?isdlg=1

Display List in Grid View (In Document Library or List)
?ShowInGrid=True

Open Page in Edit Mode
?ToolPaneView=2

Saturday, April 21, 2018

Generate App ID for Provider Hosted App in SharePoinr 2013 [ powershell script]

$site ="http://win12sp13:40/sites/km"
$appname="Provider Hosted App Sample"
$appId =[System.Guid]::NewGuid().toString()
$certPath= "E:\SPH-Certificate.cer"
$web=Get-SPweb $site
$realm=Get-SPAuthenticationRealm -ServiceContext $web.Site
$appCertificate=Get-PfxCertificate $certPath
$fullAppId=$appId + '@' + $realm

$sti =new-SPTrustedSecurityTokenIsuuer -Name $appname -Certificate $appCertificate -
RegisteredIssuerName $fullAppId

$principal=Register-SPAppPrincipal -NameIdentifier $fullAppId -Site $web -DisplayName $appname

$sts=Get-SPSecurityTokenServiceConfig
$sts.AllowoauthoverHttp=$true
$sts.Update()
$appId


Thursday, April 5, 2018

REST API Call To SharePoint 2013 List with Jquery Table Library Representation

REST API Call To SharePoint 2013 List with Jquery Table representation
--------------------------------------------------------------------------------------------


<script type="text/Javascript" src="/sites/km/SiteAssets/jquery-1.8.2.js" ></script>
<script type="text/Javascript" src="/sites/km/SiteAssets/jquery.dataTables.min.js" ></script>

<link rel="stylesheet" type="text/css" href="/sites/km/SiteAssets/jquery.dataTables.css"/>



<input type="text" id="Country" >
<input type="button" value="Get Customers" onclick="LoadCustomers($('#Country').val());" />

<table width="100%" cellpadding="0" cellspacing="0" border="0" class="display" id="example">
<thead><th>CustomerID</th><th>Company Name</th><th>Contact name</th><th>Address</th><th>City</th><th>Country</th></thead>
</table>


<script type="text/Javascript">

function xyz()
{
 alert('HI');
}

function LoadCustomers(country)
{
alert('Hi');

var call = $.ajax({
url:_spPageContextInfo.webAbsoluteUrl +"/_api/web/Lists/GetByTitle('NewCustomers')/items?" +
"$select=CustomerID,CompanyName,ContactName,Address,City,Country&$filter=(Country eq '"+country+"')&$top=100",
  type: "GET",
  dataType: "json",
  headers:{Accept: "application/json;odata=verbose"}
 
});

call.done(function(data, textStatus, jqXHR){
          $('#example').dataTable({
                "bDestroy": true,
                "bProcessing": true,
                "aaData": data.d.results,
                "aoColumns": [
                    { "mData": "CustomerID" },
                    { "mData": "CompanyName" },
                    { "mData": "ContactName" },
                    { "mData": "Address" },
                    { "mData": "City" },
                    { "mData": "Country" }]
              });
});
call.fail(function (jqXHR,textStatus,errorThrown){
            alert("Error retrieving Tasks: " + jqXHR.responseText);
        });

}

</script>

Demo Image
--------------------