# UpdateItemStates
**EventNames:**
- UpdateItemStates_Restrictions
- UpdateItemStates_Pre
- UpdateItemStates_Post
**Parameters**
| Type | Name |Description |
| ----------------------------------------------------- | ----------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| [Item[]](inv:powervault#code_reference/objects/item) | items | The Items in Vault for which the lifefycle status changes/was changed.
**Restrictions and Pre:**
In these events you can get the future changes through the special properties `_NewState`, `_NewLifeCycleDefinition` and `_NewComment`.
**Post:**
In this event you can retrieve the information from previous events by using the properties `_OldState`, `_OldLifeCycleDefinition` and `_OldComment`. |
| bool | successful | **Post**:
The information whether the Web Service call was successful or not is only available in the *_Post* event. |
**Examples:**\
UpdateItemStates_Restrictions:
```powershell
Register-VaultEvent -EventName UpdateItemStates_Restrictions -Action 'RestrictUpdateItemStates'
function RestrictUpdateItemStates($items) {
#Write event code here
}
```
UpdateItemStates_Pre:
```powershell
Register-VaultEvent -EventName UpdateItemStates_Pre -Action 'PreUpdateItemStates'
function PreUpdateItemStates($items) {
#Write event code here
}
```
UpdateItemStates_Post:
```powershell
Register-VaultEvent -EventName UpdateItemStates_Post -Action 'PostUpdateItemStates'
function PostUpdateItemStates($items, $successful) {
#Write event code here
}
```