Let's SharePoint

Customization

  1. HOME
  2. Customization
  3. Customization
April 16, 2019 / Last updated : April 16, 2019 Sethu Customization

How to get alerts for a specific policy in Cloud app security using Powershell

Hello Bloggers, In this blog, we can see how to get alerts for a specific policy in Cloud app security using Powershell. —————————————————————————————————————————– $Body = @{ “filters” = @{ “entity.policy”=@{“eq”=”5ae2481bfddeab61625fb5ef”} “resolutionStatus”=@{“eq”=0} } } | ConvertTo-Json $Header = @{Authorization =”Token Your Token”} $response = Invoke-RestMethod  -Uri “https://yourportal.us2.portal.cloudappsecurity.com/cas/api/v1/alerts/” -Headers $Header -Method POST -body $body -Verbose $response.data

April 9, 2019 / Last updated : April 9, 2019 Sethu Customization

How to get the list of custom apps in App catalog using Powershell?

Hello Sharepointers. Below are the powershell script get the list of custom apps in App catalog using Powershell using (ClientContext context = new ClientContext(“https://youroffice-admin.sharepoint.com”)) { Tenant tenant = new Tenant(context); tenant.Context.Load(tenant); tenant.Context.ExecuteQueryRetry(); var appCatalogAppInfoCollection = tenant.GetAppInfoByName(string.Empty); tenant.Context.Load(appCatalogAppInfoCollection); tenant.Context.ExecuteQueryRetry(); foreach (var app in appCatalogAppInfoCollection) { Debug.WriteLine(“APP: ” + app.Name); Debug.WriteLine(“Source: ” + app.Source); } } Happy […]

March 6, 2019 / Last updated : March 6, 2019 Sethu Customization

How to get all site owners in SharePoint Online using Powershell?

Hello SharePointers. Below are the powershell script to get all the site owners of all the SharePoint sites. foreach($site in $sites) { $siteURL = $site.Url $siteOwner = $site.Owner Write-Host $siteURL -ForegroundColor Blue Write-Host $siteOwner -ForegroundColor Blue $siteAdmins = Get-SPOUser -Site $siteURL -Limit All | select LoginName,IsSiteAdmin | ? { $_.ISSiteAdmin } $siteUsers = “” foreach($siteAdmin […]

January 18, 2019 / Last updated : January 18, 2019 Sethu Customization

How to set up auto reply in office 365 mail box using Powershell?

Hello Office 365 Users, Today, we are going to set Out of office Auto reply in Office 365 mail box using Powershell commands. Below is the same powershell command that we have used and tested in our tenant $Internal= “<html> <body> I’m out of Office <br/> <div> <B>Test</b> Auto reply </div><div> <i> ital</i> <br/> </body> […]

December 22, 2018 / Last updated : December 22, 2018 Sethu Customization

How to use Compare Block helpers in SPfx framework ?

In SharePoint Online, you can user Compare block helpers to render data based on the condition. Here are the examples {{#compare pageContext.web.language ‘==’ 1033}} <h1>This is rendered if current language is 1033</h1> {{else}} <h1>This is rendered if current language is anything else {{/compare}} In this sample, based on the language , the SharePoint content will […]

December 19, 2018 / Last updated : December 19, 2018 Sethu Customization

How to get SharePoint List Version using JSOM in SharePoint Online?

var Ctx = new SP.ClientContext.get_current(); if (Ctx) { var Web = Ctx.get_web(); var List = Web.get_lists().getByTitle(Name); var query = new SP.CamlQuery(); query.set_viewXml(xmlQuery); var listItems = List.getItems(query); Ctx.load(listItems); Ctx.executeQueryAsync(function (sender, args) { that.DataSet = []; var objlistEnumerator = objlistItems.getEnumerator(); while (objlistEnumerator.moveNext()) { var objListItem = objlistEnumerator.get_current(); var id = objListItem.get_item(‘ID’); var filePath = ‘https://mysharepoint/Lists/Preservenature/’+id+’_.000’ var web […]

June 24, 2017 / Last updated : June 24, 2017 Sethu Customization

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        […]

May 25, 2017 / Last updated : May 25, 2017 Sethu Client Side Object Model

How to Set People Picker value in SharePoint using CSOM and Powershell?

Hello SharePointers, Below are the CSOM script to set/populate People Picker value in a SharePoint list . $userName = “domain\username” $spuser = EnsureUser $context $userName $lookupValue = @() if($spuser -ne $null){ $spuserValue = New-Object Microsoft.SharePoint.Client.FieldUserValue $spuserValue.LookupId = $spuser.id $lookupValue += $spuserValue } $userValue = [Microsoft.SharePoint.Client.FieldUserValue[]]$lookupValue $listItem[“Your People Picker FieldColumn name”] = $userValue $listItem.Update() Happy SharePointing […]

May 25, 2017 / Last updated : May 25, 2017 Sethu Customization

How to get SharePoint list item counts using REST API?

Hello SharePointers Below is REST API code to get the sharepoint list item counts using REST API. var ListUrl = _spPageContextInfo.webServerRelativeUrl + “/_api/web/lists/getbytitle(‘yourlistname’)/items”; getJsonFormat(ListUrl) .done(function(data) { var itemsCount = data.d.results.length;  }) .fail( function(error){ console.log(JSON.stringify(error)); }); function getJsonFormat(ListUrl) { return $.ajax({ url: ListUrl, type: “GET”, contentType: “application/json;odata=verbose”, headers: { “Accept”: “application/json;odata=verbose” } }); } Happy SharePointing […]

May 24, 2017 / Last updated : May 24, 2017 Sethu Customization

The User Does Not Exist or is Not Unique occurs in People Picker in SharePoint 2010/2013?

Hello Sharepointers, When you are using people picker in your sharepoint project/app, if you add two or more users in the people picker. You will face this issue”The User Does Not Exist or is Not Unique”. To resolve it , we need to change the People picker field schema in the following fashion. By Default […]

Posts navigation

  • Page 1
  • Page 2
  • »

Recent posts

How to insert table in Modern Pages using PnP Powershell in Office 365/Sharepoint Online?

June 7, 2019

How to set up Access Requests in SharePoint online using Powershell?

May 11, 2019

How to change the default SharePoint suite logo in SharePoint 2013/2016/2019?

April 30, 2019

How to add metadata to Document libraries in SharePoint online using powershell.

April 27, 2019

How to get Sharepoint site details using Powershell in Office 365?

April 17, 2019

How to get alerts for a specific policy in Cloud app security using Powershell

April 16, 2019

How to get the list of custom apps in App catalog using Powershell?

April 9, 2019

How to get the list of policies in Microsoft Cloud app security using window powershell?

April 4, 2019

How to get the list of List and Document library item counts in SharePoint online using Pnp Powershell ?

April 4, 2019

How to restore subsite in a Sharepoint online site collection using Pnp Powershell

April 2, 2019

Category

  • Anonymous access
  • Client Object Model
  • Client Side Object Model
  • Customization
    • 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 2019
  • SharePoint Designer
  • SharePoint Framework
  • SharePoint Online
  • SharePoint Pnp
  • SharePoint Usage Analytics
  • Unique values
  • User Profile Services
  • Windows Powershell
  • Workflow Manager

Archive

  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • May 2018
  • 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.