You create a new Exchange service instance by using the Exchange Online feature activation.
You cannot use the K2 Service account to activate the Exchange Online feature. To activate the feature, you must be a K2 Administrator on your K2 environment, and have administrator rights on your AD instance, or be a global administrator on your AAD instance.
- Browse to the Features page in K2 Management.
- Select the Exchange Online feature and click New Instance.

- Specify a name and description for your new Exchange instance.

- Enter the EWS URL. The default EWS URL shown is universal for all Exchange Online tenants. Contact your Exchange administrator if you don't know your EWS URL.
- Select which authentication to use when authenticating users with Exchange.
Authentication | Instructions |
---|
OAuth | Use this setting to connect to Exchange Online. Nintex K2 Five (5.x) requires OAuth to connect to Exchange Online and you need to be an O365 Global Administrator to activate the feature. Your browser must allow popups when using OAuth to activate this feature. |
Domain | Enter the domain name. Your domain name is the server system name that hosts your business on your network, such as denallix.com. You can use the words based name or the Internet Protocol (IP) address. For Exchange Online and Office 365 this is typically [yourcompanyname].onmicrosoft.com. If you don't know your domain name, speak with your IT administrator. The Configuring Exchange page shows the configuration steps. 
For the Relying Parties step, a new window opens that allows you to sign into Azure Active Directory. Use the username and password of an AAD account with tenant global administrator rights to login. The AAD account needs to be part of the Global Administrator role in O365. More info here: https://support.office.com/en-us/article/about-office-365-admin-roles-da585eea-f576-4f55-a1e0-87090b6aaa9d. After the login you will be asked to trust the Exchange Online for K2 app. Click Accept to allow the app to access the necessary resources and services. After permission is granted, K2 adds the relying parties and redirects you to an Authorization Successful page. Return to the feature activation page and click Continue. Use the Reopen Tab button if you need to make changes. For the OAuth Token step, a new window opens asking you to login and trust the Exchange Online for K2 app again. Use the username and password of an AAD account with tenant global administrator rights to login. The AAD account needs to be part of the Global Administrator role in O365. Click Accept. After permission is granted, K2 will obtain your token and redirects you to an Authorization Successful page. Return to the feature activation page and click Continue. Use the Retry button to re-start the Configure Exchange page from the beginning. Once you've completed all four steps, click Done to complete activation of the Exchange instance. |
Email Address | Enter the email address and click Add. The K2 Service Account will use this email account to send and receive emails, tasks and appointments when executing the Exchange Online SmartObjects. For example, when an email is sent from within a workflow it will be sent from this account. The email address must be a valid email account on the Exchange service. Ensure the domain name and domain in the email address match. By default, the Email Address field is pre-populated with the email address of the person who is activating the feature. K2 recommends you set up or use a generic common mailbox rather than an individual mailbox. If the Email Address field is left empty and the feature is configured with OAuth authentication, a workflow executing an Exchange online method will fail with an “Exchange Impersonation SOAP header must be present for this type of OAuth token” error. |
Integrated | Use this setting to connect to your Exchange On-Premises Server. Selecting this option passes Windows credentials of the current identity to Exchange, using the Impersonate mode. See Authentication Modes for more information. |
Static | Use this setting to connect to your Exchange On-Premises Server. Specify the user name and password that this instance uses to communicate with Exchange. See Authentication Modes for more information. |
- Your new Exchange service instance is created once the Exchange Online feature is activated. Exchange SmartObjects are auto-generated when the service instance is created. See the Exchange Online Service Type and Exchange SmartObject Reference topics for more on the SmartObjects that are generated.