Tuesday, October 27, 2020

Add polls to Microsoft Teams meeting

In this article we will use Microsoft Teams meeting to insert poll before we close the team meetings.

Microsoft Teams alone is not sufficient to achieve this functionalities. We need Microsoft forms in order to achieve the same.

Using these 2 tools we can create Survey, Quizzes as well as Poll. MS teams doesn't have in built functionality to insert Poll. By using the below steps we can achieve this vert easily.

1) Open Microsoft Team and open calendar in the teams

2) Select any of the upcoming meeting where you want to insert the poll

3) Now join the meeting where poll needs to be inserted

4) Once we join the meeting minimize the meeting window and open new web browser and login to office.com. Now login into office.com with the same account which configured with Teams.

5) After successful login we will be landing into office.com user dash board as like below.

6) In the landing page if we are not able to see Microsoft Forms by default, click on All apps and this will take us to All Apps view.

Note: Step no 4,5,6 can be skipped by directly logging into forms.office.com

7) In that view we should be able to see Forms which can be used to create Quiz, Polls and surveys. 

8) On click of  MS forms will open forms page where we can see 2 option, create survey/quiz from blank form or we can chose existing template to create the quiz/survey. This is completely left to us how we want to set up the data.

9) In this article we will create form to chose the goodies for the team. Create new form and give the proper title for the form. Here what ever the options we need we can choose here it might be choice, long text, number etc.


10) Once all the questionaries' are ready click on Share button which is at the top most right corner of the page as shown below.


11) Now copy the URL and keep it handy which we need to use it in later part. There are various option available like QR code or even we can email the link. But for now we will just copy and keep it handy for further use in MS teams.


12) Now open the MS teams meeting and click on conversation and paste the URL which copied from the MS forms. Once we send the url the participant of the meeting can take the poll and fill the details.

Its always instant result we can seen in the responses.

The content published/images used are valid as on 27th October 2020, as MS will keep on updating the way we can create the polls.

Saturday, August 1, 2020

Ways to disable Sharepoint Online Modern Page Comments

In this article we will discuss about how to disable comments section in SharePoint Online Modern Page.

Most of the customers keep on asking SharePoint developer to make their page more interactive or kind of seeking opinion about the articles they published in the SharePoint intranet site.

This feature was not available out of the box in earlier version of SharePoint. To achieve this functionality, we need to build custom feature/component which most of the time causes page load issue or performance issue when it grows bigger.


So, Microsoft included this feature in the SharePoint modern page to add comments section to make it more interactive like below.





This is one part of the story and another part is many of customers they don’t want this feature enabled in the site as they are not sure about the what type of content will be published in the comments and it needs to be monitored by admin or we need to create approval workflow to make the content available to all users in the company, this will create some overhead to site admin.


In the next section we will see how we can disable the comments.

There are two ways we can disable the comments in the page
  1. Global Scope
  2. Page Scope

Global scope:


Disabling the page comments globally will affect the entire tenant. This includes all sites and all page library.
  1. Open SharePoint admin center
  2. Click Settings in SharePoint admin center
  3. Navigate to Comments section in the page, by default Comments will be enabled for all pages.
  4. Change the radio button as per the requirement (Disable to remove the comments from the page globally)

Note:

  • Changing this option will take minimum 15 minutes to reflect in the pages
  • Once global admin disables this option, then Site Owner or Site Member can’t enable back at the site collection level
  •  Disabling the comments history does not remove the comments added earlier. After enabling it back it will be show again.

The whole steps are depicted in the below picture.



Page scope:


  1. Click Edit button in the page
  2. Navigate to the bottom of the page where comments control/section is present
  3. Toggle the button to off position and automatically comments will be hidden
  4. Republish the page

Note:

  • Disabling the comments history does not remove the comments added earlier. After enabling it back it will be show again
  • Users with Contribute/Edit access can enable the comments in the page.

The whole steps are depicted in the below picture.















Based on the requirement we can enable/disable the comments at the page and global level.

The information provided in this post (images and steps) are taken on 1st August 2020.

Thursday, July 30, 2020

Remove Page Header in SharePoint online Pages

In this post we will discuss about how to remove the Page header from the SharePoint online pages.


Typically, most of us faced issues when we create new pages in the SharePoint online, there will be header with the title of the page will be shown as like below. Give the page name (Name your page section) and publish the page. I have given the page name as TestPage.




From SharePoint UI there is no way to hide the header at least till this article published, so to hide the Page Header we will use PowerShell commands to hide the content.

There are 2 ways we can achieve the hiding page header.

1) Page level - In this case we will focus only on hiding the page header for the specific page.
2) Site Level - In this approach we are disabling the Page header at the site level.

Now we will see how we can disable for specific page.

1) Open SharePoint management shell (Run as admin)
2) Run the below scripts to disable Page header


#Declare variables sunch as Page name, Site URL
$SiteUrl = "https://bangten.sharepoint.com"
$PageTitle = "TestPage"

#UseWebLogin Uses Default Browser Authentication incase 
#if we have not connected we can remove that
Connect-PnPOnline -Url $SiteUrl -UseWebLogin

#Here we are setting the Layout type to Home its kind of landing page
Set-PnPClientSidePage -Identity $PageTitle -LayoutType Home

#Later at any point of time if we want Page Header back then use the below script
#Set-PnPClientSidePage -Identity $PageTitle -LayoutType Article



















Note: The above script can be run from Windows Powershell ISE as well also I have provided script for revert it back to old variant.

Now we will see how we can disable at site level

1) Open sharepoint management shell(Run as Admin)
2) Run the below scripts to remove the page header 


#Declare variables sunch as Page name, Site URL
$SiteUrl = "https://bangten.sharepoint.com"

Connect-PnPOnline -Url $SiteUrl -UseWebLogin
$PageCollection = (Get-PnPListItem -List SitePages).FieldValues

#Here we will loop through site pages collection and set the layout
foreach($Page in $pageCollection){
    Set-PnPClientSidePage -Identity $Page.FileLeafRef -LayoutType Home

    #Using below line we can revert the changes
    #Set-PnPClientSidePage -Identity $Page.FileLeafRef -LayoutType Article
}


From above steps we came to how we can handle Page Header in the SharePoint Modern Pages.

Wednesday, July 29, 2020

SharePoint Hub Sites Overview

This is my first blog in SharePoint Online topic, Let's start with Hub Site which is major architecture change in terms of modern SharePoint site vs classic SharePoint sites.


 
Let’s start understanding the Hub site by going through its features

  • Hierarchical structure
This is one of the basic features of hub site, we will focus more on this section.
We do not have the concept of Sub sites in modern SharePoint anymore. In Classic SharePoint we have site collections and each site collections have several sub sites under it. All the site collections are maintained in a hierarchical structure. When customization grew more complicated and the user requirements became more agile, deleting sub sites and restructuring them is also more difficult.

Another main disadvantage is external sharing, external sharing is not possible to only one specific sub site, we need to enable external sharing for entire site collection. So, this will hamper the site security and maintenance.

As a gist, the hierarchical structure of site collections and their sub sites were not robust to the modern requirements.This problem can be overcome by using hub architecture where there is no concept hierarchical structure, it will be flat architecture. There are no sub sites. In modern SharePoint, every single site is a site collection. If we have any such requirement for hierarchical structure, then we can use hub site concept to achieve the same.

It is easily maintainable and restructure and external sharing can be done to any independent site collections present or associated to a hub site. So, the security and maintenance is like a piece of cake in this type of flat art hierarchy

  • Look and Feel
All Sub sites inherits their look and feel from the root (Hub site) which allows you to maintain a single branding across all your sites. In a simple term, all sites are associated, which means they resides under one Hub

  • Common/Shared Top Navigation (Global Navigation)
A common global navigation is maintained across all connected sites of the Hub site.
If we want to create custom navigation or we can call it as site specific navigation, we can still go ahead and create it

  • Scoped Enterprise Search
This is one of the very good feature of hub site. If we search for any content in the site it performs the search within all the sites of that Hub Site.

  • Content Aggregation
Automatically aggregates content and displaying from multiple sites. News Web Part, Sites Web Part and Content Web Part can be used in a Hub Site to aggregate content from the associated sites and display the content on the Hub Site’s home page. This reduces a lot of manual work that developers supposed to do to get this done in the earlier days.

Who can create SharePoint Hub Site?
SharePoint Administrator will be able to create SharePoint hub sites, however site owners can associate a SharePoint site with the hub site.


How we can create the hub sites?

For demo purpose I have created one communication (TestCommunication) and 2 team sites (TestHub, FinanceHub)

Let's start with opening Office 365 portal.



Now we will associate FinanceHub and TeamHub site to TestCommunication site.

Open TestCommunication site and go to the site settings and under the site information. We have an option called Hub Site Association. Right now, it is not associated to any hub site as below




The TestCommunication website which we created, was not a hub site yet. Until we do one final setting this we cannot use as hub site.


Now open SharePoint admin site, this opens SharePoint Admin Center (if this opens in classic mode, then open it in modern view)


Here we are performing the following steps:


1) Open SharePoint Admin Site (Change the site from classic mode to modern site)

2) Click on Active Sites, which will show the all the sites which we created in earlier section.





Now its time to make the site as Hub.


1) Select TestCommunication site and click Hub from the menu.

2) Select Register Site as Hub site

3) Give name of the Hub site and give the site owner name/give everyone access based on the business requirement. Careful while giving everyone permission.




In next step we will associate TeamHub site and Finance Hub site to Test Comminication hub site.


Select TeamHub site and associate the site to hub site which we created in the previous steps.




Repeat the same steps for the Finance Hub site.



From the above steps we have associated all the newly created site as hub sites under Parent site


Note:


This is one way of associating the newly created site as hub site in SharePoint admin site. But we can do from the site as well. Open the teamhub site. By using site information option. And from here you can select TestCommunication hub site. Save. Once this option is. Saved you can see the HR hub site appearing over here.



In this post we created hub site and associated the sites to the hub sites. In the next blog we know more details about the how we can provide the same look and feel, how we can move the sites, detach the hub site.

More details about how we can create the Hub site hierarchy in PowerShell

Note:

The steps shown in the image was taken on 28th July 2020, and there might be chances some UI changes in the future.