SharepointPlus ($SP) is a JavaScript library which offers some extended features for SharePoint entirely on client side (requires no server install). $SP will simplify your interactions with Sharepoint.
/!\ Starting from this release, SharePoint 2013 is not tested anymore. Moving forward, only SharePoint Online will be tested.
ChangeLog:
modify
to $SP().getManager()
$SP().isSPO()
$SP().ajax()
to better managed 401 error for the REST API calls$SP().cleanResult()
when dealing with a date ($SP().cleanResult("2022-01-19 00:00:00")
will now return "2022-01-19" instead of "2022-01-19 00:00:00")$SP().toDate()
to ignore the timezone (e.g. $SP().toDate("2022-01-19")
used to return different result based on the user's timezone, but now it returns the correct date at 00:00:00 in the current timezone)$SP().getVersions()
: only compatible with REST API, and it returns a different result/outcome than before$SP().hasREST()
: it will always return TRUE (it's possible to override the value) because REST API is around for a while now and I assume everyone is using at least SP2013 (see issue https://github.com/Aymkdn/SharepointPlus/issues/180)$SP().isMember()
for the url
option (see issue https://github.com/Aymkdn/SharepointPlus/issues/175)Change Log v6.1.5 (March 5, 2021)
$SP().list().get()
when using join
option and when there is no data in the left-list$SP().list().setReadOnly()
(see https://github.com/Aymkdn/SharepointPlus/issues/166)Change Log v6.1.4 (February 1, 2021)
$SP().list().removeAttachment()
$SP().list().getVersions()
$SP().list().restoreVersion()
$SP().list().stopWorkflow()
to not use iframe
and make it work with NodeJS Server Application$SP().list().addAttachment()
and $SP().list().removeAttachment()
will restore the previous version to avoid this buggy behavior$SP().list().get()
with option json:true
to return an object for each item instead of an array of keys$SP().list().getWorkflowID()
when there are more than 1 workflow for an item (see https://github.com/Aymkdn/SharepointPlus/issues/162)Change Log v6.1.3 (January 8, 2021)
$SP().getServerTime()
to return the server timeoverwrite
to $SP().list().createfile()
(see https://github.com/Aymkdn/SharepointPlus/issues/160)$SP().list().get()
was called with some outerjoin
and if there was a where
, then the outerjoin
was changed to innerjoin
… I don't recall why, but this behavior doesn't seem right so I removed itmerge
option with join
option for $SP().list().get()
merge
option with json
option for $SP().list().get()
view
option for $SP().list().get()
when a WHERE clause is defined in the view's server$SP().list().get()
deals with on
option when the parameters are IDssharepointplus-loader
to support $SP().getServerTime()
Change Log v6.1.2 (June 2, 2020)
\\
issue in $SP().parse()
(see https://github.com/Aymkdn/SharepointPlus/issues/136)Change Log v6.1.1 (April 25, 2020)
Change Log v6.1.0 (April 10, 2020)
$SP().toDate()
$SP().list().hasPermission()
to check the permissions of the current user with a list/libraryconst $SP = require('sharepointplus/dist/');
)viewCache
to $SP().list().get()
$SP().auth()
(see https://github.com/Aymkdn/SharepointPlus/wiki/Using-the-FedAuth-Cookie)$SP().getRequestDigest()
and lifetime from 24h to 1800secs$SP().parse()
when too many embedded brackets$SP().ajax()
when the request digest was incorrectChange Log v6.0.4 (January 13, 2020)
$SP().list().get()
when using json:true
Change Log v6.0.3 (December 30, 2019)
$SP().getRequestDigest()
when using on Node server$SP().addressbook()
was incorrectly named $SP().adressbook()
Change Log v6.0.2 (December 27, 2019)