How to use the @pnp/sp-clientsvc.setProperty function in @pnp/sp-clientsvc

To help you get started, we’ve selected a few @pnp/sp-clientsvc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pnp / pnpjs / packages / sp-taxonomy / src / terms.ts View on Github external
public addTerm(name: string, lcid: number, isAvailableForTagging = true, id = getGUID()): Promise {

        const params = MethodParams.build()
            .string(name)
            .number(lcid)
            .string(sanitizeGuid(id));

        this._useCaching = false;
        return this.invokeMethod("CreateTerm", params,
            setProperty("IsAvailableForTagging", "Boolean", `${isAvailableForTagging}`))
            .then(r => extend(this.termSet.getTermById(r.Id), r));
    }
github pnp / pnpjs / packages / sp-taxonomy / src / termsets.ts View on Github external
public addTerm(name: string, lcid: number, isAvailableForTagging = true, id = getGUID()): Promise {

        const params = MethodParams.build()
            .string(name)
            .number(lcid)
            .string(sanitizeGuid(id));

        this._useCaching = false;
        return this.invokeMethod("CreateTerm", params,
            setProperty("IsAvailableForTagging", "Boolean", `${isAvailableForTagging}`))
            .then(r => assign(this.getTermById(r.Id), r));
    }

@pnp/sp-clientsvc

pnp - Provides core functionality to interact with the legacy client.svc SharePoint endpoint

MIT
Latest version published 5 years ago

Package Health Score

70 / 100
Full package analysis

Similar packages