Mark van Dijk
  • Member for 10 years, 2 months
  • Last seen this week
Deleting all the items from a large list in SharePoint
9 votes

In addition to IAfanosov's solution, I've written a method to clear the recycle bin from all items that were deleted from the given list: /// <summary> /// Deletes all items from the recycle ...

View answer
Sharepoint Lists Missing from Site Collection
6 votes

It seems that not all features are active on the root site of your site collection. Some of the list templates, including the Communications list templates, are only available if a specific feature is ...

View answer
Add a multiple lines of text column to a list allowing unlimited lines of text, html enabled using powershell
Accepted answer
2 votes

Modify your script like so, and you're good to go: param([string]$workspaceUrl) [Microsoft.SharePoint.SPSecurity]::RunWithElevatedPrivileges( { $site = SPSite($workspaceUrl) $web = $site....

View answer
Powershell Script to find URL's on content pages, lists and libraries that point to a specific url in SharePoint 2010
2 votes

Here's something that might (partly) help you on the way. Partly because it only works for pages in the pages libraries across your farm. [System.Reflection.Assembly]::LoadWithPartialName("Microsoft....

View answer
Setting default value for metadata column programmatically
2 votes

Although it might work fine to provide the LCID as to the default value, it's not what you're supposed to supply. You should supply the ID of the listitem in the hidden list "/Lists/...

View answer
Reverse the display name with split name on SharePoint Spfx
Accepted answer
1 votes

Your question isn't really a SharePoint related question, but more of a Javascript/Regex question. But I'll try to help you out: What you're doing and why this doesn't work out correctly: In your ...

View answer
Hooking up the presence indicator for FabricUI's Persona component
Accepted answer
1 votes

The User Profile Service doesn't provide information about a user's presence. SharePoint, or Delve for that matter, doesn't keep track of a user's presence so it cannot give you that information. You ...

View answer
How to remove Default "Document" CT from custom document Library
1 votes

A nice, and pretty safe way to remove a known content type from a list is to use code like this: // Remove default Document content type SPContentTypeId listDocumentCT = list.ContentTypes.BestMatch(...

View answer
BDC Entity with TypeDescriptor System.String[] gives errors when crawling
1 votes

Probably two years too late, but I've got the following multi-value property in my Entity that works fine: <TypeDescriptor Name="Subjects" TypeName="System.String[]" /> Note that I didn't ...

View answer
Skip part of page during crawl
1 votes

In addition to Wictor's answer there are some rumors on the internet that you have to make sure you apply the "noindex" to nested DIV's as well. Just putting a "noindex" on the parent node isn't ...

View answer
Getting SP list item versions in Powershell doesn't work
0 votes

Apparently, version information needs to be loaded separately, as part of the file property. Try something like this: Connect-PnPOnline –Url "http://MyServer/MySite" –Credentials (Get-Credential) $...

View answer
Group Management "Custom Site template"
0 votes

If I understand your question correctly, you're wondering why your new site has both the App site groups AND the Site Template groups? If this is your question, then the answer is that the Site ...

View answer
What is PropSet in crawled property?
0 votes

The PropSet of a crawled property isn't related to the field type but to the category. When you look at the crawled properties in the UI you'll see that they are grouped in categories like ...

View answer
Not working following code
Accepted answer
0 votes

The question contains very little information on what the actual problem is or what you're trying to accomplish. Could you provide more information on what it is you're trying to do here, maybe add ...

View answer