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 here:CreateCustomListwithAllColumnTypes.ps1

How does it work?

Download code here: 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

Applications

SharePoint apps are stand-alone applications that perform specific tasks on a SharePoint site. Apps can perform functions such as managing a discussion board or knowledge base, performing project management or time tracking tasks, or doing other workflow operations.

SharePoint

Product Suites

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


Essentials


Essentials Plus


Bamboo Premier


Project Management Suite


Knowledge Management Suite


External User Manager


SharePoint

Web Parts

Extend SharePoint beyond its out-of-the-box capabilities by tailoring it to your requirements with Bamboo Solution’s growing portfolio of Web Parts. Web Parts are the building blocks of pages on a SharePoint site that can be used to customize the user interface and content of a site page. 

SharePoint

Product Suites

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


Essentials


Essentials Plus


Bamboo Premier


Project Management Suite


Knowledge Management Suite


External User Manager


Office 365

Cloud Parts

Cloud Parts are functional components that extend your SharePoint environment whether it’s hosted, on-premises, or part of Microsoft Office 365. More than mere ports of existing software to the cloud, our Cloud Parts have been built from the ground up to take advantage of the best that the cloud has to offer.

SharePoint

Product Suites

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


Cloud Parts Suite for O365/SP Onl.


Featured Services

SharePoint Health Check

A SharePoint Health Check will identify the causes of issues and risks associated with your specific environment, and is custom tailored to provide you with the best recommendations to optimize your SharePoint environment.

SQL Health Check

Document recommendations relating to performance, stability, availability, or a specific focus you request of your SQL Server database instances.

My SharePointXperts

The truth is that each SharePoint skill may not be a full time job for many organizations, and it is nearly impossible for one person to do everything you need – so augment your team with SharePointXperts; providing the skill sets you need when you need them!