Loading...

Follow HANDS ON SharePoint on Feedspot

Continue with Google
Continue with Facebook
or

Valid

The philosophy behind the PnP Provisioning Engine is changing, and it will start saving the content of the SharePoint sites if you explicitly request it.

Until now the provisioning engine was just getting the site structure, and the home page. To include content on it, you had to find workarounds to do it.

A year ago, I wrote an article with a workaround to include all the pages from a site in a template, it basically extracted the template multiple times (one for each page) and then combined everything in a single file.

With the latest release of the provisioning engine this workaround is no longer needed, and the pages are all added to the template at once. Lists items and documents are not yet supported but they will be also included in the upcoming releases.

This is a great change to the provisioning engine and finally it provides an easy way to migrate content from a site collection to another site collection.

How to Save a template with multiple pages

The example in this article was made using PnP PowerShell, to achieve the same result make sure you are using at least the June 2019 version.

https://docs.microsoft.com/en-us/powershell/sharepoint/sharepoint-pnp/sharepoint-pnp-cmdlets?view=sharepoint-ps

To save a template with all the pages you will need to use the parameter -IncludeAllClientSidePages and it will extract all the pages in the Site Pages library including the page templates inside the template folder.

Connect-PnPOnline -url https://contoso.sharepoint.com
#The handlers parameter is optional, it’s used here to make the extraction faster
Get-PnPProvisioningTemplate -out template.xml -Handlers PageContents -IncludeAllClientSidePages

To apply the template back to another site you just need to run the Apply-PnPProvisioningTemplate cmdlet

Connect-PnPOnline -url https://contoso.sharepoint.com/sites/anothersite
Apply-PnPProvisioningTemplate -path template.xml
Conclusion

If you are building and testing your pages on a dev environment this is an easy way to move all the pages to the production environment. If you will use this to migrate content, you will have to ensure that the resources referenced in the pages are available on the production site also.

Erwin van Hunen did a detailed explanation of this feature on the latest community call, you can watch it on the video below.

Community demo - Exporting and importing modern pages cross sites and tenants with PnP tools - YouTube
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

When you install SharePoint onprimises the image renditions are not generated automatically, and the renditions pages displays the error message below.

The blob cache is not enabled in this web application. Image renditions will not be generated until the blob cache is enabled. For information on turning on the blob cache, please review the product documentation.

To fix this issue and get the image renditions automatically generated follow the instructions provided in this article.

  1. On the SharePoint server open the Internet Information Services (IIS) Manager
  2. Select the SharePoint Website
  3. On the Actions pane click on Explore
  4. Open the web.config file with Notepad
  5. Press CTRL + F and search for BlobCache
  6. Change the enabled=”false” parameter to enabled=”true”
  7. Restart the Website and you the renditions will start being generated when you upload the images
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

If you have a static HTML site that needs to be shared internally inside your organization, you don’t need to get a dedicated hosting service to do it

SharePoint can be used to host the static HTML sites if you follow the 5 simple steps described in this article.

  1. Rename all your .html files to .aspx and make sure all the links in the site are correc
  2. Open the SharePoint site using SharePoint designer
  3. Open the Site Pages or Pages library
  4. Copy all your files to the library
  5. Select the home page of your static site and click on Set as Home Page
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

The insider Dev Tour is a Microsoft event that bring to multiple cities around the world the latest technologies to build experiences to Microsoft 365.

Whether you’re interested in Microsoft Windows, SharePoint, Teams, Graph, Identity or IoT, the Insider Dev Tour has you covered. Discover the latest client and web-developer technologies including Progressive Web Apps, C# and .NET Core, JavaScript, and a lot more.

This year I’m one of the speakers in Lisbon and the title of my session is:

Introduction to Microsoft Graph Services

Microsoft Graph provides a unified programmability model that you can use to build apps for organizations and consumers that interact with the data of millions of users. You can use the Microsoft Graph REST APIs to access data in Azure Active Directory, Office 365 services, Enterprise Mobility and Security services, Windows 10 services, Dynamics 365, and more. We will spend the next 30 minutes exploring what you can do with the Microsoft Graph.

If you want to attend the Microsoft Insider Dev Tour make sure you register here.

  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

I wrote a series of posts that explain how to install SharePoint 2019 step by step on a Hyper-V virtual machine for testing and development.

The series ends up with the creation of the first site collection but if you will use the VM to develop you will also need an App Catalog.

On this article you will find the instructions to create it step by step.

  1. Open the SharePoint Central Administration
  2. On the landing page click on Manage App Catalog under Apps
  3. Select the web application where you want to add it
  4. Choose Create a new app catalog site and click OK
  5. Fill the form with the details for the App Catalog and click OK
  6. After a few minutes the site collection is created, and you are able to install SharePoint solutions

Business vector created by freepik – www.freepik.com

  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

SharePoint Online has a service to generate and return links to media thumbnails stored in the libraries, It works great for a lot of formats but mp4 videos are no longer supported.

This article describes an alternative process to retrieve the thumbnails for the videos you have stored in the libraries using Microsoft Graph.

Nowadays everything is available through Microsoft Graph and with a few queries you will be able to get 3 resolutions for the video thumbnail.

All the steps described below can be accomplished on Microsoft Graph Explorer and then reused with your preferred development language making the appropriate rest calls.

In order to get the thumbnail, you will need to get first:

  • The ID of the site where the videos is stored
  • The ID of the drive (library) where the video is stored
  • The ID of the video
Get the Site ID

To get the ID of the site you can do the following request, more information about it can be found here.

GET /sites/{hostname}:/{server-relative-path}

Example: Since we only need the ID it can be specified in the query string

https://graph.microsoft.com/v1.0/sites/handsonsp.sharepoint.com:/sites/contosodronelanding?$select=id

Get the Drive ID

Now that you got the ID for the site you need to get the ID for the library, doing the following request, more information about it can be found here

GET /sites/{siteId}/drives

Example:In this example I’m requesting the ID and the name of the library in case it’s needed to iterate through them

https://graph.microsoft.com/v1.0/sites/handsonsp.sharepoint.com,89e9f807-36c1-4f58-9a58-496163a0cf20,480f7be0-ef7f-4001-89e8-6908a5503edb/drives?$select=id,name

Get the Video ID

Once you get all the ids you need, you need to list all the elements inside the library doing the following request, more information about it can be found here

GET sites/{site-id}/drive/{drive-id}/items/root/children

Example: In this example I’m listing all the files in the library root folder and listing the ID and the name of the file.

https://graph.microsoft.com/v1.0/sites/handsonsp.sharepoint.com,89e9f807-36c1-4f58-9a58-496163a0cf20,480f7be0-ef7f-4001-89e8-6908a5503edb/drives/b!B_jpicE2WE-aWElhY6DPIOB7D0h_7wFAiehpCKVQPtttsqxJFrSxRLN8YzWVdyOX/root/children?$select=id,name

Get the thumbnail

Once you get the 3 main IDs you just need to request the preview thumbnail for the file using the following request, more information about it can be found here

GET /sites/{site-id}/drive/items/{item-id}/thumbnails

Example:You will get a JSON object with 3 resolutions for the video thumbnail

https://graph.microsoft.com/v1.0/drives/b!B_jpicE2WE-aWElhY6DPIOB7D0h_7wFAiehpCKVQPtttsqxJFrSxRLN8YzWVdyOX/items/01HSSATH2C7TPHBF5JIRCIHQMWUHIO4GLS/thumbnails

The image below is the thumbnail for the video, notice that the generated thumbnail is public and accessible outside of SharePoint


Logo vector created by rawpixel.com – www.freepik.com

  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Getting an error when installing SharePoint On-Prem prerequisites is a common issue but it doesn’t mean that you will need to start the installation again from scratch.

Typically it happens when the server is not connected to the internet and the tool is not able to download everything that is required to accomplish the installation, so the first thing to do is to ensure that the server is connected to the web.

If the issue persists even when connected to the web you can use the Windows Server Media DVD or ISO file to install the prerequisites.

To accomplish the installation, do the following:

  1. On the server open the PowerShell console
  2. Execute the command lets below
  3. Import-Module Servermanager
    
    Install-WindowsFeature NET-HTTP-Activation,NET-Non-HTTP-Activ,NET-WCF-Pipe-Activation45,NET-WCF-HTTP-Activation45,Web-Server,Web-WebServer,Web-Common-Http,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-App-Dev,Web-Asp-Net,Web-Asp-Net45,Web-Net-Ext,Web-Net-Ext45,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Health,Web-Http-Logging,Web-Log-Libraries,Web-Request-Monitor,Web-Http-Tracing,Web-Security,Web-Basic-Auth,Web-Windows-Auth,Web-Filtering,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression,Web-Mgmt-Tools,Web-Mgmt-Console,WAS,WAS-Process-Model,WAS-NET-Environment,WAS-Config-APIs,Windows-Identity-Foundation,Xps-Viewer -IncludeManagementTools -verbose - Source D:\sources\sxs

    The value used by the last Source parameter is the location of the Windows Server Media disk, the letter to the drive might be different on your server.

  4. The command execution should return a success message like the one below
  5. Reboot the server
  6. Install the prerequisites through the wizard and proceed with the instalation

Background vector created by freepik – www.freepik.com

  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

For the second year in a row the SharePoint community was together in Las Vegas for the first major conference of the year.

Is typically during May that Microsoft announces the first batch of new features for SharePoint and this article has a resume of everything that will rollout during the next months.

Her you will find the major announcements that caught my eye, the road map for the next months, the keynote video and also the links to all the blog posts published by Microsoft.

Before heading into the new features watch the video that went viral during the conference and is making SharePoint look cool again.

New SharePoint innovations - YouTube
Home Sites

“SharePoint home sites, a dynamic, engaging, and personalized employee experience for your organization.”

SharePoint home sites were announced at the key note as the latest innovation for the intelligent intranet.

Home sites will be the landing page for your intranet that will group together news, events, content, conversations and video to deliver engaging experiences.

A home site is built on top of a communication site, during the initial release there will be just one for the entire tenant but is expected that this number will increase later.

You can read more about home sites on the two blog posts released during the event here and here.

Microsoft Search

Microsoft Search is an intelligent, enterprise search experience from Microsoft that applies the artificial intelligence technology (AI) from Bing and deep personalized insights surfaced by the Microsoft Graph, to make search more effective for you, increasing productivity and saving you time – so whether you’re looking to find people, files, or conversations, complete a task, pick up where you left off, or discover answers or insights, it’s just a click away, across all of your applications, your desktop, and your browser. Microsoft Search is ready when you are, so there’s nothing you need to do to start benefiting from this new search experience – just look for the new search box in the header of the applications you’re using everyday.

Microsoft Search on SharePoint is featured prominently in the header so it’s easy to find, it shows relevant information just by clicking in the new search box. You will notice that the old Search box was removed from the page area.

You can read more about Microsoft Search integrations here.

SharePoint Framework

SharePoint Framework 1.9 will be available soon and it includes enhancements to the Microsoft Graph connected controls.

In addition to new scenarios you can build with SharePoint Framework, new options with SharePoint Framework tools will make creating solutions easier.

With library components, you can develop common modules of code that can be shared across multiple SharePoint Framework projects. In the upcoming 1.9 release of SharePoint Framework, coming soon, library component support will be generally available.

Microsoft is also always working to respond to your feedback, issues, and pain points. SharePoint Framework 1.8.2, released few weeks ago, updates compatibility to support Node.js 10 to help every developer use the latest releases.

More information for the developers is available here.

Road Map

During the Microsoft sessions the road map for the next months was revealed, not just for SharePoint but for the entire Microsoft 365 ecosystem. Susan Hanley did a fantastic job and compiled all the slides in the presentation below. Enjoy.

SharePoint Virtual Summit

The keynote was live streamed as part of the SharePoint virtual Summit and the recording is available here. Watch the video below to see all the announcements for the intelligent workplace.

Microsoft 12 blog posts

Microsoft published 12 blog posts during the event with all the latest and greatest functionalities coming to SharePoint, all the links are available below.

  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Installing SharePoint On-prem is not a straight forward task and there are a lot of requirements and dependencies involved in the process.

In this article you will find visual instructions to install it on a Hyper-V virtual machine; an installation like this should be used just for testing or development purposes.

This article has 5 different sections that will guide you through the installation process step by step, in order to accomplish it you will need to:

  1. Install and Configure Hyper-V
  2. Install Windows Server 2019
  3. Install Active Directory Domain Services
  4. Install SQL Server 2017
  5. Install SharePoint 2019
Install SharePoint 2019
  1. Load the SharePoint 2019 ISO into the virtual machine
  2. Double click on the CD-ROM drive to open the installation wizard
  3. Click on Install software prerequisites
  4. On the preparation toll click next
  5. Accept the terms and click next
  6. Wait a few minutes while the setup configures the environment
  7. Once the process ends click on Finish and restart the server
  8. Back to the installation wizard now click on Install SharePoint Server
  9. Enter your SharePoint 2019 product key
  10. Accept the software License Terms
  11. Choose the location for the files and click Install Now
  12. The installation will take a while to compete
  13. Click on close and the SharePoint Configuration Wizard will open after a system reboot
  14. Click on next
  15. Select Create a new server farm
  16. Setup the Database details
  17. Setup a Passphrase
  18. Select Single-Server Farm role
  19. Specify the port number to the central administration
  20. Confirm all the settings are correct and click Next
  21. The configuration wizard will configure the SharePoint products
  22. Click on Finish
  23. Login into the Central Administration, and click on Start the wizard
  24. Select the Service Applications and Services
  25. Create the root site collection and start using SharePoint
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Installing SharePoint On-prem is not a straight forward task and there are a lot of requirements and dependencies involved in the process.

In this article you will find visual instructions to install it on a Hyper-V virtual machine; an installation like this should be used just for testing or development purposes.

This article has 5 different sections that will guide you through the installation process step by step, in order to accomplish it you will need to:

  1. Install and Configure Hyper-V
  2. Install Windows Server 2019
  3. Install Active Directory Domain Services
  4. Install SQL Server 2017
  5. Install SharePoint 2019
Install SQL Server
  1. Load the SQL Server ISO file in the virtual machine
  2. On the VM go to the CD drive and click to start the installation wizard
  3. Once SQL Server Installation Center opens click on Installation
  4. Click on New SQL Server stand-alone installation
  5. On the Product Key enter the product key or select the evaluation edition
  6. Accept the License and terms and click next
  7. If you want to keep your instance update, check the check box for the updates and click next
  8. On the install rules ignore the warnings an click next
  9. On the feature selection choose
    • Database engine services
    • Full-Text and Semantic Extractions
    • Analysis Services

  10. On the instance configuration leave the defaults and click next
  11. On the server configuration select Automatic for the Startup Type of all the services, on the SQL Server Analysis Services provide the account name and the password
  12. On the Database Engine Configuration select mix mode, add the current user and provide the password
  13. On the Analysis Services Configuration Add the current user and click next
  14. On the ready to install click Install
  15. Once the setup is complete click on Close and restart your Windows Server

Proceed to the SharePoint 2019 installation

Read for later

Articles marked as Favorite are saved for later viewing.
close
  • Show original
  • .
  • Share
  • .
  • Favorite
  • .
  • Email
  • .
  • Add Tags 

Separate tags by commas
To access this feature, please upgrade your account.
Start your free month
Free Preview