In SharePoint you can add elements at different places. If you like to do, it is not necessary to change the masterpage or customize it. You can simply use user custom actions. This is useful if you like to create additional header elements like language switch buttons or a footer which shall be displayed on all sites. In this article i would like to show this kind of SharePoint branding and how to get it working with an example of a footer.
First we have a look at what we try to create:
Screen of how it could look like with a footer
This footer should provide two links, for example it could be a link for imprint and one for data privacy. But it can be anything, like social buttons or a copyright notice.
Create User Custom Action with Powershell
The advantage of this method should be clear: There is no need to change your masterpage.
The SharePoint Search by default has some refiner if you create a SharePoint Search center. But in the default settings there is no filter or refiner for the site title. Mostly the user know the site name but not always the url. But we would like to have a shiny SharePoint Search Site.
Prepare SharePoint Search Schema
So here i would like to show an easy way to provide the Site Title of a SharePoint Site Collection as Refiner. The information is already in your search schema. The site title is stored in “ows_SiteName”. So i created a new managed property “SiteTitle” and mapped the crawled property to “ows_SiteName”. After that run a full crawl.
After the full crawl you can use your managed property. Edit your search result page and go to the refiner webpart properties. In this settings you can choose your managed property “SiteTitle” as refiner.
Settings for Refiner in SharePoint
Save your site and let’s see how it looks like:
SharePoint Search Result with Refiner for Site Title
That’s one way. If you prefer to use RefinableStrings follow this post by Nik Charlebois.
This one will just copy your complete folder. Cause of “-Recurse” it will also copy the complete subfolders and subitems.
If you like to rename Files inside a Folder and all subfolder you can use this script. The special thing is, that there is a filterscript. This filter is used in order to find all files which containing special characters. All other files we don’t care. After we get all files with special characters we use Rename-item with same expression.
I am using the filter script for one reason. If i don’t use it, and the foldername does not contain special characters then the script tries to rename the folder anyway. But then it tries to change the Name from “Example1” to “Example1” and of course it will throw an error which tells you that the source and destination cannot be the same. And of course there is no need to change the foldername if it does not contain a special character.
Did you ever used the search query in Powershell? Powershell can send a search query against the SharePoint Search. It is great in order to automate some tasks, in which you need data from various site collection which can be collected by simply using the search. So how would it look like?
So that is easy. But you should pay attention to three things if you use a Powershell script in order to make a search query.
#1 Choose the right user which executes the script It is really important. The search results are based on the permission on the user who sends the request. So if you have a employee who would search for “secret documents” he would find less than if your SharePoint Search Account or Admin Account would do the same query. So if you automate tasks with it keep in mind that the user who runs the query should have correct permissions. Not too much but not too less.
#2 RowLimit If you get always 50 search results it might be hint, that there is a limit. And that’s it. By default the search results row limit is set to 50 elements. You can raise it up to 500.
#3 Check your results You should always check your results. Is the numbers of result rows correct and is the content of your search results correct? Could it be that there is an information which should not be due to permissions which are not correctly set? Better check twice
There are a lot of post how to create a custom display template for SharePoint Search. Today i would like to show a how you can add the default hover panel with the preview of document content inside. So this post intends not to customize the hover panel but rather include the default hover panel with preview of your documents in your custom search display template.
First of all i assume you created your custom display template. If not, let me share here some posts which lead you through the process of creating one.
In order to get also the cool hover panel with preview in our search results respective in our custom display template we simply have to check a few things.
Activating default hover panel with Preview of documents
If you copied the item_default.html file you will realize that there is a hover panel inside. But this hover panel does not show the preview. If you compare the item_default.html file with item_word.html file you see some differences.
Name : IndexComponent1
State : Degraded
State : List of degraded cells: Cell:IndexComponent1-SP9c29b725497bI.0.0;
Partition : 0
Host : Servername
Name : Cell:IndexComponent1-SP9c29b725497bI.0.0
State : Degraded
State : (Secondary index cell)
Primary : False
Partition : 0
Name : Partition:0
State : Degraded
Degraded cells: Cell:IndexComponent1-SP9c29b725497bI.0.0;
Solution: Reset Search Index
In order to get search working again, you should reset the Search Index and perform a Full Crawl of all Content Sources again. This somehow might be not the best option if you have a lots of content sources and many indexed files. But i still didn’t found a different solution. So if you have an idea i would appreciate if you share it.
Some more details on this can be found in this blog post.
By the way this can happen due to low storage as well as network related problems.
Microsoft released the new Version of SharePoint 2019 and within there are several new features like the SMTP Authentication. This feature now allows to connect to SMTP Servers directly from SharePoint. There is no need to use an SMTP relay just configure the Outgoing Mailsettings via Central Administration or Powershell.
Configuration via User Interface
Simple and easy. But before SharePoint needs an application credential key. Therefore we need a Powershell script:
In one of our SharePoint Farms we recognized, that suddenly some SharePoint Workflows shows a message “Failed to start”. We tried to manually restart them, but the error comes again. After investigation of error logs and workflows in SharePoint Designer we realized that only some of the workflows didn’t work. Those who uses conditions and special tasks belonged to the workflows not working anymore.
One of the error messages was:
“System.CodeDom.CodeBinaryOperatorExpression is not marked as authorized in the application configuration file”
So we tried to republish the workflow. But SharePoint Designer throwed an similiar message, that activities or conditions could not be found. But only at workflows which didn’t run. We could republish working workflows.
After some more research, we found a really good article, which helped in this situation:
Microsoft announced the possibility to create realtime live events in Microsoft Stream. You can setup your live-video as on-demand video and as live events. You can start the live event from Microsoft 365 – that means from Office Groups as well as from Yammer and Microsoft Stream itself. So this a seamless integration in your Office 365 world.
Start a live event
Watch the video to get to know how to start a live event.
Introducing Live Events in Microsoft Stream - YouTube
It’s possible to comment this video for example in Yammer. The comments can be seen by the producer of the live event. If you use more than one camera, you can switch easily the camera while you’re in a live production of the event. You can see how many viewer currently watching your video