Delete Draft Version activity

An activity that deletes draft versions of files in SharePoint.


Delete Draft Version activity

Configure the Delete Draft Version activity

To configure the Delete Draft Version activity, do the procedure in this topic.

Examples

Good to Know

How to Start

  1. On the Application Explorer screen, do one of these:
  2. Do one of these:
    • Add an activity:
      1. In the Process Builder, go to the Activity Library, and open the SharePoint SharePoint icon tab.
      2. On the SharePoint SharePoint icon tab, drag the Delete Draft Version Delete Draft Version icon activity onto your process.
    • Change an activity:
      1. In your process, double-click your activity.

General Configuration

Specifies the basic settings for the Delete Draft Version activity.

Figure: General Configuration screen

General Configuration screen

Fields

Field Name Definition

Display Name

Function:
Specifies the activity name that shows in your process.
Accepted Values:
One line of text that can have spaces.
Default Value:
None
Accepts Process Data Variables:
No
Example:
This is a common configuration field that is used in many examples. Refer to:
  • Examples - Step-by-step use case examples, information about what types of examples are provided in the AgilePoint NX Product Documentation, and other resources where you can find more examples.

Description

Function:
Specifies an optional text description for your activity.
Accepted Values:
More than one line of text.
Default Value:
None
Accepts Process Data Variables:
No

Delete Draft Version Configuration

Specifies the draft versions of files to delete in SharePoint.

Figure: Delete Draft Version Configuration screen

Delete Draft Version Configuration screen

Fields

Field Name Definition

SharePoint

Function:
Specifies the access token that connects to your SharePoint site.
Accepted Values:
A list of access tokens configured for your environment.
Default Value:
None
Example:
Refer to:

Add Token Add Token icon

Opens this Screen:
Access Token for SharePoint
Function of this Screen:
Configure an access token to connect to SharePoint.
Example:
Refer to:

Site URL

Function:
Specifies the URL for your SharePoint site.
Accepted Values:
A valid SharePoint site URL.
Default Value:
None
Accepts Process Data Variables:
Yes
Example:

Library

Function:
Specifies the name of the SharePoint library.
Accepted Values:
A valid SharePoint library name.
Default Value:
None
Accepts Process Data Variables:
Yes

Include All SubFolders

Function:
Specifies whether this activity deletes the draft versions of the SharePoint files in the subfolders.
Accepted Values:
  • Deselected - Deletes the draft versions of the files in the SharePoint library. There is no effect on the file in the subfolders.
  • Selected - Deletes the draft versions of the files in the SharePoint library, as well as in the subfolders.
Default Value:
Deselected

Delete All Drafts / Filter Condition

Function:
Specifies whether to delete all the draft versions or specific draft versions of the SharePoint files.
Accepted Values:
  • Delete All Drafts - Deletes all the draft versions of the SharePoint files.
  • Filter Condition - Lets you build an expression to filter the specific draft versions of the SharePoint files to delete.
Default Value:
Delete All Drafts

Show Hidden Fields

Function:
Specifies whether you can use hidden columns in SharePoint to build your expression to delete the draft versions of the SharePoint files.
To Open this Field:
  1. In the Delete Draft Versions field, select Filter Condition.
Accepted Values:
  • Deselected - The SharePoint hidden columns are not available to build your expression.
  • Selected - The SharePoint hidden columns are available in the Fields box, so you can use them to build your expression to filter the SharePoint files.
Default Value:
Deselected

Code Snippet

Function:
Shows the code snippet the system creates for the WHERE clause.
To Open this Field:
  1. In the Delete Draft Versions field, select Filter Condition.
Accepted Values:
Read only.
Default Value:
None

Add Condition Add Condition icon

To Open this Field:
  1. In the Delete Draft Versions field, select Filter Condition.
Opens this Screen:
Delete Draft Version Configuration > Expression Builder

Delete Draft Version Configuration > Expression Builder

Configures a WHERE clause to filter the draft versions of the SharePoint files to delete.

Figure: Delete Draft Version Configuration > Expression Builder screen

Delete Draft Version Configuration Expression Builder screen

Fields

Field Name Definition

Fields

Function:
Specifies the name of the SharePoint column.
Accepted Values:
Read only.
Default Value:
A list of names in the specified list.
Accepts Process Data Variables:
No

Add Condition Add Condition icon

Function:
Creates a condition row.

Select Nest Type

Function:
Specifies the use of logical AND and OR operators to nest conditions for the WHERE clause.
  • And - Specifies the logical AND operator.
  • Or - Specifies the logical OR operator.

You must set the nest type first, before defining the condition for the where clause.

Column

Function:
Specifies the name of the SharePoint column.
Accepted Values:
A valid SharePoint column name.

Drag the name the column from the Fields field and drop it into the Column Name field to build a condition.

Default Value:
None
Accepts Process Data Variables:
No
Example:
Title

Comparer

Function:
Specifies the operator to use in your WHERE clause.
Accepted Values:
  • =
  • !=
  • Contains
  • Begins with
  • Is Not Null
  • Is Null
Default Value:
=

Value

Function:
Specifies the value for the column.
Accepted Values:
A valid column value.
Default Value:
None
Accepts Process Data Variables:
Yes
Limitations:

Some information about third-party integrations is outside the scope of the AgilePoint NX Product Documentation, and it is the responsibility of the vendors who create and maintain these technologies to provide this information. This includes specific business uses cases and examples; explanations for third-party concepts; details about the data models and input and output data formats for third-party technologies; and various types of IDs, URL patterns, connection string formats, and other technical information that is specific to the third-party technologies. For more information, refer to Where Can I Find Information and Examples for Third-Party Integrations?

Delete Delete icon

Function:
Deletes the row.