Let's SharePoint

June 2017

  1. HOME
  2. Monthly Archives: June 2017
June 24, 2017 / Last updated : June 24, 2017 Sethu Uncategorized

How to Check if Site exists in SharePoint Online/ Office 365 using CSOM?

Hello SharePointers, Below is the CSOM code to check  if site exists in SharePoint Online/ Office 365. function CheckifSiteExists() { param( [Parameter(Mandatory=$true)][string]$siteurl  )   begin{ $context = New-Object Microsoft.SharePoint.Client.ClientContext($siteurl) $web = $context.Web $context.Load($web) try {    $context.ExecuteQuery()         return $true        }   catch { return $false        […]

June 17, 2017 / Last updated : June 17, 2017 Sethu Office 365

How to Send Email in SharePoint Online/Office 365 using REST API?

Hello SharePointers, Here is the blog that discusses about sending email in SharePoint Online/Office 365 using REST API. function sendEmailusingRESTAPI(from, to, body, subject) { var urlTemplate = appweburl + “/_api/SP.Utilities.Utility.SendEmail”; var formDigest = GetDigest(); $.ajax({ contentType: ‘application/json’, url: urlTemplate, type: ‘POST’, data: JSON.stringify({ ‘properties’: { ‘__metadata’: { ‘type’: ‘SP.Utilities.EmailProperties’ }, ‘From’: from, ‘To’: { ‘results’: […]

June 15, 2017 / Last updated : June 15, 2017 Sethu Client Side Object Model

How to set AlternateCSS URL for s sharepoint subsites in SharePoint Online/Office 365 using CSOM?

Hello SharePointers, Here is the CSOM code to set AlternateCSS URL for s sharepoint subsites in SharePoint Online/Office 365 using CSOM. SiteColUrl = “https://mysharepointsite/url” $Context = New-Object Microsoft.SharePoint.Client.ClientContext($sSiteColUrl) $Context.Credentials = $spoCredentials $Web = $Context.Web $allwebs = $rWeb.Webs $Context.Load($allwebs) $Context.ExecuteQuery() foreach($web in $allwebs) { $web = $Context.web $Context.Load($web) $Context.ExecuteQuery() $alternateCssUrl = “test.css” $web.AlternateCssUrl = $alternateCssUrl $web.AllProperties[“__InheritsAlternateCssUrl”] […]

June 2, 2017 / Last updated : June 2, 2017 Sethu PowerShell

How to add new permission to a SharePoint group using Powershell in SharePoint 2010/2013/2016?

Hello SharePointers, Below is the powershell script to add new permisison to  a SharePoint group using Powershell in SharePoint 2010/2013/2016. $web = Get-SPWeb http://mysharepoint/sites/ $group = $web.Groups[“Emp Docs”] $role = $web.RoleDefinitions[“Full Control”] $RoleAssignment = New-Object Microsoft.SharePoint.SPRoleAssignment($group) $RoleAssignment.RoleDefinitionBindings.Add($role) $web.RoleAssignments.Add($RoleAssignment) $web.Update() $web.Dispose() Happy SharePointing 🙂

Recent posts

How to resolve An error occurred while retrieving data from “”. Administrators, see the server log for more information. in SharePoint Online?

April 11, 2018

Why My SharePoint Alerts are not working in some of List/Library Views in Office 365, SharePoint 2010/2013/2016?

March 23, 2018

How to perform SharePoint List Field validation – SharePoint Online, 2010,2013,2016

March 22, 2018

How to resolve “Internal Server Error Building PDF” – Nintex forms?

March 21, 2018

How to Change Save to Submit button in SharePoint List in SharePoint online/2016/2013?

March 15, 2018

How to disable email notifications while creating Office 365 Groups?

March 10, 2018

How to update SharePoint List items in Office 365 using Powershell?

March 8, 2018

”Be careful. This workbook contains one or more queries that might be unsafe.Do you want to enable these queries?”

March 6, 2018

How to Set Item Level Permission in SharePoint 2010/2013/2016 & Online?

February 28, 2018

Unable to find type [Microsoft.SharePoint.Client.DocumentSet.DocumentSet]- SharePoint online Powershell?

February 23, 2018

Category

  • Anonymous access
  • Client Object Model
  • Client Side Object Model
  • Customization
  • Designer Workflows
  • Errors & Resolutions
  • Features
  • Google Analytics
  • InfoPath
  • Item Scheduling
  • JSOM
  • Nintex worflows
  • Office 365
  • Office 365 Groups
  • PnP JS Library
  • PowerShell
  • Powershell Online
  • REST API
  • REST API's
  • Server Side Object Model
  • SharePoint 2010
  • SharePoint 2010 Search
  • SharePoint 2013
  • SharePoint 2013 Search
  • SharePoint 2013 Workflows
  • SharePoint 2016
  • SharePoint Designer
  • SharePoint Framework
  • SharePoint Online
  • SharePoint Usage Analytics
  • Uncategorized
  • User Profile Services
  • Workflow Manager

Archive

  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • January 2016
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • May 2015
  • April 2015
  • March 2015

Copyright © Let's SharePoint All Rights Reserved.

Powered by WordPress & Lightning Theme by Vektor,Inc. technology.