PowerShell script: Create all column types in the Custom List and create data for those items

Creating a SharePoint list along with all column types and related data is obviously helpful for users. However, it can take a long time, involving many steps to get to that point. Moreover, when creating a large number
of items using Quick Edit in the Tasks list, you are limited to dragging one item for copying, rather than using multiform data. In this article, we’ll show you how to create a Custom List with the following data types using PowerShell Script:

ID

Data
Type

1

Attachment

2

Single Text

3

Multiple Text

4

Choice

5

Multiple Choice

6

User

7

Multiple Users

8

Currency

9

Number

10

Lookup

11

Yes/No

12

Date Time

13

Hyperlink

14

Calculated Number

15

Calculated Date Time

Get the code:CreateCustomListwithAllColumnTypes.ps1

How does it work?

Download code: CreateCustomListwithAllColumnTypes.ps1

First of all, make sure you change account names on these lines in the CreateCustomListwithAllColumnTypes.ps1file:

Step 1: Run CreateCustomListwithAllColumnTypes.ps1 file with PowerShell.

Step 2: Input your chosen parameters as pictured below and click Enter.

Step 3: Go to your site to check out the results.

SharePoint Online

The cloud parts are functional components that extend your SharePoint Online environment in Microsoft 365.

Supports Classic and Modern sites for SharePoint Online/Microsoft 365

Small Business Pricing and Discounts

SharePoint

Top SharePoint Online Products

Experience greater power and savings by bundling our SharePoint apps and cloud parts.


Calendar Plus


Chart Plus


Knowledge Base


Project Management Central


Simple List Search

 

On-Premises Only

These web parts extend SharePoint beyond its out-of-the-box capabilities by tailoring it to your requirements with Bamboo Solution’s growing portfolio of SharePoint Web Parts.

SharePoint 2016, 2019, 2022 - Classic Pages Only

SharePoint

Top On-Premises Only Products

Experience greater power and savings by bundling our SharePoint apps and web parts.


Calendar Plus


Data Viewer


Password Change


Password Expiration


Password Reset

 

Our team of Microsoft 365 Technology Consultants helps you get the most out of your Microsoft technology, we have the best Microsoft 365 talent to streamline your organization.

Consulting to Streamline Your Department

M365 Plus

Managed Services

Microsoft 365

Consulting to Streamline Your Department


Human Resources


Information Technology


Marketing Campaigns


Healthcare


Sales

 

Our Consultants Have What You Need

Federal Contractors