Use Deleted List Items
- Last UpdatedNov 24, 2023
- 2 minute read
Consider a scenario from a pharmaceutical company, say Telematics Pharma which has a set of critical business processes being controlled through the use of workflows.
Workflows are designed to automate the business processes. So, whenever any workflow is removed or deleted from the system, the company wishes to maintain a record of that. The record maintained must have details such as the Workflow Owner, Modified Date Time etc. Also there should be a provision to retrieve the deleted workflows in the form of Definition XML whenever required.
The Deleted List Items feature helps the company to achieve the above scenario.
Steps to achieve the scenario
-
Telematics Pharma has a workflow named WF_Check_Ingredients, which has to be discontinued due to some business requirements. However, a deletion record has to be maintained for the deleted workflow. Right-click and select Delete to delete the workflow.
-
Open Deleted List Items from the Enterprise Console menu.
-
A folder Workflow gets created in the Deleted List Items list.
-
Double-click the Workflow folder to see the record of the deleted workflow.
Find below a brief description of some of the important fields being displayed for the deleted list item:
Column Name
Description
Title
This field contains the title of the list item which has been deleted.
List Type
This field contains the type of the list item which has been deleted. For example, Workflow, Form.
User Id
The user id field is populated based on the provider configured for the repository:
-
Active Directory provider: Name is populated as the User Id.
-
Forms Provider: GUID is populated as the User Id.
-
ASP.NET Membership: Name/GUID/Integer (depending on the provider configuration)
Instance Xml
This field contains the form instance XML of the deleted list item.
Note: Each list has been internally mapped to a form and each list item is mapped to a run-time instance of the form. The Form Instance XML contains the run-time information of the form associated with the list.
Item Details
This field contains information about the list item like Title, Owner, Version History, Created Date Time, and Last Modified Date Time.
Audit Details
This field contains the audit history of the deleted list item.
Definition Xml
This field is applicable only for list types such as workflows, forms, and lists. The exported definition XML of the deleted list item can be used to restore the list item in any repository.
-
You can export the definition XML of the workflow using the option available in the context menu. The exported XML can then be used to import the workflow definition in any repository, if required.