PnP-PowerShell icon indicating copy to clipboard operation
PnP-PowerShell copied to clipboard

WorkflowInstance cmdlet improvements

Open fowl2 opened this issue 3 years ago • 0 comments

Improvements to *-WorkflowInstance cmdlets

Get-WorkflowInstance:

  • add OutputType annotation
  • add getting site workflow instances
  • add get by instance guid
  • positional and piped list item and subscription parameters
  • get by list item object without specifying a list pipebind
  • added extra examples

Resume-WorkflowInstance:

  • improved implementation to retrieve just the requested instance instead of getting all and filtering
  • added examples

Start-WorkflowInstance:

  • return the Guid of the started instance
  • added extra examples
  • made list item optional, allowing start of site workflows
  • positional and piped subscription and list item parameter
  • added Initiator and InitiationParameters parameters

Stop:-WorkflowInstance:

  • added extra example
  • positional and piped instance parameter
  • verbose message now indicates cancel vs terminate

edit: The diffs look a bit better in Visual Studio

fowl2 avatar Aug 25 '20 17:08 fowl2