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

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

Undeclare the specified list item as a record

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

  • 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

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

good first issue new feature work in progress

All 8 comments

Hey @waldekmastykarz is date required to undeclare an item already declared as a record? Also in the description it's mentioned id: The ID of the list item to declare as record. Am I missing something? Please assign this to me.

You're right, the date doesn't belong here. Good catch. Other than that, all yours! 馃憦

Thank you

@waldekmastykarz I tested the api _api/SP_CompliancePolicy_SPPolicyStoreProxy_UnlockRecordItem in Postman and it is throwing -1, System.NotSupportedException Flight not enabled error, not sure why this is. Does it mean this api is not functional and we have to use _vti_bin/client.svc/ProcessQuery and do this action the old way?

I'm not sure if the API you mentioned is the same as what's being used by the PnP PowerShell cmdlet. If we can't verify that it's doing the same, then let's use CSOM instead for now. 馃憤

Sure, thanks @waldekmastykarz !

Hey @waldekmastykarz just an update, I am still working on this and it is working functionality wise. Just a bit slow getting the spec file ready. Hope it's okay was a crazy week :)

No problem and no rush. Take your time 馃憤

Was this page helpful?
0 / 5 - 0 ratings