If you’ve ever found yourself stuck with an organization assets library in SharePoint that won’t go away, even after the site it was created on has been deleted, you’re in the right place. Normally, you’d use the Remove-PnPOrgAssetsLibrary command, but it needs the -LibraryUrl parameter, which we can’t get if the site is gone. Don’t worry – I’ve...
Using Certificates for OpenID on Orchard Core Hosted in Azure
Let’s say you are working with an Orchard Core web application Hosted in Azure and want to configure the OpenId feature to use JWT tokens.
Then, assuming you have uploaded your certificate to th...
Reading local files from a .Net Azure Function
When working with Azure Functions, you might find yourself in the need of reading the content of some local files located in the same directory as the function your are working on.
I found two ways...
SPFx De-tokenizer
An NPM package to help de-tokenizing values within our source code when building or debugging SPFx solutions, avoiding having some information hardcoded in the code or relaying on environment varia...
Chrome SP Dev Tool
After some time working with SharePoint, I noticed that there are certain SharePoint functionalities that I would like to have direct and quick access to, instead of going trough several clicks to ...
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...
Angular2 Stars Rating component with TypeScript
Playing around with Angular 2, I thought that a star-like rating component would be very useful. The idea was to have a rating component for any item within a table or a repeated structure and to ...
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 or...
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 funct...
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...