List

List

Documentation

Code Example

// JavaScript
var $REST = require("gd-sprest");
$REST.List("[List Name]").execute(function(list) {
  // Code goes here
});

// TypeScript
import { List } from "gd-sprest";
List("[List Name]").execute(list => {
  // Code goes here
});

List Creation Info

Name Type Description
BaseTemplate Types.SPTypes.ListTemplateType The list template type.
CustomSchemaXml string The list schema xml.
DataSourceProperties Array<string> The list of data source properties.
Description string The list description.
DocumentTemplateType number The list document template type.
QuickLaunchOption number Option to display the list on the quick launch.
TemplateFeatureId string The list template feature id.
Title string The list name.

List Template

Name Type
AllowsFolderCreation boolean
Description string
FeatureId string
Hidden boolean
ImageUrl string
InternalName string
IsCustomTemplate boolean
ListTemplateTypeKind number
Name string
OnQuickLaunch boolean
Unique boolean

List Template Types

Name Value
AccessRequest 160
AdminTasks 1200
Agenda 201
AppDataCatalog 125
Announcements 104
CallTrack 404
Categories 303
Circulation 405
Comments 302
Contacts 105
CustomGrid 120
DataConnectionLibrary 130
DataSources 110
Decision 204
DesignCatalog 124
DeveloperSiteDraftApps 1230
DiscussionBoard 108
DocumentLibrary 101
Events 106
ExternalList 600
Facility 402
GanttTasks 150
GenericList 100
HealthReports 1221
HealthRules 1220
HelpLibrary 151
Holidays 421
HomePageLibrary 212
IMEDic 499
IssueTracking 1100
Links 103
ListTemplateCatalog 114
MasterPageCatalog 116
MaintenanceLogs 175
MeetingObjective 207
Meetings 200
MeetingUser 202
MySiteDocumentLibrary 700
Posts 301
NoCodePublic 122
NoCodeWorkflows 117
PictureLibrary 109
SolutionCatalog 121
Survey 102
Tasks 107
TasksWithTimelineAndHierarchy 171
TextBox 210
ThemeCatalog 123
ThingsToBring 211
Timecard 420
UserInformation 112
WebPageLibrary 119
WebPartCatalog 113
WebTemplateCatalog 111
Whereabouts 403
WorkflowHistory 140
WorkflowProcess 118
XMLForm 115