# EditItems **EventNames:** - EditItems_Restrictions - EditItems_Pre - EditItems_Post **Parameters** | Type | Name | Description | |---------------------------------------------------|------------|----------------------------------------------------------------------------------------------------------------------| | [Item[]](inv:powervault#code_reference/objects/item) | items | The items which should get / are in edit mode. | | bool | successful | **Post**:
The information whether the Web Service call was successful or not is only available in *Post* events. | :::{admonition} Unexpected Behaviour :class: warning The **EditItems event** is raised when: - clicking on *Open -> Edit* or directly "*Update* "for the item. - clicking on *Save* (not save and close) in the dialog then first CommitItem is fired, and **then EditItem** - activating in the the Bill of Materials Tab of the Item dialog a new item ::: **Examples:**\ EditItems_Restrictions: ```powershell Register-VaultEvent -EventName EditItems_Restrictions -Action 'RestrictEditItems' function RestrictEditItems($items) { #Write event code here } ``` EditItems_Pre: ```powershell Register-VaultEvent -EventName EditItems_Pre -Action 'PreEditItems' function PreEditItems($items) { #Write event code here } ``` EditItems_Post: ```powershell Register-VaultEvent -EventName EditItems_Post -Action 'PostEditItems' function PostEditItems($items, $successful) { #Write event code here } ```