nvm --version
nvm ls --no-alias
nvm current
See: | |
- https://robertschouten.com/2018/04/30/update-file-metadata-with-rest-api-using-validateupdatelistitem-method/ | |
- http://blog.arvosys.com/2018/07/06/list-items-system-update-options-in-sharepoint-online/index.html | |
FieldValues = | |
[ | |
// Text field (single line and note) | |
{ FieldName: "TextField", FieldValue: "123" }, | |
// Number field |
{ | |
"isFallbackPublicClient": true, | |
"publicClient": { | |
"redirectUris": [ | |
"https://login.microsoftonline.com/common/oauth2/nativeclient" | |
] | |
}, | |
"web": { | |
"implicitGrantSettings": { | |
"enableIdTokenIssuance": false |
import { sp, SearchResults, SearchQueryInit, ISearchResult } from "@pnp/sp/presets/all"; | |
console.clear(); | |
function parseUserFormattedString(ownerString) { | |
const owners = ownerString.split(";") | |
.map( (owner) => { | |
const parts = owner.trim().split("|"); | |
const oidstr = parts.splice(2,3).join("").trim(); | |
const oids = oidstr.split(" "); | |
return { |
import { sp, ClientsidePageFromFile, PromotedState, IListItemFormUpdateValue, IClientsidePage, IFileInfo } from "@pnp/sp/presets/all"; | |
console.clear(); | |
function SafeFilename(fileName: string, convertToLower?: boolean): string { | |
const name = (fileName || "") | |
.replace(/[^ a-zA-Z0-9-_]*/gi, "") | |
.replace(/ /gi, "-") | |
.replace(/-*$/gi, "") | |
.replace(/[-]{2,}/gi, "-"); | |
return convertToLower ? name.toLowerCase() : name; |
import { sp } from "@pnp/sp/presets/all"; | |
import "@pnp/sp/taxonomy"; | |
import { taxonomy, ITerm, ITermData } from "@pnp/sp-taxonomy" | |
(async () => { | |
interface ITermDataNode { | |
Id: string; | |
ParentTermId?: string; | |
Name: string; | |
Path: string; |
json = [ | |
{ | |
key: 1, | |
id: 1, | |
label: "Parent #1", | |
isexpanded: false, | |
children: [ | |
{ | |
key: 11, | |
id: 11, |
import { sp } from "@pnp/sp/presets/all"; | |
(async () => { | |
console.clear(); | |
const doPagedQuery = (folder: string, rowLimit: number, scope: "Files"|"Folders", pageToken?: string) => { | |
const list = sp.web.getList('/sites/EDMS_InformationGovernance/Shared%20Documents'); | |
return list.renderListDataAsStream({ | |
ViewXml: ` | |
<View Scope="RecursiveAll"> |