Get-ItemWorkflowEvent
Returns entries from the history store notifying of workflow state change for the specified item.

Syntax

Get-ItemWorkflowEvent [-Item] <Item> [-Identity <String>] [-Language <String[]>]
Get-ItemWorkflowEvent [-Path] <String> [-Identity <String>] [-Language <String[]>]
Get-ItemWorkflowEvent -Id <String> [-Database <String>] [-Identity <String>] [-Language <String[]>]

Detailed Description

The Get-ItemWorkflowEvent command returns entries from the history store notifying of workflow state change for the specified item.
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions

Parameters

-Identity <String>

User that has been associated with the enteries. Wildcards are supported.
Aliases
Required?
false
Position?
named
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false

-Language <String[]>

Language that will be used as source language. If not specified the current user language will be used. Globbing/wildcard supported.
Aliases
Required?
false
Position?
named
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false

-Item <Item>

The item to have its history items returned.
Aliases
Required?
true
Position?
1
Default Value
Accept Pipeline Input?
true (ByValue, ByPropertyName)
Accept Wildcard Characters?
false

-Path <String>

Path to the item to have its history items returned - additionally specify Language parameter to fetch different item language than the current user language.
Aliases
Required?
true
Position?
1
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false

-Id <String>

Id of the the item to have its history items returned - additionally specify Language parameter to fetch different item language than the current user language.
Aliases
Required?
true
Position?
named
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false

-Database <String>

Database containing the item to have its history items returned - can work with Language parameter to narrow the publication scope.
Aliases
Required?
false
Position?
named
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.
  • Sitecore.Data.Items.Item

Outputs

The output type is the type of the objects that the cmdlet emits.
  • Sitecore.Workflows.WorkflowEvent

Notes

Help Author: Adam Najmanowicz, Michael West

Examples

EXAMPLE

1
PS master:\> Get-ItemWorkflowEvent -Path master:\content\home
2
Date : 2014-07-27 14:23:33
3
NewState : {190B1C84-F1BE-47ED-AA41-F42193D9C8FC}
4
OldState : {46DA5376-10DC-4B66-B464-AFDAA29DE84F}
5
Text : Automated
6
User : sitecore\admin
7
8
Date : 2014-08-01 15:43:29
9
NewState : {190B1C84-F1BE-47ED-AA41-F42193D9C8FC}
10
OldState : {190B1C84-F1BE-47ED-AA41-F42193D9C8FC}
11
Text : Just leaving a note
12
User : sitecore\admin
Copied!

Related Topics

Last modified 2yr ago