Skip to main content
2 votes

Is it viable to manage a SharePoint Online site via PnP templates in source control with automated deployments?

This is a fairly common workflow, one I've used in multiple projects. The templates can be safely repeatedly deployed to the same site but watch for templates that do upgrades to existing sites, the ...
James Love's user avatar
  • 25.5k
2 votes
Accepted

Difference between Elements.xml and Schema.xml

I think the accepted answer you're pointing is not completely accurate. The question raised in that post is more probably "Why do all examples I see insert the fields twice?" instead of "Why do I need ...
Evariste's user avatar
  • 9,731
2 votes
Accepted

SharePoint PnP PowerShell Provision world clock webpart on Modern page

I would add the web part as custom using the ID, for example: Add-PnPClientSideWebPart -Page $homePage -Component "b519c4f1-5cf7-4586-a678-2f1c62cc175a" -Section 1 -Column 1 You can find the ID by ...
JMyner's user avatar
  • 116
2 votes
Accepted

Not able to browse PnP PowerShell documentation on Microsoft site

PnP PowerShell documentation migrated to new URL. This is new URL: PnP PowerShell documentation. You can find the cmdlets under the Cmdlets tab. Related thread: Not able to access PnP PowerShell ...
Ganesh Sanap - MVP's user avatar
1 vote
Accepted

SPFX provisioning list, how to index column?

Make sure in the XML definition of the column to make the parameter Indexed="TRUE". That way once it's added to the list it will automatically appear as indexed on the list.
Vertamin's user avatar
  • 321
1 vote

How to include folders in document libraries when provisioning from a template

By default GetProvisioningTemplate method will not support extracting Folder information from library. For that you need to create custom extensibility handler and write your own logic. I have created ...
Kalpesh Vaghela's user avatar
1 vote
Accepted

URL to provision Microsoft New Employee Onboarding sites

The New Employee Onboarding (NEO) sites can be provisioned from here: NEW EMPLOYEE PRE-ONBOARDING SITE NEW EMPLOYEE CORPORATE ONBOARDING SITE NEW EMPLOYEE DEPARTMENTAL ONBOARDING SITE
Allen_MSFT's user avatar
  • 1,106
1 vote

Creating a channel on microsoft teams with site design schema

Agree with Ganesh Sanap. Per my understanding, this requirement is currently not supported.
Elsie Lu_MSFT's user avatar
1 vote
Accepted

Creating a channel on microsoft teams with site design schema

I don't think it is possible using site design script. You can check currently supported list of actions at: Site design JSON schema
Ganesh Sanap - MVP's user avatar
1 vote
Accepted

Can I set List Validation Settings programmatically?

You can use the below code to set validation for a list field using JSOM, $(document) .ready(function() { SP.SOD.executeFunc('sp.js', 'SP.ClientContext', SetValidation); })...
Karthik Jaganathan's user avatar
1 vote

Programatically define document set default view

(At least today) this is quite easy, albeit that indeed no dedicated function exists. But one can set the default welcome page view combining PnP and XML: $welcomePageView = Get-PnPView -Identity $...
zenlord's user avatar
  • 161
1 vote
Accepted

Never ending site creation

You can perform Test-SPOSite command to know whether those site collection is created under your tenant, if you get any unknown error then you can conclude that those site collection are not created ...
Binggo_ MSFT's user avatar
1 vote
Accepted

Include new page layout in the page lauout drop down

You are using RootWebOnly="TRUE" which will only show the page layout on the top level site of the Site Collection. Also it looks like you are missing some values from your elements file. This is an ...
James Grizzle's user avatar
1 vote

Disable Teams Site Creation

Users probably create this Team Site on https://company.sharepoint.com/_layouts/15/sharepoint.aspx right? For hiding this option go: SharePoint Online Central Administration > Settings > Site ...
Zdeněk Vinduška's user avatar
1 vote
Accepted

How to deploy display templates with pnp?

I did some research on this and it seems it is not yet included in PnP Powershell. The suggestion was raised, but no inclusion in pnp-powershell till date for supporting display templates. Issue ...
DvG's user avatar
  • 2,332
1 vote
Accepted

Provision sharepoint list & columns without creating content type using schema.xml SPFX

The sharepoint framework assets provisioning model relies on the feature framework provisioning model (a subset of it). It's generally a best practice to leverage site columns and content types for ...
baywet's user avatar
  • 565
1 vote

How create publishing page via CSOM or Powershell (SharePoint Online)

PublishingPageInformation publishingPageInfo = new PublishingPageInformation(); publishingPageInfo.Name = pageFileName // Set file name here; publishingPageInfo.PageLayoutListItem = layout // Url of ...
users1100's user avatar
  • 3,230
1 vote

How to provisioning a SPFx web part using CSOM OnPrem (SP2016)

First, Set up your SharePoint client-side web part development environment Install developer tools Install NodeJS version 6.x. Install a code editor. You can use any code editor or IDE that ...
Mohamed El-Qassas MVP's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible