Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To use the Outlook Mail connector, add the  <outlookmail.init>  element in your configuration before carrying out any other Outlook Mail operations. For every request to the Outlook Mail API, you should include an authorization token. Getting an access token requires you to have registered and identified your app, and obtained the appropriate authorization. For more information on authentication, see https://msdn.microsoft.com/office/office365/howto/common-app-authentication-tasks.

You must register your app with Azure AD before working with the Outlookmail Outlook Mail Connector. For more details see https://msdn.microsoft.com/office/office365/howto/add-common-consent-manually.

Code Block
languagexml
titleinit
 <outlookmail.init>
     <accessToken>{$ctx:accessToken}</accessToken>
     <refreshToken>{$ctx:refreshToken}</refreshToken>
     <clientSecret>{$ctx:clientSecret}</clientSecret>
     <clientId>{$ctx:clientId}</clientId>
     <resource>{$ctx:resource}</resource>
     <redirectUri>{$ctx:redirectUri}</redirectUri>
     <registryPath>{$ctx:registryPath}</registryPath>
     <intervalTime>{$ctx:intervalTime}</intervalTime>
     <apiUrl>{$ctx:apiUrl}</apiUrl>
     <apiVersion>{$ctx:apiVersion}</apiVersion>
</outlookmail.init>
Properties

accessToken: The value of the Access Token to access the Outlook Mail API via request.

refreshToken: An OAuth 2.0 refresh token. The application can use this token acquire additional access tokens after the current access token expires.

clientSecret: The value of the key that contains the client password.

...

apiVersion:The version of Outlook Mail API.

Now that you have connected to OutlookmailOutlook Mail, use the information in the following topics to perform various operations with the connector.

Related ServiceNow documentation

https://msdn.microsoft.com/office/office365/api/mail-rest-operations

Child pages (Children Display)