Office 365 delete drafts

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 any drafts or minor versions of items in a document library on SharePoint Online.

Note: Document version history must be enabled for major and minor (draft) versions 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 item drafts to be deleted.

List name

Name of the document library containing the drafts to be deleted.

Drafts to delete

Query to determine drafts to be deleted. Includes filters and subfolder options.

Select one of the following items for the query.

  • Query builder: Build a query to filter for drafts 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 box.

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

Select one of the following for Filters.

  • Delete all drafts: Deletes drafts for all items in the document library.
  • Delete drafts only when the following is true:
    • Delete the drafts 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 drafts 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 drafts in the specified document library.

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

All matched drafts deleted

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

List item ID

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

List item URL

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

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