Home

SharePoint Developer

1088 Conversations

Latest Activity

Custom List Message Item

Hi

 

Is there a way I can set DenyAddAndCustomizePages using PnP?

 

I know it can be done using "SharePoint Online Management Shell" via the Set-SPOSite command. However, this command does not exist in PnP. Also I'd rather not have to load both modules. I'm t

... Read More
490 Views
4 Replies

Hi @Alan Trafford

 

I don't think that there is an option available for that imn PnP PowerShell

 

The only option is:

 

Connect-SPOService -Url https://mytenant-admin.sharepoint.com

... Read More

I'm trying to get a template using the latest PnP PowerShell release with Get-PnPProvisioningTemplate.

 

I'm getting the following error:

 

Get-PnPProvisioningTemplate : The file is not checked out. You must first check out this document before making changes

... Read More
120 Views
0 Reply

Apologies if this has been addressed, but I haven't been able to find any answers.

I'm not a developer, just a (at one time) fairly sophisticated user -- of SharePoint 2010. I'm now in a SharePoint Online environment.

My question: I used to to be able to de

... Read More
522 Views
3 Replies
Your best friend here, without any coding, is PowerApps but you will need to invest some time on figure out how PowerApps work
Best Response confirmed by Kevin Peto Bostick (Occasional Contributor)

In the modern O365 env, we find that there is a small link in the bottom left which says "Return to Classic SharePoint".

I have not found any link, in case you go to Classic mode.

So, i have found this link: https://cann0nf0dder.wordpress.com/2016/06/15/sharepoint-online-new-site-content-page-how-does-it-know-to-render-classic-view-cookies/

... Read More
49 Views
0 Reply

I have tried to work on :

 

https://github.com/SharePoint/PnP/tree/master/Samples/Branding.InjectResponsiveCSS

 

to be applied on my site in Office 365.

 

The way demo was shown was when you typically shorten the area of the Browser.

However, when i clicked on t

... Read More
71 Views
0 Reply

Hi,

 

I have a business proposition where i need to give a capability in office 365 where individual Teams can operate on.

They will have their own content. I though of implementing this using subsites and will take request from the user  as a list item form

... Read More
215 Views
2 Replies
If you are talking about a Teams that are siloed in some way, modern team sites is the way to go...and even Groups. You can automate Groups creation today using the PnP P... Read More

not whether I'm missing something here, when trying to host some font face in the public cdn, runing into "406" error on "*.woff2" files, is that something supported?

255 Views
2 Replies
Does "Get-SPOTenant | Select PublicCdnAllowedFileTypes" show WOFF2 as an allowed type?
Best Response confirmed by Shawn Xiong (Contributor)

I believe the way to do this would be using CSOM, but I have not been able to figure out how. We user sharepoint online and our tenant has about 1300 user profiles. We build our organisational chart off this pool and we would like to make sure each user h

... Read More
191 Views
3 Replies

You could use Get-PnPUserProfileProperty

 

Are you looking for PowerShell or code?

 

PowerShell:

https://github.com/SharePoint/PnP-PowerShell/blob/master/Documentation/GetPnPUserProfileProperty.md

... Read More

What's the format for creating calculated fields with AddPnPField? 

 

I'm assuming the -Type should be Calculated.  Like this: Add-PnPField -Type Calculated

 

I have the formula I want to use, I know it works in the field I created manually.  I was going

... Read More
421 Views
1 Reply

You could look into Add-PnPFieldFromXml it might make things easier. Then the -FieldXml switch needs the Xml. Similar as used by the PnP Templates for the calculated colu

... Read More

Is it possible to add a description to the field in a custom list using Add-PnPField?  Or does anyone have a way of programmatically adding a description after the field has been created.

152 Views
2 Replies

This works:

$field = Get-PnPField -List Risks -Identity Likelihood

$field.Description

$field.Description="This works"

$field.Update()

Hi  @Matt Munslow,

 

The description seems to be missing.

 

Maybe a bit of a heavy way of doing this but you could use

 

Get-PnPProvisioningTemplate -Out test.xml

 

Then update t

... Read More

Hello All,

 

Is it possible to create a text field with Add-PnPField that has multiple lines of text?

378 Views
2 Replies

Yes you can. 

 

Add-PnPField ..... -Type Note

Best Response confirmed by Matt Munslow (Microsoft)

Hi All

 

We are currently using the PnP extension method SetThemeByUrl() that applies all themes by iterating through every web of a site collection, starting with the root web. This approach takes a fair amount of time and can endup in nasty timeouts. 

Unti

... Read More
635 Views
5 Replies

We don't have yet timeline or even confirmed use case for this, but it might arrive as part of the monthly releases we do for SharePoint Online. With on-premises situatio

... Read More

I've built O365 Async provisioning jobs before, but I am now trying to do the same on-premises.

 

I am basing part of my solution off of the PnP/Samples/Provisioning.OnPrem.Async sample code here.  The GitHub sample code documentation indicates that all ste

... Read More
380 Views
6 Replies
Thanks Vesa! Not a problem at all, just need to make sure that I have all my ducks in a row for development. I do have a couple other questions that I will post separatel... Read More

It's been a while since tested this in on-premises, but that was indeed still a requirement with RTM... so would assume that you'll need to do the manual steps also now w

... Read More

Hi, 

 

Have anyone else noticed that when injecting custom css file to SharePoint and then try to use "Term store management" (../_layouts/15/termstoremanager.aspx), e.g using custom sorting on managed navigation the page, breaks to blank page with console

... Read More
205 Views
4 Replies
That would be strange do you have a example code?
Using site UserCustomActions.
How Are you injecting the CSS?

I've got a customer who would like to use new new team sites. There is however one major downside that we can see. 

 

I'm missing the list view web part or something equivalent. I'm aware of the Highlighted Content but that seems to be very limited.  What s

... Read More
224 Views
5 Replies
Quite frankly, this is the most frustrating piece of the modernization, its nice and shiny and new, but missing so much of what I would call "basic" sharepoint functional... Read More
Is there a way to get the list of Permissions granted for an App in Apps registered via Appregnew.aspx and look-up'ed in appinv.aspx? Ask is one App Id/ClientId will have permissions to more than one document library/Apps. In those cases, how to know what... Read More
127 Views
0 Reply

SharePoint Patterns and Practices (PnP) - PnP Core, PnP PowerShell and provisioning engine Special Interest Group (SIG) weekly call recording for the 2nd of November meeting is now available from PnP YouTube channel at http://aka.ms/sppnp-videos.

 

Topic

... Read More
828 Views
2 Replies

@Vesa Juvonen and @Erwin van Hunen, I like the idea of renaming these cmdlets to eliminate the confusion, but, what I would really like to see is the migration of these c

... Read More

I am adding references to my external library and it loads fine in the page

 

Connect-PNPOnline -Url https://myteams.qqq.com/sites/tmnaisa/IS/PlayArea -Credential sp
Add-PnPJavaScriptLink -Name JQuery -Url https://myteams.qqq.com/sites/tmnaisa/IS/SiteAssets/ThirdPartyTools/jquery-3.1.1.min.js

... Read More
218 Views
2 Replies

Hi,

 

You can also use this pattern to inject CSS using custom actions: https://github.com/OfficeDev/PnP/tree/master/Samples/Branding.CustomCSS

 

Br, Ivan

Read More
How about import CSS in alternative CSS file?

I am able to to register a block but calling the booMonster function is not possible as the custom javascript library is not loaded yet?   Can I load a Block from a javascript file?

 

I am trying have a function called on every pages?

 

#
#

$ScriptName = "SayBo

... Read More
127 Views
1 Reply
I thought it is only possible with JSlink and not in libraries but i could be wrong here.Do not know how to add it via PowerShell

I have been struggling to get Admin Center to publish a manifest for a fully working SharePoint hosted Office 365 app.

Does anoyone here know why Admin center cannot accept SharePoint URLs in a Word add-in manifest?

This is my manifest (altered for privacy)

... Read More
140 Views
2 Replies

Would you be able to publish your manifest.xml as shown here:

 

https://dev.office.com/docs/add-ins/overview/add-in-manifests

 

Read More

Hello,

 

I am using the OfficeDev.Core to create DocumentSet "Folder" in sharepoint Online in a Provider Hosted Add-in in C#.

 

I am using the lastest CSOM C# library for Sharepoint On line :

Microsoft.SharePoint.Client.dll V16.1.5813.1200

Microsoft.SharePoint.

... Read More
198 Views
3 Replies

We are having the same issue with an app that has been working for a couple years. 

 

SharePoint Patterns and Practices (PnP) - PnP Core, PnP PowerShell and provisioning engine Special Interest Group (SIG) weekly call recording for the 16th of November meeting is now available from PnP YouTube channel at http://aka.ms/sppnp-videos.

 

To

... Read More
1,117 Views
0 Reply

I am thinking of trying OfficeDevPnp Core dll for CSOM operations in my current project. I'm doing a POC to check if add-in only context works for SharePoint 2013 on-premises. I have checked "GetNetworkCredentialAuthenticatedContext" method and it worked.

... Read More
208 Views
2 Replies

Hi,

 

Add-in authentication works for SharePoint 2013 in both "add-in only" and "add-in+user" types. If you want to setup High Trust add-in you don't need client secret (it

... Read More

Can you post the stack trace for the error?

I am creating a timer job to provision sites asynchronously, similar to PnP Provisioning.OnPrem.Async project sample here.  This is for on-premises SharePoint 2016, and I am having trouble getting AppOnly (add-in only) authentication working.

 

All of these

... Read More
117 Views
3 Replies

The AuthenticationManager class also provides you with a method for user authentication

GetSharePointOnlineAuthenticatedContextTenant

 You pass the site collection (admin t

... Read More

Hi,

 

Definetly possible. You don't need to create a access token if you don't want to use add-in authentication. You can use Windows authentication instead and authenticat

... Read More

Hi,

 When I am applying my provisioning template to a newly created team site it is throwing an exception "The field was found invalid:" Below is my  CSOM code.

private static void ApplyProvisioningTemplateNew(ConsoleColor defaultForeground, string webUrl,

... Read More
490 Views
3 Replies

I would remove everything and build part per part back if you know which list something is missing incorrect and check the sitefields if they are provisioned correctly

Read More

Hi, As per the xml the issue is happening at site columns level. can you verify the site columns which are created in the target site with the xml <pnp:SiteFields> sectio

... Read More