Hide view in Microsoft Lists
SharePoint Tricks
by David Ramalho
8M ago
Photo by Brando Louhivaara on Unsplash Microsoft Lists views are powerful, and you can adjust them as your need. You can have basic ones for regular users and more advanced ones, for instance for the admins of the site. Obviously, all the views are available for all the users which will have access to them. However, a few weeks ago I found that you can hide those views. The following PowerShell script, using PnP will allow you to hide the View from all users who can see it. $siteUrl = "https://contoso.sharepoint.com/sites/site" $listName = "Announcements" $viewName = "List View" Connect-PnPO ..read more
Visit website
Create folders on SharePoint Document Library from CSV
SharePoint Tricks
by David Ramalho
1y ago
Photo by Maarten van den Heuvel on Unsplash There are a few options to achieve this result, you can do a PNP template, create a folder individually and that onwards, and there is a command that will create all the folders if you respect some logic which I will use here. I recommend you update your PNP PowerShell to make sure you got the same cmdlets used by the script. We will use a command that allows us to create a folder if we provide the relative URL of the folders in case those folders do not exist yet. The structure of our CSV is the following, the code will be ready to folderN. Please b ..read more
Visit website
Custom View Formatting on Microsoft Lists to show Announcements
SharePoint Tricks
by David Ramalho
1y ago
Announcements are a big part of a SharePoint landing page and there are a few options out there either using out-of-the-box webpart or you can build an SPFx webpart. A few days ago, I was looking for an example using List formatting and I couldn’t find it on the community repo. Therefore I decided to create this sample which should be available soon on the community Git Hub of List Formatting. The first step is to create a list (you can put any name) and then add a few columns which we going to use to be easier to add new announcements going forward. The columns are: Title -> Single line ..read more
Visit website
How to enable your Microsoft Viva Connections Dashboard
SharePoint Tricks
by David Ramalho
1y ago
Microsoft Viva Connection enables the users to have quick access to data and information using Microsoft Teams and with that increase the communication across your company. As you can imagine Teams relies on SharePoint to provide such experience and in order to activate this functionality you need to set up a couple of settings in SharePoint. To do this you need to set up on your tenant a SharePoint Home Site and you can do that using the SharePoint admin centre, using SharePoint Online Management Shell or PnP PowerShell. We will use the PnP PowerShell to enable this Home ..read more
Visit website
Change a SharePoint content type using Power Automate
SharePoint Tricks
by David Ramalho
1y ago
Photo by Javier Allegue Barros on Unsplash A few weeks ago, I need to change a content type from SharePoint into another one. There are a few alternatives to do either by using a custom solution, Power Automate and/or logic apps. The idea was when an item is created change the content type from x to y. To achieve this, you have 2 different options: When an item is created your Flow runs and it contains a control that either changes the content type or ignore the item created. When an item is created you check the content initial content type and your Flow runs if the item is created with a sp ..read more
Visit website
Send a message to Microsoft Teams using Microsoft Graph in SPFx
SharePoint Tricks
by David Ramalho
2y ago
A few days ago, I got a challenge that required me to send a message from a SharePoint page into a Microsoft Teams chat and that can be achieved using Microsoft Graph. I created a blank SPFx project and this post will go to the most important elements. You can also take a look at a sample webpart that I built using this process. First, you need to add to the package-solution.json the required scopes for the Microsoft Graph can make the required calls. These are the scopes: { "resource": "Microsoft Graph", "scope": "ChatMessage.Send" }, { "resource": "Microsoft Graph", "scope ..read more
Visit website
Create multiple SharePoint sites using CSV file
SharePoint Tricks
by David Ramalho
2y ago
In a few days ago, I have been asked me to create a couple of sites and I create a simple PowerShell script using PnP Framework. Creating these sites on the SharePoint administration centre can take a while since you can only create one at the same time. If you are using a script like this will allow you to do a bit more on that also allow you to run other settings that you want to enable/disable on the site.  The first step is to make sure you have the latest version of the PnP framework PowerShell installed, or the older version of ..read more
Visit website
Take control of files created on SharePoint that are not published
SharePoint Tricks
by David Ramalho
2y ago
Did you know that if you’re a SharePoint Site collection owner you cannot see all the pages created? A few days ago, I notice that I should have a certain number of pages on the Site Pages library (80 or something) but only a few appear for my user. You can verify how many files you have on the particular library on the Site contents of your site. This happens because the page was created but nothing was been done with the page. Let’s give some example of how this can happen. You create a page on SharePoint but before adding any text or anything like that you just close the browser or navigat ..read more
Visit website
How to enable/disable the comments on SharePoint Lists
SharePoint Tricks
by David Ramalho
2y ago
One of the recent updated for Microsoft Lists / SharePoint List Online was the possibility to comment on each item of a list that allows you to interact with other users for that particular item. This is a great feature which will be helpful to many organization and will help users to extend their collaboration. However, it’s possible that some organization may want to disable or enable the option in a programmed scheduled. At this time, either you enable this option to all your Microsoft 365 tenant or disable. Microsoft is planning for future release to control this option by list or site wh ..read more
Visit website
Verify all the SharePoint sites that belong to Microsoft Teams Private Channels
SharePoint Tricks
by David Ramalho
2y ago
When creating a Microsoft Teams private channel by default, it creates a brand new SharePoint site which will store all the information related to that private channel. This is a special site that contains a couple of settings. I will leave at reference an article that you can check to check those settings. I will share some PnP PowerShell commands that will help us to get this information. Verify that you’ve PnP PowerShell on your machine and you’ve access to a SharePoint admin account before running this command. This will create a CSV file with all the site that match the criteria. All the ..read more
Visit website

Follow SharePoint Tricks on Feedspot

Continue with Google
OR