Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/koltyakov/sp-sig-20180705-demo

PnP and SharePoint SIG / July 5th, 2018 / Demo Examples (List Items System Update options in Modern SPO Stack)
https://github.com/koltyakov/sp-sig-20180705-demo

api demo jsom rest sharepoint sig typescript

Last synced: about 2 months ago
JSON representation

PnP and SharePoint SIG / July 5th, 2018 / Demo Examples (List Items System Update options in Modern SPO Stack)

Awesome Lists containing this project

README

        

# List Items System Update options in Modern SPO Stack

The demo shows capabilities for SharePoint list items `System Update` using client-side APIs.

[Follow-up blog post](https://www.linkedin.com/pulse/list-items-system-update-options-sharepoint-online-andrew-koltyakov/)

## Prerequisites

- Node.js & PowerShell
- SharePoint Online

## Restore dependencies

```bash
npm install
```

Installs Node.js dependencies and PnP PowerShell (if not installed).

## Connect to SharePoint

```bash
npm run config -- --force
```

Prompts for SharePoint site url and credentials.

SharePoint online and SAML user credentials should be provided.

Use only test site collection.

## Provision demo artifacts

```bash
npm run provisioning
```

Provisions all the artifacts required for the demo.

## Demos

### JSOM (systemUpdate, updateOverwriteVersion)

```bash
npm run demo:1
```

### JSOM (raw XML package, systemUpdate)

```bash
npm run demo:2
```

### REST (validateUpdateListItem)

```bash
npm run demo:3
```

#### [Field data types fingerprints](./src/03-pnp/FieldTypes.md)

## Reset test data

```bash
npm run reset
```

Recreates all existing items in a test list using random users from the site and ramdom dates.