Office 365 delete previous version

Note: This is an external action and may execute on servers running outside your data center Centralized locations used to house servers used by Nintex for remote storage, processing, or distribution of data. Nintex has a number of regional data centers available for Nintex for Office 365. For information about Nintex data centers and where your data center is located, contact your Nintex account or territory manager. region. Before implementing, consider performance and regional concerns where digital boundaries are an issue. For more information, see In-tenant and external actions.

Deletes previous versions (major and minor) of items in a document library on SharePoint Online.

Note: Document version history must be enabled on the document library.

Action settings

Do one of the following to open the Action configuration window:

  • Double-click the action.
  • Click on the action and then click Configure.

See Action configuration window for more information.

Field Description
Destination site URL

URL of the site containing the previous versions to be deleted.

List name

Name of the document library containing the previous versions to be deleted.

Previous versions to delete

Query to determine items to have previous versions deleted. Includes filters and subfolder options.

Select one of the following items for the query.

  • Query builder: Build a query to filter for previous versions to delete. View the CAML at any time by switching to the CAML Editor mode.
  • CAML editor: Create a more advanced query using XML encoding.

Select or clear the following check boxes.

  • Include subfolders: When selected, deletes previous versions for items within subfolders.

Select one of the following for Filters.

  • Delete all previous versions: Deletes previous versions for all items in the document library.
  • Delete previous versions only when the following is true:
    • Delete the previous versions when column / When column: Specify a column, select an operator, and specify a value.
    • Add filter rule: Add a filter.
    • Delete (): Delete a filter. Displayed for second and subsequent filters.
    • And / Or: Specify how to group sequential filters.
SharePoint Online URL

URL of the SharePoint Online website domain. Example: http://targetdomain.sharepoint.com.

Connection
  • Permissions required: Delete previous versions in the specified document library.
  • Connection type required: SharePoint Online: List & library. For more information about Connection types, see Connection types and Connector actions.
Username / Password

(Displayed for legacy actions not yet updated.) Unmanaged credentials.

  • Permissions required: Delete previous versions in the specified document library.

Note: As a best practice, manage credentials by updating actions to use connections.

All matched previous versions deleted

Boolean variable to store operation result. Returns "Yes" if all matched previous versions were successfully deleted.

List item ID

Collection or dictionary variable to store IDs of items corresponding to deleted previous versions.

List item URL

Collection or dictionary variable to store URLs of items corresponding to deleted previous versions.

For more information about how to use Lookups in configuration fields, see Lookups in action configuration fields.