One of my SharePoint Online customers required an internal wiki for sharing knowledge articles, procedures and how-to instructions. The Enterprise Wiki site template is suitable solution for this requirement. One extra requirement was the option for employees to leave comments. Normally I would use the Note Board Web Part because it’s easy to use, simple and does the job. For some mysterious reason, the Note Board Web Part stopped working in the customer's SharePoint Online tenant. I had to look for an alternative solution. My awesome Sparked colleague, Joran Markx, suggested I use Yammer. Of course, I thought about Yammer immediately, but I didn’t think you were able to leave comments for one Wiki page only without seeing comments of Wiki other pages. I was wrong. Let me show you how this works.
Let’s start by creating a new Yammer group within our Yammer network:
Figure 1: Create a Yammer group to save the comments of the Wiki pages.
We need to copy the ID of the group and save it. You can find the ID in the URL:
Figure 2: Copy the ID at the end of the URL.
Let’s leave Yammer for now and go to our Enterprise Wiki site. Edit the Wiki page and add the Script Editor Web Part:
Figure 3: Add the Script Editor Web Part.
You are probably using a custom page layout for your Wiki pages. In that case, add the Script Editor Web Part in the page layout so it’s always available within every new Wiki page. In my example that’s not the case, so let’s just add the Web Part to the page:
You need the following code:
<div id="embedded-feed" style="height:400px;width:500px;"></div>
promptText: "Comment on this article",
Now add your Yammer network name and group ID to the designated underlined text. Copy the code, click on Edit Snippet, paste the code and click OK. The Yammer widget appears:
Figure 5: The Yammer Web Part allows you to leave comments for the Wiki page.
Let’s leave a comment and see what happens:
Figure 6: Leaving a comment in the Yammer Web Part.
You probably notice a couple of things. First, you can mention colleagues and you see a Sign in to Office 365 notification. The Sign in to Office 365 notification appears because you are sending a link from the SharePoint Wiki Page to Yammer. This is a really ugly link but unfortunately there is nothing you can do about it. Please let me know if there is a fix because it would be awesome to leave it out and make a bit prettier. Let’s see the Wiki page from Garth’s perspective:
Figure 7: View the comment and leave a reply.
Garth can reply to Sara’s message or leave a comment of his own. Pretty cool, right? Now let’s see what is happening in the Yammer group:
Figure 8: Yammer saves all the comments and replies in the Yammer group.
All the comments and replies are saved within the Yammer group. You can respond directly from Yammer if you want to but it’s probably easier to do this from the Wiki page. I actually prefer this method instead of the Note Board Web Part because of the integration with Yammer. We all know that Yammer is the Social platform of SharePoint so let’s use the benefits.
You can also visit the following page to configure the Yammer Widget yourself: