Workflow Tokens
Tokens resolve and produce values at policy run-time. Many tokens are also context-sensitive; such tokens will only be available in certain sequence contexts such as SharePoint Site or Email message. The list below shows the tokens available in the editor, based on their context.
Root Context:
%time-zone% - Text - Name of the current time zone
%domain% - Text - Name of the domain where the policy is running
%user-id% - Text - User id of the account currently running this policy (may be the service account)
%computer% - Text - Name of the computer where the policy is currently running
%os-version% - Text - OS version details of the server where the policy is running
%os-bits% - Number - Number of bits (32, 64, 128...) for OS where this policy is running
%now-time% - Date - Current time of day in 24-hour format
%now-date% - Date - Current date in short format
%now-date-time% - Date - Current date and time in short format
%now-data-time-utc% - Date - Current date and time UTC in short format
%policy-started% - Date - Date and time when this policy started executing
%policy-workflow% - Text - Name of the workflow that is currently being executed
%policy-sequence% - Text - Name of the workflow sequence that is currently processing
%policy-loop-count% - Number - Number of times the last loop step has been executed
%prop(???)% - Text - Value of a workflow property (replace ??? with the property name)
%global-prop(???)% - Text - Value of a global property that persists across sequences (replace ??? with the property name)
%owner-alias% - Text -Owner alias from the Discover database
%owner-display-name - Text -Owner display name from the Discover database
%owner-email% - Text -Owner email address from the Discover database
%owner-extended-attribute(???)% - Text -Value of given owner extended attribute (replace ??? with the attribute name)
%owner-first-name% - Text -Owners first name from the Discover database
%owner-last-name% - Text -Owner last name from the Discover database
%owner-office% - Text -Owner office from the Discover database
%parameter(???)% - Text - Value of a parameter passed into the workflow from the policy
%pending-policy-id% - Date - The pending policy ID
%regex-capture(#)% - Text - The text captured by the REGEX pattern matches the latest "Test Token Values" or "Test Property" decision (replace # with the capture index 1,2,3...)
%regex-match% - Text - The matching text returned from the REGEX pattern match from the last "Test Token Values" or "Test Property" decision
%result-id% - Text - Search Result Id for Discover search results returned true within this sequence
Person Context
(Root tokens listed above)
%person-label% - Text - Label of the managed person in the context of this sequence
%person-display-name% - Text - Display name of the managed person in the context of this sequence
%person-first-name% - Text - First name of the managed person in the context of this sequence
%person-middle-name% - Text - Middle name of the managed person in the context of this sequence
%person-last-name% - Text - Last name of the managed person in the context of this sequence
%person-office% - Text - Office of the managed person in the context of this sequence
%person-email% - Text - Email address of the managed person in the context of this sequence
Server Context
(Root tokens listed above)
%server-label% - Text - Label of the managed server in the context of this sequence
%server-name% - Text - Name of the managed server in the context of this sequence
%server-dns-name% - Text - DNS name of the managed server in the context of this sequence
Mailbox Context
(Root tokens listed above)
%mailbox-label% - Text - Label of the managed Mailbox in the context of this sequence
%mailbox-name% - Text - Name of the managed Mailbox in the context of this sequence
%mailbox-location% - Text - Location of the managed Mailbox in the context of this sequence
%mailbox-server% - Text - Server used to connect to the managed Mailbox in the context of this sequence
Online Archive Context
(Root tokens listed above)
%ol-archive-label% - Text - Label of the managed Online Archive in the context of this sequence
%ol-archive-name% - Text - Name of the managed Online Archive in the context of this sequence
%ol-archive-location% - Text - Location of the managed Online Archive in the context of this sequence
%ol-archive-server% - Text - Server used to connect to the managed Online Archive in the context of this sequence
PST File Context
(Root tokens listed above)
%pst-file-label% - Text - Label of the managed PST file in the context of this sequence
%pst-file-name% - Text - Name of the managed PST file (including the path)
%pst-file-name-only% - Text - Name of the managed PST file (excluding the path)
%pst-file-path% - Text - Path of the managed PST file (excluding the name)
%pst-file-size% - Number - Size of the managed PST file in bytes
%pst-file-modified% - Date - Modified date of the managed PST file
%pst-file-created% - Date - Created date of the managed PST file
Email Folder Context
(Root tokens listed above)
%estore-name% - Text - Name of the email store
%estore-label% - Text - Label for the email store
%estore-location% - Text - Location for the email store
%estore-type% - Text - This token resolves to a description of the type of the email store
%estore-eid% - Text - EID for the email store
%efolder-name% - Text - Name of the email folder (excluding the path)
%efolder-path% - Text - Path and name of the email folder
%efolder-size% - Number - Size of the contents of the email folder in bytes
%efolder-total-size% - Number - Size of the email folder and its subfolders in bytes
%efolder-msg-count% - Number - Number of messages in the email folder
%efolder-folder-count% - Number - Number of sub-folders in the email folder
Email Message Context
(Email Folder tokens listed above)
%email-eid% - Text - EID of the email message
%email-subject% - Text - Subject of the email message
%email-sender% - Text - Sender of the email message
%email-sender-address% - Text - Address of the sender of the email message
%email-to-list% - Text - List of recipients in the to list of the email message
%email-cc-list% - Text - List of recipients in the cc list of the email message
%email-bcc-list% - Text - List of recipients in the bcc list of the email message
%email-type% - Text - Type of the email message
%email-msg-class% - Text - Message class of the email message
%email-size% - Number - Size of the email message in bytes
%email-categories% - Text - List of categories of the email message
%email-attach-count% - Number - Number of attachments in the email message
%email-has-attach% - Boolean - Indicates whether or not this email message has attachments
%email-created% - Date - Creation date of the email message
%email-received% - Date - Received date of the email message
%email-modified% - Date - Modified date of the email message
%email-sent% - Date - Sent date of the email message
%email-start% - Date - Start date of the email message (calendar, task, journal)
%email-end% - Date - End date of the email message (calendar, task, journal)
%email-completed% - Date - Completed date of the email message
%email-due% - Date - Due date of the email message
%email-is-recurring% - Boolean - Indicates whether this email message is recurring (calendar, task)
%email-is-read% - Boolean - Indicates whether this email message is read
%email-importance% - Text - Importance level of this email message
%email-sensitivity% - Text - Sensitivity level of this email message
%email-keyword-hits% - Text - Keyword matches found the last time 'Test Message Contains' returned true within this sequence
%email-followup-text% - Text - Follow-up text of the email message
Email Attachment Context
(Email Message tokens listed above)
%attach-num% - Number - Number of this email attachment
%attach-rid% - Text - Record id of this email attachment
%attach-label% - Text - Label or name of of this email attachment
%attach-type% - Text - Type of this email attachment
%attach-size% - Number - Size of this email attachment in bytes
%attach-created% - Date - Creation date of this email attachment
%attach-modified% - Date - Modification date of this email attachment
Managed Path Context
(Root tokens listed above)
%path-label% - Text - Label assigned to the managed path in the context of this sequence
%path-root-path% - Text - Root path assigned to the managed path in the context of this sequence
%path-folder-path% - Text - Current path of the folder being processed
%path-folder-name% - Text - Current name of the folder being processed
%path-size% - Number - Size of the contents of the file folder in bytes
%path-total-size% - Number - Size of the file folder and its subfolders in bytes
%path-file-count% - Number - Number of files in the file folder
%path-folder-count% - Number - Number of sub folders in the file folder
Folder Context
(Root tokens listed above)
%path-label% - Text - Label assigned to the managed path in the context of this sequence
%path-root-path% - Text - Root path assigned to the managed path in the context of this sequence
%path-folder-path% - Text - Current path of the folder being processed
%path-folder-name% - Text - Current name of the folder being processed
%path-size% - Number - Size of the contents of the file folder in bytes
%path-total-size% - Number - Size of the file folder and its subfolders in bytes
%path-file-count% - Number - Number of files in the file folder
%path-folder-count% - Number - Number of sub folders in the file folder
%folder-modified% - Date - Modified date of the folder
%folder-created% - Date - Created date of the folder
File Context
(Folder tokens listed above)
%file-name% - Text - Name of the file (including the path)
%file-name-only% - Text - Name of the file only (excluding the path)
%file-extension% - Text - Extension of the file (Example: Name.txt => .txt)
%file-modified% - Date - Modified date of the file
%file-created% - Date - Created date of the file
%file-size% - Number - Size of the file in bytes
%file-keyword-hits% - Text - Keyword matches found the last time 'Test File Contains' returned true within this sequence
Managed SharePoint Site Context
(Root tokens listed above)
%sp-site-label% - Text - Label of the managed SharePoint site in the context of this sequence
%sp-site-url% - Text - Url of the SharePoint site
%sp-site-title% - Text - Title of the SharePoint site
%sp-site-desc% - Text - Description of the SharePoint site
%sp-site-id% - Text - Id of the SharePoint site
%sp-site-author% - Text - Author of the SharePoint site
%sp-site-is-default% - Boolean - Indicates whether or not the SharePoint site is the default of the site collection
%sp-site-allow-anonymous% - Boolean - Indicates whether or not the SharePoint site allows anonymous access
%sp-site-language% - Text - Language of the SharePoint site
%sp-site-created% - Date - Created date of the SharePoint site
%sp-site-modified% - Date - Date an item was last modified in the SharePoint site
SharePoint List
(SharePoint Site tokens listed above)
%sp-list-label% - Text - Label of this SharePoint list
%sp-list-title% - Text - Title of the SharePoint list
%sp-list-url% - Text - Url of the SharePoint list
%sp-list-desc% - Text - Description of the SharePoint list
%sp-list-author% - Text - Author of the SharePoint list
%sp-list-id% - Text - Id of the SharePoint list
%sp-list-item-count% - Number - Number of items in the SharePoint list
%sp-list-template% - Text - Template of the SharePoint list
%sp-list-created% - Date - Created date of the SharePoint list
%sp-list-modified% - Date - Date an item was last modified in the SharePoint list
%sp-list-last-delete% - Date - Date an item was last deleted from the SharePoint list
%sp-list-quick-launch% - Boolean - Indicates whether the list is displayed on Quick Launch
%sp-list-is-hidden% - Boolean - Indicates whether the list is hidden
%sp-list-is-app-list% - Boolean - Indicates whether the list treated as a top level navigation
%sp-list-is-private% - Boolean - Indicates whether the list is private with restricted permissions
%sp-list-is-throttled% - Boolean - Indicates whether the list's total number of items exceeds the upper limit
%sp-list-everyone-views-items% - Boolean - Indicates whether everyone can view documents or attachments
%sp-list-allows-delete% - Boolean - Indicates whether the list can be deleted
%sp-list-irm-enabled% - Boolean - Indicates whether Information Rights Management (IRM) is enabled
%sp-list-irm-expire-enabled% - Boolean - Indicates whether Information Rights Management (IRM) expiration is enabled
%sp-list-irm-reject-enabled% - Boolean - Indicates whether Information Rights Management (IRM) rejection is enabled
%sp-list-attach-enabled% - Boolean - Indicates whether attachments can be added to items
%sp-list-target-audience-enabled% - Boolean - Indicates whether audience targeting is enabled
%sp-list-require-approval% - Boolean - Indicates whether to require content approval
%sp-list-versions-enabled% - Boolean - Indicates whether Versioning is enabled
%sp-list-minor-versions-enabled% - Boolean - Minor versioning enabled
%sp-list-force-checkout% - Boolean - Indicates whether to require check out for edit
%sp-list-content-types-enabled% - Boolean - Indicates whether management of content types is allowed
%sp-list-folder-create-enabled% - Boolean - Indicates whether the New Folder command available
%sp-list-search-results% - Boolean - Indicates whether is Visible in search results
%sp-list-allow-offine-sync% - Boolean - Indicates whether offline client availability is allowed
%sp-list-is-site-assets% - Boolean - Indicates whether the list is a site assets library
%sp-list-quick-edit% - Boolean - Indicates whether to allow quick edits in grid
%sp-list-launch-forms-dialog% - Boolean - Indicates whether to Launch forms in a dialog
%sp-list-allow-rss-feeds% - Boolean - Indicates whether RSS feeds are allowed
SharePoint Item Context
Note 1: Some SharePoint item types may not return a file size (i.e. calendar, contact, etc)
(SharePoint List tokens listed above)
%sp-item-label% - Text - Label of this SharePoint item
%sp-item-name% - Text - Display name of this SharePoint item
%sp-item-id% - Text - Id of this SharePoint item
%sp-item-guid% - Text - Unique id of this SharePoint item
%sp-item-url% - Text - Url of this SharePoint item
%sp-item-is-new% - Boolean - Indicates whether this SharePoint item is considered new
%sp-item-has-files% - Boolean - Indicates whether this SharePoint item contains files or attachments
%sp-item-type% - Text - Content type of this SharePoint item
%sp-item-author% - Text - Author of this SharePoint item
%sp-item-editor% - Text - Editor of this SharePoint item
%sp-item-created% - Date - Created date of this SharePoint item
%sp-item-modified% - Date - Modified date of this SharePoint item
%sp-item-is-system% - Boolean - Indicates whether this SharePoint item is considered a system item
%sp-item-field(???)% - Text - Value of a SharePoint item field (replace ??? with the field name)
SharePoint Folder Context
(SharePoint List tokens listed above)
%sp-folder-label% - Text - Label of this SharePoint folder
%sp-folder-name% - Text - Display name of this SharePoint folder
%sp-folder-path% - Text - Path of this SharePoint folder
%sp-folder-guid% - Text - Unique id of this SharePoint folder
%sp-folder-url% - Text - Url of this SharePoint folder
%sp-folder-file-count% - Number - Number of files in this SharePoint folder
SharePoint File Context
(SharePoint Item and Folder tokens listed above)
%sp-file-label% - Text - Label of this SharePoint file
%sp-file-name% - Text - Name of this SharePoint file
%sp-file-name-only% - Text - Name of this SharePoint file without the extension
%sp-file-extension% - Text - Extension of this SharePoint file (including . )
%sp-file-url% - Text - Url of this SharePoint file
%sp-file-size% - Number - Size of this SharePoint file in bytes
%sp-file-version% - Number - Version number of this SharePoint file
%sp-file-author% - Text - Author of this SharePoint file
%sp-file-e-tag% - Text - E-Tag assigned to this SharePoint file
%sp-file-status% - Text - Published status of this SharePoint file
%sp-file-guid% - Text - Unique id of this SharePoint file
%sp-file-created% - Date - Created date of this SharePoint file
%sp-file-modified% - Date - Modified date of this SharePoint file
%sp-file-is-checked-out% - Boolean - Indicates whether this SharePoint file is checked out
%sp-file-checked-out-on% - Date - Checked out date of this SharePoint file
%sp-file-checked-out-by% - Text - Name of the user who last checked out this SharePoint file
%sp-file-checked-in-comments% - Text - Check-in comments for this SharePoint document
%sp-file-is-current-version% - Boolean - Indicates whether this is the current version of this SharePoint file
%sp-file-is-system% - Boolean - Indicates whether this SharePoint file is considered a system file
Goggle Drive Context
(Root tokens listed above)
%path-label% - Text - Label assigned to the managed path in the context of this sequence
%path-root-path% - Text - Root path assigned to the managed path in the context of this sequence
Gmail Context
(Root tokens listed above)
%estore-label% - Text - Label assigned to the managed mailbox in the context of this sequence
%estore-name% - Text - Name assigned to the managed mailbox in the context of this sequence
OneDrive Folder Context
(root tokens listed above)
%sp-site-url% - Text - URL of the site
%sp-folder-label% - Text - Label of this OneDrive folder
%sp-folder-name% - Text - Display name of this OneDrive folder
%sp-folder-path% - Text - Path of this OneDrive folder
%sp-folder-url% - Text - URL of this OneDrive folder
%sp-folder-file-count% - Number - Number of files in this OneDrive folder
OneDrive File Context
Note 1: Many properties duplicate SharePoint since OneDrive uses SharePoint Storage
Note 2: Some OneDrive item types may not return a file size (i.e. calendar, contact, etc)
(root tokens listed above)
%sp-file-author% - Text - Author of this file
%sp-file-checked-in-comment% - Text - Check-in comments for this document
%sp-file-checked-out-on% - Date - Checked out date of this file
%sp-file-checked-out-by% - Text - Name of the user who last checked out this file
%sp-file-created% - Date - Created date of this file
%sp-file-e-tag% - Text - E-Tag assigned to this file
%sp-file-extension% - Text - Extension of this file (including . )
%sp-file-guid% - Text - Unique id of this file
%sp-file-is-checked-out% - Boolean - Indicates whether this file is checked out
%sp-file-is-current-version% - Boolean - Indicates whether this is the current version of this file
%sp-file-keyword-hits% - Boolean - keyword matches found the last item ‘Test File Contains’ returned true within this sequence
%sp-file-label% - Text - Label of this file
%sp-file-modified% - Date - Modified date of this file
%sp-file-name% - Text - Name of this file
%sp-file-name-only% - Text - Name of this file without the extension
%sp-file-size% - Number - Size of this file in bytes
%sp-file-status% - Text - Published status of this file
%sp-file-url% - Text - Url of this file
%sp-file-version% - Number - Version number of this file
Sub-Tokens
Tokens have extended functions call sub-tokens. Sub-tokens begin with a period '.'. To properly format the token.sub-token function, the sub-token should be within the token delimiters. For example, when we need to get the current month, using the sub-token .month, the full token.sub-token should be %now-date.month%. NOTE: not all sub-tokens may be able to operate with all data.