---
id: object/page/1680
type: object
title: Page 1680 "Email Logging Setup"
summary: Page 1680 "Email Logging Setup" in EmailLogging (Microsoft.CRM.EmailLoggin). Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - page
  - emaillogging
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 2e9895e26d00ea896a4ebc5759aa73628df18ab5cc4b13f260b6089675d053b6
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EmailLogging/app/src/pages/EmailLoggingSetup.Page.al
    title: src/Apps/W1/EmailLogging/app/src/pages/EmailLoggingSetup.Page.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/marketing-set-up-email-logging
    title: Set up email logging
    date: null
    commit: null
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/marketing-set-up-email-logging
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/relationship-management/manage-sales-opportunities
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: page
object_id: 1680
name: Email Logging Setup
caption: Email Logging
namespace: Microsoft.CRM.EmailLoggin
app: EmailLogging
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids:
  - docs/learn-smb-docs/business-central/marketing-set-up-email-logging.md
counts:
  fields: 0
  procedures: 3
  events: 0
  subscribers: 0
  controls: 6
  actions: 8
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 3
  called_by: 1
  implements: 0
---

# Page 1680 "Email Logging Setup"

> Page 1680 "Email Logging Setup" in EmailLogging (Microsoft.CRM.EmailLoggin). Introduced in BC29, still in BC30.

EmailLogging · Microsoft.CRM.EmailLoggin · captioned "Email Logging" · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EmailLogging/app/src/pages/EmailLoggingSetup.Page.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Email Logging |
| SourceTable | Email Logging Setup |
| PageType | Card |
| UsageCategory | Administration |
| ApplicationArea | RelationshipMgmt |
| Permissions | tabledata "Email Logging Setup" = rimd |

## Fields on this page

Layout controls in source order, grouped by the container they sit in. Shows: the table field a control is bound to (or its expression as written); ToolTip: the control's own, else the bound field's (marked).

| Group | Control | Shows | ToolTip |
|---|---|---|---|
| General | Shared Mailbox Email | [Email Address](../table/1680.md#fields) | Specifies the email address of the shared mailbox in Exchange Online that was created for email logging. The shared mailbox must be in the same tenant as Business Central. |
|  | Email Batch Size | [Email Batch Size](../table/1680.md#fields) | Specifies the number of email messages that the job queue entry for email logging will get from Exchange Online in one run. By balancing this number with how often the job queue entry runs you can fine tune the process. If a message is not logged in the current run it will be in the next one. |
|  | Enabled | [Enabled](../table/1680.md#fields) | Specifies whether email logging is enabled. |
| OAuth2Section | Client ID | [Client Id](../table/1680.md#fields) | 'Specifies the ID of the Azure Active Directory application that will be used to connect to Exchange Online.', Comment = 'Exchange Online and Azure Active Directory are names of a Microsoft service and a Microsoft Azure resource and should not be translated.' |
|  | Client Secret | `ClientSecretTemp` | 'Specifies the Azure Active Directory application secret that will be used to connect to Exchange Online.', Comment = 'Exchange Online and Azure Active Directory are names of a Microsoft service and a Microsoft Azure resource and should not be translated.' |
|  | Redirect URL | [Redirect URL](../table/1680.md#fields) | 'Specifies the redirect URL of the Azure Active Directory application that will be used to connect to Exchange Online.', Comment = 'Exchange Online and Azure Active Directory are names of a Microsoft service and a Microsoft Azure resource and should not be translated.' |

## Actions

| Group | Action | ToolTip | Runs |
|---|---|---|---|
| Processing | Assisted Setup | Assisted Setup |  |
|  | Renew Token | Renew the token for connecting to the shared mailbox. You must sign in with an Exchange Online account that the scheduled job will use to connect to the shared mailbox and process emails. Use this to change the user, or if the token has expired. |  |
|  | Validate Setup | Validate the settings for email logging. |  |
|  | Recreate Job | Recreate the job queue entry that processes email messages and creates interaction log entries. |  |
|  | Clear Setup | Clear all settings for email logging. |  |
| Navigation | Encryption Management | Turn data encryption on or off. Data encryption helps make sure that unauthorized users cannot read business data. | [Page 9905 "Data Encryption Management"](../page/9905.md) |
|  | Job Queue Entry | View the job queue entry that processes email messages and creates interaction log entries. |  |
|  | Activity Log | View the status and any errors that occurred while processing email messages and creating interaction log entries. |  |

## Procedures

3 local procedures, no public ones.

## Triggers

OnInit, OnOpenPage, OnAfterGetCurrRecord

## Relations

- source table [Table 1680 "Email Logging Setup"](../table/1680.md)

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 1681 "Email Logging Management"](../codeunit/1681.md) (4 calls: `OnInit → InitializeOAuthClient`, `OnInit → RegisterAssistedSetup`, `SignInAndGiveAppConsent → ExtractTenantIdFromAccessToken`, …)
- [Codeunit 1684 "Email Logging API Helper"](../codeunit/1684.md) (1 call: `CheckSharedMailboxAvailability → IsSharedMailboxAvailable`)
- [Codeunit 457 "Environment Information"](../codeunit/457.md) (1 call: `OnInit → IsSaaSInfrastructure`)

## Called by

- [Codeunit 1681 "Email Logging Management"](../codeunit/1681.md) (1 call: `HandleOnRunEmailLoggingSetup → (object)`)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

## Documented on Microsoft Learn

- [Set up email logging](https://learn.microsoft.com/dynamics365/business-central/marketing-set-up-email-logging)

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "page", object_name: "Email Logging Setup")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
