SharePoint/PnP-JS-Core

Update SPItem without increment version

Closed this issue · 5 comments

Thank you for reporting an issue, suggesting an enhancement, or asking a question. We appreciate your feedback - to help the team understand your needs please complete the below template to ensure we have the details to help. Thanks!

Please check out the Developer Guide to see if your question is already addressed there. This will help us ensure our documentation covers the most frequent questions.

Category

[ ] Enhancement

[ ] Bug

[X] Question

Hi all,

Is it possible to update a SPItem without modify version ? (like UpdateOverwriteVersion in server mode)

Thanks a lot !!

Best regards

As far as I know, UpdateOverwriteVersion or SystemUpdate are not currently supported with REST API.
But we can vote for this.

Thanks !!
Is it possible to disable list versionning by PNP JS ?

This should do the trick:

pnp.sp.web.lists.getByTitle(`[List title]`)
  .update({
    EnableVersioning: false
  })
  .then(console.log);

MANY THANKS !!

Going to close this as answered. Thanks folks! Please reopen if you need to continue the conversation.