Quantcast
Channel: PnP – SharePains
Viewing all 17 articles
Browse latest View live

SharePoint 2013 – Office 365 – Patterns and Practices samples overview.

$
0
0
Introduction to Patterns and Practices Recently I’ve been looking into the Office Development Patterns and Practices (OfficeDev/PnP). Lead by Vesa Juvonen OfficeDev/PnP is an initiative by many SharePoint developers picking up all those development tasks that keep coming back. I got into the whole PnP approach when I saw Vesa demo the Provisioning.SubSiteCreationApp at the … Continue reading

Office 365/SharePoint 2013 – Enable Intellisense of OfficeDev\PnP

$
0
0
In recent months I’ve really started to like the OfficeDev\PnP initiative on Github. The following 4 projects give a great start for provisioning sites: https://github.com/OfficeDev/PnP-Provisioning-Schema https://github.com/OfficeDev/PnP-Sites-Core https://github.com/OfficeDev/PnP-PowerShell https://github.com/OfficeDev/PnP It is now possible to export sites and import sites without the need for any features other than the out of the box features. No need to upgrade features, … Continue reading

OfficeDev/PnP – How to use GitHub?

$
0
0
I’ve been using GitHub now for a while for  a number of projects. The OfficeDev/PnP is quite well organised however it is not always clear how to use GitHub. On a regular basis people contributing to the project submit changes to the master branch. I’ve also found synchronizing code, updating my personal fork and some … Continue reading

Office 365 – SharePoint Online – Get all views of all lists using PnP PowerShell

$
0
0
In my customers SharePoint site there are a number of lists where multiple views with similar names have been created. (e.g. All Items and AllItems”). Rather than going through every list and checking where the double views have been created I used the PowerShell commands from the PnP framework to list all the views in all […]

Office 365 – SharePoint – Getting Started with PnP PowerShell

Office 365 – How healthy is your tenant?

$
0
0
Today I came across an article by Wictor Wilen describing health scores in SharePoint 2013. I’m using Office 365 so that article isn’t describing what I need. I’m finding that my tenant is very slow but is there a way to check my farm? OfficeDev PnP PowerShell (https://github.com/OfficeDev/PnP-PowerShell) giving a very easy answer. The Get-SPOHealthScore … Continue reading Office 365 – How healthy is your tenant?

Office 365 – SharePoint – PnP – The object is used in the context different from the one associated with the object.

$
0
0
Today  one of my colleagues was trying to create a list item in SharePoint Online using the PnP PowerShell. He was running the following command Add-SPOListItem -List $dlist -Values @{“Title” = “$webTitle”} and got the following error: Add-SPOListItem : The object is used in the context different from the one associated with the object. At … Continue reading Office 365 – SharePoint – PnP – The object is used in the context different from the one associated with the object.

Office 365 – PnP – SharePoint – Add-SPOFile – format-default : The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.

$
0
0
Today I tried to upload a document to SharePoint Online using the Add-SPOFile command from the PnP PowerShell. Add-SPOFile -Path $path/DocumentTemplates/MyTemplate.docx -Folder DocumentTemplates -Web $web -Values @{Title=”MyTemplate”;FileLeafRef=”MyTemplate.docx”} This resulted into format-default : The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be … Continue reading Office 365 – PnP – SharePoint – Add-SPOFile – format-default : The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.

Creating Office 365 Groups using PnP PowerShell

$
0
0
Using the latest version of PnP PowerShell some new Cmdlets have been introduced. I’m going to have a look at some of these new commands in this post that help you manage Office 365 groups. Connecting to Microsoft Graph First to setup a connection to Microsoft Graph the Cmdlet Connect-PnPMicrosoftGraph has been created. Connect-PnPMicrosoftGraph -Scopes … Continue reading Creating Office 365 Groups using PnP PowerShell

Office 365 – Get all users without a user profile photo using PnP PowerShell

$
0
0
Today, I looked at how to retrieve a list of users that don’t have a user profile picture using PowerShell. Once again I’m using PnP PowerShell. First I connect to my admin site of my tenant: Connect-PnPOnline https:\\mytenant-admin.sharepoint.com Then I collect the properties of my user profile: $user = Get-PnPUserProfileProperty -Account username@mytenant.onmicrosoft.com $user.PictureUrl now contains … Continue reading Office 365 – Get all users without a user profile photo using PnP PowerShell

Office 365 – Apply-PnPProvisioningTemplate with publishing pages

$
0
0
Today I tried to apply a PnP template to a publishing site and I was getting the following error. Apply-PnPProvisioningTemplate : The object specified does not belong to a list. At line:1 char:1 + Apply-PnPProvisioningTemplate -Path $templateFile -Web $departmentWe … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (:) [Apply-PnPProvisioningTemplate], ServerException + FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Provisioning.ApplyProvisioningTemplate I found … Continue reading Office 365 – Apply-PnPProvisioningTemplate with publishing pages

Office 365 – Apply-PnPProvisioningTemplate not updating pages.

$
0
0
Today I ran the latest version of the PnP PowerShell commands to apply some templates. I noticed the folloiwng warning after I enabled debug PowerShell_ISE.exe Warning: 0 : 2017-01-25 10:50:55.3041 [Files] [12] [Information] Skipping upload of file 'Pages\default.aspx' to 'Pages'. 1497ms 7b0362d0-b49b-4d71- 9251-a5c060fac6fe Why are these pages skipped?   Looking at the code responsible for … Continue reading Office 365 – Apply-PnPProvisioningTemplate not updating pages.

Office 365 – PnP Provisioning Engine – Making external lists work

$
0
0
The current version of the PnP provisioning engine doesn't like external lists. hen exporting a template external lists are included in the PnP templates, however some of the information needed to recreate the external list is missing: <pnp:ListInstance Title="Client" Description="" DocumentTemplate="" OnQuickLaunch="true" TemplateType="600" Url="Lists/Client" MinorVersionLimit="0" MaxVersionLimit="0" DraftVersionVisibility="0" TemplateFeatureID="00bfea71-9549-43f8-b978-e47e54a10600" EnableAttachments="false" EnableFolderCreation="false"> <pnp:ContentTypeBindings> <pnp:ContentTypeBinding ContentTypeID="0x01" Default="true" /> … Continue reading Office 365 – PnP Provisioning Engine – Making external lists work

Office 365 – Apply-PnPProvisioningTemplate : Exception has been thrown by the target of an invocation.

Office 365 – SharePoint – Create your own Contact list


Office 365 – PnP – Pages are not replicated

$
0
0
Over the last year or so many of my posts have been related to the PnP Provisioning Engine. I've created multiple scripts to replicate my whole intranet from one tenant to another. I've set this all up in such a way that this would work for any intranet solution based on Office 365 or SharePoint … Continue reading Office 365 – PnP – Pages are not replicated

Office 365 – SharePoint 2013/2016 – Replicating or migrating SharePoint sites.

Viewing all 17 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>