SharePoint Online: Add New List Item using PowerShell

Requirement: When working with SharePoint Online, had a requirement to add new list items to a list from the PowerShell script. This blog post will cover how to create a list item in SharePoint Online using PowerShell. Here are some examples: SharePoint Online: PowerShell to Add List Item There are many situations…

Read more

Add Attachment Field in SharePoint 2013 List Form

Requirement: Add attachment column to a custom new/edit forms in SharePoint 2013. Solution: Create new custom list forms for New and Edit in SharePoint designer 2013, Add this code to the custom list form in the location where you want the attachment field to appear. Result: Here is the SharePoint custom edit…

Read more

Export-Import All Lists and Libraries from One Site to Another using PowerShell

The requirement is to copy and paste all SharePoint lists and libraries from one site to another. While “Save List as a Template” is one approach, it doesn’t work for larger lists, and it is time-consuming. Using the Central Administration export method also kills my time. Solution: We can copy and paste…

Read more

Expand-Collapse All Groups in SharePoint 2013 List Views using jQuery

SharePoint doesn’t have the ability to expand/collapse all groups in grouped list views. However, with jQuery we can bring Expand All-Collapse All buttons in SharePoint 2013 grouped list views. Just edit the grouped view page (Site Actions Gear >> Edit Page), add a “Script Editor” Web part and then place the below…

Read more

Default View Missing – Incremental Search Crawl Stuck – Solution

Problem: SharePoint incremental crawl stuck at a particular point of time – without changing the crawling status from: “Crawling Incremental”. No progress in search crawl log. No new items included in the search crawl. Root cause: Default view files/associations missing in some of the lists and libraries. When crawler crawls those lists…

Read more

Create SharePoint Link List using PowerShell

PowerShell script to create Link list in SharePoint: Refer the Microsoft documentation for all list template types: https://docs.microsoft.com/en-us/dotnet/api/microsoft.sharepoint.splisttemplatetype?view=sharepoint-server

Read more

Get SharePoint Site Collection, Web, List Objects from GUID

Requirement: On Nintex workflow databases, Ran a query to fetch workflow usage statistics, and the query gave GUIDs of SPSite, SPWeb and SPList objects! How to Get SharePoint Site Collection, Web, List Objects from ID? Our workflow reporting gave a bunch of GUIDs of sites, web and other objects. Well, from SQL…

Read more