pnp / pnpjs

Fluent JavaScript API for SharePoint and Microsoft Graph REST APIs
https://pnp.github.io/pnpjs/
Other
753 stars 305 forks source link

Save document as draft/minor version #2965

Closed shaipetel closed 5 months ago

shaipetel commented 5 months ago

What version of PnPjs library you are using

3.x

Minor Version Number

Any

Target environment

All

Additional environment details

React app

Question/Request

Is there an api to save a document (not a page) as draft or minor version, then publish the document to a major version? Searched the docs and only found api for pages. any assistance would be appreciated!

patrick-rodgers commented 5 months ago

I believe if you have versions enabled and save your changes but not check-in [checkin()] that will create minor versions. Have you tested it out?

shaipetel commented 5 months ago

will try and update back, thanks!

bcameron1231 commented 5 months ago

Closing this due to inactivity. If you continue to have issues please open a new issue, link to this issue, and provide any additional details available. Thanks!

github-actions[bot] commented 4 months ago

This issue is locked for inactivity or age. If you have a related issue please open a new issue and reference this one. Closed issues are not tracked.