---
id: object/table/1275
type: object
title: Table 1275 "Doc. Exch. Service Setup"
summary: Table 1275 "Doc. Exch. Service Setup" in Base Application (Microsoft.EServices.EDocument). 23 fields, 17 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC24-26, BC28.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "28"
  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: 268414ae978be965e1ca151fb316ffa579c903cd571be2654b50f59db7db42d9
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/eServices/EDocument/DocExchServiceSetup.Table.al
    title: src/Layers/W1/BaseApp/eServices/EDocument/DocExchServiceSetup.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 1275
name: Doc. Exch. Service Setup
namespace: Microsoft.EServices.EDocument
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "25"
  - "26"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 23
  procedures: 30
  events: 1
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 4
  called_by: 0
  implements: 0
---

# Table 1275 "Doc. Exch. Service Setup"

> Table 1275 "Doc. Exch. Service Setup" in Base Application (Microsoft.EServices.EDocument). 23 fields, 17 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC24-26, BC28.

Base Application · Microsoft.EServices.EDocument · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/eServices/EDocument/DocExchServiceSetup.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Doc. Exch. Service Setup |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Primary Key | Code[10] | — |  |
| 4 | Sign-up URL | Text[250] | Specifies the web page where you sign up for the document exchange service. |  |
| 5 | Service URL | Text[250] | Specifies the URL address of the document exchange service. The service specified in the Service URL field is called when you send and receive electronic documents. |  |
| 6 | Sign-in URL | Text[250] | Specifies the web page where you sign in to the document exchange service. |  |
| 7 | Consumer Key | Guid | — | obsolete Removed 26.0; #if not CLEANSCHEMA26 |
| 8 | Consumer Secret | Guid | — | obsolete Removed 26.0; #if not CLEANSCHEMA26; not editable |
| 9 | Token | Guid | — | obsolete Removed 26.0; #if not CLEANSCHEMA26; not editable |
| 10 | Token Secret | Guid | — | obsolete Removed 26.0; #if not CLEANSCHEMA26; not editable |
| 11 | Doc. Exch. Tenant ID | Guid | — | obsolete Removed 26.0; #if not CLEANSCHEMA26; not editable; DataClassification OrganizationIdentifiableInformation |
| 12 | User Agent | Text[30] | Specifies any text that you have entered to identify your company in document exchange processes. | NotBlank; DataClassification EndUserIdentifiableInformation |
| 13 | Client Id | Text[250] | Specifies the client ID of the application that will be used to connect to the document exchange service. | DataClassification EndUserIdentifiableInformation |
| 14 | Client Secret Key | Guid | — | DataClassification EndUserPseudonymousIdentifiers |
| 15 | Redirect URL | Text[250] | Specifies the redirect URL of the application that will be used to to the document exchange service. | DataClassification OrganizationIdentifiableInformation |
| 16 | Auth URL | Text[250] | Specifies the authentication URL address of the document exchange service. | DataClassification OrganizationIdentifiableInformation |
| 17 | Token URL | Text[250] | Specifies the token URL address of the document exchange service. | DataClassification OrganizationIdentifiableInformation |
| 18 | Access Token Key | Guid | — |  |
| 19 | Refresh Token Key | Guid | — |  |
| 20 | Enabled | Boolean | Specifies if the service is enabled. When you enable the service, at least two job queue entries are created to process the traffic of electronic documents in and out of Microsoft Dynamics 365. |  |
| 21 | Log Web Requests | Boolean | Specifies if web requests occurring in connection with the service are logged. The log is located in the server Temp folder. |  |
| 24 | Token Subject | Text[250] | — | DataClassification AccountData |
| 25 | Token Issued At | DateTime | Specifies the time at which the token was issued. | DataClassification AccountData |
| 27 | Id Token | Text[1024] | — | DataClassification AccountData |
| 28 | Token Expired | Boolean | Specifies whether the token has expired. | DataClassification AccountData |

## Keys

- Key1: Primary Key (clustered)

## Events published

- `OnBeforeEnableConnection(var DocExchServiceSetup: Record "Doc. Exch. Service Setup"; var IsHandled: Boolean)` (integration)

## Procedures

- `SetClientSecret(ClientSecretText: SecretText)`
- `GetClientSecretAsSecretText(): SecretText`
- `DeleteClientSecret()`
- `SetAccessToken(AccessToken: SecretText)`
- `GetAccessTokenAsSecretText(): SecretText`
- `DeleteAccessToken()`
- `SetRefreshToken(RefreshToken: SecretText)`
- `GetRefreshTokenAsSecretText(): SecretText`
- `DeleteRefreshToken()`
- `SetDefaultRedirectUrl()`
- `SetURLsToDefault()`
- `SetURLsToDefault(Sandbox: Boolean)`
- `CheckConnection()`
- `IsEnabledChanged(): Boolean` (internal)
- `ScheduleJobQueueEntries()`
- `CancelJobQueueEntries()`
- `ShowJobQueueEntry()`

Plus 12 local procedures.

## Triggers

OnDelete, OnModify, OnInsert

## Pages and codeunits on this table

- [Page 1275 "Doc. Exch. Service Setup"](../page/1275.md) (source table)

## 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 1410 "Doc. Exch. Service Mgt."](../codeunit/1410.md) (7 calls: `CheckConnection → CheckConnection`, `EnableConnection → AcquireAccessTokenByAuthorizationCode`, `EnableConnection → CheckConnection`, …)
- [Codeunit 1293 "Isolated Storage Management"](../codeunit/1293.md) (6 calls: `DeleteClientSecret → Delete`, `DeleteToken → Delete`, `GetClientSecretAsSecretText → Get`, …)
- [Codeunit 8703 "Feature Telemetry"](../codeunit/8703.md) (1 call: `OnModify → LogUptake`)
- [Page 672 "Job Queue Entries"](../page/672.md) (1 call: `ShowJobQueueEntry → (object)`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-26, BC28

## Deprecations

- field Consumer Key: Removed 26.0 (#if not CLEANSCHEMA26), "Authentication with OAuth 1.0 is deprecated."
- field Consumer Secret: Removed 26.0 (#if not CLEANSCHEMA26), "Authentication with OAuth 1.0 is deprecated."
- field Doc. Exch. Tenant ID: Removed 26.0 (#if not CLEANSCHEMA26), "Authentication with OAuth 1.0 is deprecated."
- field Token: Removed 26.0 (#if not CLEANSCHEMA26), "Authentication with OAuth 1.0 is deprecated."
- field Token Secret: Removed 26.0 (#if not CLEANSCHEMA26), "Authentication with OAuth 1.0 is deprecated."

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: "table", object_name: "Doc. Exch. Service Setup")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
