Skip to main content
You can add a Delete button that lets users delete a record and its attachments from an Appian record type.

Create a ProcessModel

1

Create a new ProcessModel

  1. Open the ABBYYFlexiCapture application in Appian Designer and click New → ProcessModel.
  2. In the dialog box that opens, complete the Name field and specify the path to the folder where the process is to be saved.
  3. Click Create & Edit.
2

Remove the unused nodes

Modify the process configuration by deleting the following nodes on the Process Modeler tab:
  • Start Event
  • End Event
  • XOR
  • Delete Folder
  • Delete Document
  • Delete from Data Store Entities
You can also double-click a node to modify it.
3

Create a confirmation interface

  1. Return to Appian Designer to add a dialog box that prompts the user to confirm record deletion.
  2. Click New → Interface and specify a name for the interface.
  3. Click Create & Edit.
4

Add the confirmation expression

In the code editor that opens, switch from Design View to Expression View and paste the following expression:
5

Add the cancel input variable

In the Interface Input dialog box, add a cancel variable of type Boolean.
6

Add the process model variables

  1. Save the interface and return to editing the process model.
  2. Click File → Properties and add the following variables on the Variables tab:
    • recordId of type Number (Integer)
    • DataStoreEntity of type Data Store Entity (a constant linking the data store to the data type)
7

Attach the confirmation interface

  1. Open the Process Start Form tab, select the Select an interface option, and add the interface you created to ask for user confirmation when deleting a record.
  2. In the dialog box that opens, click Yes to import the interface variables into the list of process variables.
You can then use the added variables in the process nodes:
8

Save and publish the process

After you finish configuring the process, click File → Save & Publish, or press Ctrl+Alt+S.

Add the process model to a record type

Add the process to the record type as a related action.
1

Open the record type

In Appian Designer, open Record Type.
2

Create a related action

  1. In the dialog box that opens, click New Related Action.
  2. Complete the ProcessModel field (enter the name of the process you created).
  3. Specify the input variables of the process:
    • For Credit Card Application: Constant_CreditApplication_DSE
    • For Account Payable Records: Constant_invoiceProcessing_DSE
3

Add the related action to the record view

Add the new related action to the appropriate View Record Type.
Now, when viewing records on the Summary tab in Tempo, a Delete button appears at the top. When the user clicks this button, a confirmation dialog box asks whether they really want to delete the record. Clicking Yes in this dialog box deletes the record.
The user needs to refresh the browser window to confirm that the record has been completely deleted.

Disable the Delete action in the Summary View

To make the deletion button unavailable to the user, disable the Delete action in the Summary View properties.
1

Open the application

Open the ABBYYFlexiCapture application in Appian Designer.
2

Open the record type

Open the record type that you want to modify.
3

Disable the related action shortcut

In the dialog box that opens, click Summary View and disable the Related Action Shortcuts option next to the Delete action.
4

Save the changes

Click OK and save the changes you made to the record type.
Now, when records are viewed in Tempo, the Delete button no longer appears.