Posts

Deploy SPFX web part to only one Site Collection

Image
Most of the time, when you deploy a custom web part that you made or a third party one, it becomes available for any user of your SharePoint. This means collaborator can edit a page and install the custom web part into it then every user with access to your site can use it. There is a centralize place where administrator can deploy those applications and give access to them. This place is called Tenant App catalog. Basically, this is a site collection that has been designed to host web parts and related resources. However, you may want to deploy your custom application only to a specific site collection. Instead of using the Tenant Catalog Site, you will need to create a Site Collection App Catalog in the site collection of your choice. To do so, you will need to run the following PowerShell command: Add-SPOSiteCollectionAppCatalog Then deploy your App like you would in the App Tenant Catalog.  Keep in mind    This does not prevent your app to query other site collection....

Guest user can't access Client Side Assets resources in SharePoint App Catalog site

Image
When using third party web part or custom web part, there is a property named includeClientSideAssets that push resources to Client Site Assets library of the SharePoint App catalog site. Anytime a user is using one of those web parts, he will retrieve resources from this centralized area. This Client site assets library is hidden and is at least read-only for every member of your organization but it is not accessible to external user. As consequence external users are getting errors like below. [SPLoaderError.loadComponentError]: Failed to load component "544c1372-42df-47c3-94d6-017428cd2baf" (pnpSearchResultsWebPart). Original error: Failed to load path dependency "SearchResultsWebPartStrings" from component "544c1372-42df-47c3-94d6-017428cd2baf" (pnpSearchResultsWebPart). Original error: Error loading https://component-id.invalid/544c1372-42df-47c3-94d6-017428cd2baf_4.1.0/SearchResultsWebPartStrings Unable to load script https://mytenant.sharepoint.co...

Remove News Source Tag Color Block to news web part

Image
A bit of context SharePoint News web part is a fantastic component provided by Microsoft that allows to displays news using multiple layouts. News may be from the current site, some selected sites or recommended sites. These are great options because sometime, you may have your intranet that displays your corporate news and have displayed news from another site, let's say HR site that want to give information about coming Christmas party. In the case that you have news from several sites, a news source tag is displayed over each news. Thanks to this tag, users know from where news come from.  If the news is from an organizational news site, SharePoint will highlight the source tag by styling it with color block .  Organizational news sites are sites that have been defined in your organization as authorities. In short, news from those sites can be considered as "Official". This way of showing source tag might be not desired. You will have to revoke the source site to th...

Approve and publish SharePoint file using Power Automate

Image
In this article, I will show you how to create a flow to approve files from a SharePoint Online document library. Power Automate is the cloud-based tool of M365 platform to create workflows. With on-premise versions of SharePoint, it could be possible to use flow using a data gateway on an hybrid environment. Scenario A user have created or uploaded a document in a library. He wants to make this document available to all site user. According to company policies, document must be reviewed and approved before publishing. Set up document library Go to your document library settings. Then versioning setting Set the versioning that matter to you. In my opinion, you must set Draft item security at Only user who can edit  at least.  Configure your flow In the ribbon, select Automate , Power Automate , Create a flow. Chose see more templates option is order to have more choices. Go to the left side menu click on C reate . Then select Instant cloud flow . Choose For selected file as ...

"Bad Request – Request Too Long” Error when accessing Microsoft admin portal

Image
Sometime when you try to access the O365 Admin portal you have an HTTP Error 400. This is due to some data that stay stuck in your google chrome browser. To fix it you have to clear chrome cache. Go to your browser settings ( chrome://settings ) Cookies or other site date, See all cookies or site date Or directly to  chrome://settings/siteData Filter using admin.microsoft.com Clear all data related to admin.microsoft.com That's it ! In some article, people are deleting all browser data (cache, cookies, history). In my case, I'm checking  data when I'm doing some testing, so I prefer to not delete information if it's not mandatory. You can follow M365 service heath on twitter: @ MSFT365Status .

What is M365 ?

Image
Microsoft 365 Also know as M365 is a set of Microsoft products that mostly work on Azure cloud. It unleashes user productivity, makes asset management easier, brings tools to increase security. This subscription offer is a package of three core elements: Windows 10 Enterprise Office 365 Enterprise mobility + Security You probably know most of these products, but just in case let me give you a reminder and some details. Windows 10 Enterprise As of July 2020, this is the latest and most advanced Microsoft client operating system. His security is improved with tools like  Microsoft Defender Advanced Threat Protection (ATP client) Windows Defender Application Control (WDAC). Microsoft provides security and features fix every month, new features are released every semester. Like so, work stations are always up to date and protected. They call this new life cycle: Windows As A Service (WAAS). Office 365 Also named O365 is th...