Cli-microsoft365: New command: check out file

Created on 27 Jan 2018  路  11Comments  路  Source: pnp/cli-microsoft365

Check out the specified file

  • command: spo file checkout -w|--webUrl <webUrl> -u|--url [url]
  • webUrl: The URL of the site where the file is located
  • url: server- or site-relative URL of the file to check out
  • specify either the ID or the URL of the file to check out but not both
  • requires connection to a SharePoint site

For more information see the Set-PnPFileCheckedOut cmdlet

good first issue new feature work in progress

All 11 comments

Can I pick this up please?

Of course! Appreciate your help! 馃憤

Quick Q - what is "id" in this case? guid of the listitem or file or list item id? I am not aware of any way to get a file just using a web and an id. One could iterate round a known list checking guids, or get an item by id from a list? The referenced Set-PnPFileCheckedOut cmdlet only accepts a url?

You're right. It should be URL only. I'll adjust the spec. 馃憤

Unfortunately, @PlanetWilson can't continue his work on this item. Open for picking again.

@waldekmastykarz I can complete this one. Feel free to assign it to me.

Cool! Thanks @VelinGeorgiev!

Hey @waldekmastykarz

Is Id the UniqueId (GUID) of the document because there is a difference between ID and UniqueId and it could be misunderstood by someone?

Which one do we need in the underlying API call?

The underlying API uses UniqueId

Then let's use that and clarify that in the command description

Was this page helpful?
0 / 5 - 0 ratings