Cli-microsoft365: New command: Declare list item as record

Created on 27 Jan 2019  路  10Comments  路  Source: pnp/cli-microsoft365

Declare the specified list item as a record

command: spo listitem record declare -u|--webUrl <webUrl> -i|--id <id> -l|--listId [listId] -t|--listTitle [listTitle] -d|--date [date]

  • webUrl: The URL of the site where the list is located
  • id: The ID of the list item to declare as record
  • listId: The ID of the list where the item is located. Specify listId or listTitle but not both
  • listTitle: The title of the list where the item is located. Specify listId or listTitle but not both
  • date: Record declaration date

For more information see: https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/set-pnplistitemasrecord?view=sharepoint-ps

good first issue new feature work in progress

Most helpful comment

Fire in the hole - PR heading your way @waldekmastykarz

That was fun! Looking forward to your feedback, and jumping onto the next one. Teams fun settings here we come.

@rabwill thanks for the morale support! ;)

All 10 comments

@waldekmastykarz G'day Waldek, I'd love to pick this up as my first contribution! Any chance you can assign it to me?

All yours! Looking forward to your PR! Please, don't hesitate to reach out if you have any questions 馃憦

Brilliant! Thanks Waldek will do!

@waldekmastykarz From the looks of it, it does not appear as though we are able specify a date when declaring a record.

image

Possibly a rookie error, so just thought I'd call this out in case I am looking in the wrong spot.

Hey @arnieraju g鈥檇ay :)
I think we are in the same boat with this one. We may have to mimic the call made by Pnp cmdlet for record inplace management. I could not find an api to undeclare as well.

@waldekmastykarz Yep, looks like I was looking in the wrong place. Again, probably a rookie observation :) but it looks like the PowerShell and CSOM are using the same underlying libraries.

I've unpacked the calls they use and am going to use the following for implementation:

image

image

And thanks for the tip @rabwill

Wohoo @arnieraju !Yes that鈥檚 it, fiddler is your best friend 馃槉

Fire in the hole - PR heading your way @waldekmastykarz

That was fun! Looking forward to your feedback, and jumping onto the next one. Teams fun settings here we come.

@rabwill thanks for the morale support! ;)

Awesome! I'll have a look at your PR asap. Appreciate your help 馃憦

Was this page helpful?
0 / 5 - 0 ratings