Changing the Access Requests Settings of a SharePoint Online site with JavaScript (JSOM)

Recently I got a requirement from a client that wanted to be able to modify the Access Requests Settings of a SharePoint online site to: Prevent users from Sharing the site and individual files and folders. Prevent users from inviting others to the site members group. Prevent non authorized users from sending access requests. This needed to b...

Continue Reading →

Linking a custom column to the Item and the Item Menu on SharePoint

Sometimes, you might want to link a custom column to a SharePoint list item and item menu rather than the default Title column. This post will show how to link any column to a SharePoint item and to achieve it using JavaScript and the SharePoint Client Object Model.There are four properties from the SPField class that need to be modified in orde...

Continue Reading →

Moving/copying files between SharePoint libraries with JavaScript

An easy way to copy or move files with JavaScript between SharePoint libraries within the same site is using the methods copyTo and moveTo from the SP.File class. Both functions receive the same first parameter, which is the future URL of the document to be moved/copied, but the second parameter is different. In the case of the moveTo function, ...

Continue Reading →

Setting the document template for a content type in SharePoint Online with PowerShell

In my previous post, apart from creating a content type using PowerShell, I also showed a way of setting the document template of the content type. In that scenario I used a document template already uploaded into a normal SharePoint document library. In this post, I’m going to demostrate another way to set the document template of a content typ...

Continue Reading →

Creating a content type with its document template on SharePoint Online using PowerShell

Recently I had a requirement where I needed to create some content types with their own Document Templates using PowerShell. With the following function I was able to create a content type in a SharePoint Online environment and set up the document template I wanted. The function assumes that the document template has already been uploaded to the...

Continue Reading →

© 2020 js 231 sp All Rights Reserved.
Theme by hiero