“This field can have no more than 255 characters.” Error in Multiline Text Columns

Getting  “This field can have no more than 255 characters.” error on SharePoint Multiple lines of text  columns? Well, the fix is simple, we’ve the property  “Allow Unlimited length in document libraries” on Multiple lines of text fields. Once enabled, technically it can hold content up to 2 GB. We can also…

Read more

How to Rename SharePoint Folder Programmatically?

To rename a folder in SharePoint 2010, Navigate to the library where the folder exists. Click on “Edit Properties” Provide new name to the folder and click on “Save” button. How rename SharePoint folder programmatically?  To rename a folder in SharePoint document library programmatically, using C# object model code: Rename SharePoint Folder…

Read more

Add Site Collection Administrators Programmatically/PowerShell in SharePoint

SharePoint site collection administrators have Full rights to all sites within a site collection. Primary site collection administrator and Secondary site collection administrator specified in central administration will automatically become site collection admins. Its also possible to add multiple site collection admins for any SharePoint site collection. How to add a site…

Read more

SharePoint Workflows Inventory Report using PowerShell

In continuation with my other post: Workflows Inventory Report for SharePoint, which was done using C# object model code, This is a PowerShell version to find all workflows deployed in the SharePoint environment to generate the workflows Inventory report. Basically, this script iterates through all site collections-sites-List objects to fetch workflow data…

Read more

Delete Users from SharePoint Site Collection using PowerShell

Requirement: Delete user from site collection in SharePoint 2013  How to delete a user from site collection? So you don’t want a particular user to have access to SharePoint 2010 site anymore! Want to delete users from SharePoint 2010 site collection, isn’t it? Well, How to delete users from site collection? To…

Read more

How to Run C# Code from PowerShell?

Some time back, I wrote C# code for SharePoint Administration Governance purpose: Find Large Lists & Generate Report in SharePoint , which actually scans all lists in all sites and creates a report in CSV format. I feel PowerShell is more convenient than C# for couple of reasons: Because, PowerShell is quite…

Read more

How to Hide a List or Library in SharePoint?

Requirement: Hide a SharePoint list or library from the browser But why? Because, My custom application uses some configurations that should be stored and retrieved from a SharePoint list, but it must not be visible to end-users to avoid any mess. So, we have to hide our configuration list from users. We…

Read more

Create Permission Level Programmatically in SharePoint

While it’s relatively easy to create permission levels in SharePoint 2010 UI, We had 2000+ site collections in web applications, and a scripting/programmatic way to create permission levels would be the best choice. We wanted to do a SharePoint permission level customization by eliminating delete capability from contributor permission level. Lets copy…

Read more