---
id: object/table/5079
type: object
title: Table 5079 "Marketing Setup"
summary: Table 5079 "Marketing Setup" in Base Application (Microsoft.CRM.Setup). 50 fields, 5 public procedures. 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: e99516593ed79fd8cce3dbb6c4a4d1ead4e2105284a774c119e54597f32ebb0b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/CRM/Setup/MarketingSetup.Table.al
    title: src/Layers/W1/BaseApp/CRM/Setup/MarketingSetup.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: 5079
name: Marketing Setup
namespace: Microsoft.CRM.Setup
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: 50
  procedures: 7
  events: 0
  subscribers: 0
relations:
  out: 18
  referenced_by: 0
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 0
  implements: 0
---

# Table 5079 "Marketing Setup"

> Table 5079 "Marketing Setup" in Base Application (Microsoft.CRM.Setup). 50 fields, 5 public procedures. Present since at least BC23, still in BC30, changed in BC24-26, BC28.

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

## Properties

| Property | Value |
|---|---|
| Caption | Marketing 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] | — |  |
| 2 | Contact Nos. | Code[20] | Specifies the code for the number series to use when assigning numbers to contacts. | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series) |
| 3 | Campaign Nos. | Code[20] | Specifies the code for the number series to use when assigning numbers to campaigns. | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series) |
| 4 | Segment Nos. | Code[20] | Specifies the code for the number series to use when assigning numbers to segments. | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series) |
| 5 | To-do Nos. | Code[20] | Specifies the code for the number series to use when assigning numbers to tasks. | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series) |
| 6 | Opportunity Nos. | Code[20] | Specifies the code for the number series to use when assigning numbers to opportunities. | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series) |
| 7 | Bus. Rel. Code for Customers | Code[10] | Specifies the business relation code that identifies that a contact is also a customer. | TableRelation [Table 5053 "Business Relation"](../table/5053.md) (Business Relation) |
| 8 | Bus. Rel. Code for Vendors | Code[10] | Specifies the business relation code that identifies that a contact is also a vendor. | TableRelation [Table 5053 "Business Relation"](../table/5053.md) (Business Relation) |
| 9 | Bus. Rel. Code for Bank Accs. | Code[10] | Specifies the business relation code that identifies that a contact is also a bank account. | TableRelation [Table 5053 "Business Relation"](../table/5053.md) (Business Relation) |
| 10 | Bus. Rel. Code for Employees | Code[10] | Specifies the business relation code that identifies that a contact is also an employee. | TableRelation [Table 5053 "Business Relation"](../table/5053.md) (Business Relation) |
| 22 | Inherit Salesperson Code | Boolean | Specifies that you want to copy the salesperson code from the contact card of a company to the contact card for the individual contact person or people working for that company. |  |
| 23 | Inherit Territory Code | Boolean | Specifies that you want to copy the territory code from the contact card of a company to the contact card for the individual contact person or people working for that company. |  |
| 24 | Inherit Country/Region Code | Boolean | Specifies that you want to copy the country/region code from the contact card of a company to the contact card for the individual contact person or people working for that company. |  |
| 25 | Inherit Language Code | Boolean | Specifies that you want to copy the language code from the contact card of a company to the contact card for the individual contact person or people working for that company. |  |
| 26 | Inherit Address Details | Boolean | Specifies that you want to copy the address details from the contact card of a company to the contact card for the individual contact person or people working for that company. |  |
| 27 | Inherit Communication Details | Boolean | Specifies that you want to copy the communication details, such as telex and fax numbers, from the contact card of a company to the contact card for the individual contact person or people working for that company. |  |
| 28 | Default Salesperson Code | Code[20] | Specifies the salesperson code to assign automatically to contacts when they are created. | TableRelation [Table 13 "Salesperson/Purchaser"](../table/13.md) ("Salesperson/Purchaser" where(Blocked = const(false))) |
| 29 | Default Territory Code | Code[10] | Specifies the territory code to automatically assign to contacts when they are created. | TableRelation [Table 286 "Territory"](../table/286.md) |
| 30 | Default Country/Region Code | Code[10] | Specifies the country/region code to assign automatically to contacts when they are created. | TableRelation [Table 9 "Country/Region"](../table/9.md) (Country/Region) |
| 31 | Default Language Code | Code[10] | Specifies the language code to assign automatically to contacts when they are created. | TableRelation [Table 8 "Language"](../table/8.md) |
| 32 | Default Format Region | Text[80] | Specifies the region format to assign automatically to contacts when they are created. | TableRelation "Language Selection"."Language Tag" |
| 33 | Default Sales Cycle Code | Code[10] | Specifies the sales cycle code to automatically assign to opportunities when they are created. | TableRelation [Table 5090 "Sales Cycle"](../table/5090.md) (Sales Cycle) |
| 35 | Attachment Storage Type | Enum "Setup Attachment Storage Type" | Specifies how you want to store attachments. The following options exist: | enum [Enum 5079 "Setup Attachment Storage Type"](../enum/5079.md) |
| 36 | Attachment Storage Location | Text[250] | Specifies the drive and path to the location where you want attachments stored if you selected Disk File in the Attachment Storage Type field. |  |
| 37 | Autosearch for Duplicates | Boolean | Specifies that you want to search automatically for duplicates each time a contact is created or modified. |  |
| 38 | Search Hit % | Integer | Specifies the level of precision to apply when searching for duplicates. | NotBlank |
| 39 | Maintain Dupl. Search Strings | Boolean | Specifies the automatic update of search strings used to search for duplicates. You can set up search strings in the Duplicate Search String Setup table. | NotBlank |
| 50 | Mergefield Language ID | Integer | Specifies the language ID of the Windows language to use for naming the merge fields shown when editing an attachment in Microsoft Word. | TableRelation Windows Language |
| 51 | Def. Company Salutation Code | Code[10] | Specifies the salutation code to assign automatically to contact companies when they are created. | TableRelation [Table 5068 "Salutation"](../table/5068.md) |
| 52 | Default Person Salutation Code | Code[10] | Specifies the salutation code to assign automatically to contact persons when they are created. | TableRelation [Table 5068 "Salutation"](../table/5068.md) |
| 53 | Default Correspondence Type | Enum "Correspondence Type" | Specifies the preferred type of correspondence for the interaction. NOTE: If you use the Web client, you must not select the Hard Copy option because printing is not possible from the web client. | enum [Enum 5076 "Correspondence Type"](../enum/5076.md) |
| 56 | Queue Folder Path | Text[250] | — | obsolete Removed 25.0; #if not CLEANSCHEMA25; not editable |
| 57 | Queue Folder UID | BLOB | — | obsolete Removed 25.0; #if not CLEANSCHEMA25 |
| 59 | Storage Folder Path | Text[250] | — | obsolete Removed 25.0; #if not CLEANSCHEMA25; not editable |
| 60 | Storage Folder UID | BLOB | — | obsolete Removed 25.0; #if not CLEANSCHEMA25 |
| 67 | Default To-do Date Calculation | DateFormula | Specifies the task date calculation formula to use to calculate the ending date for tasks in Business Central if you haven't entered any due date in the Outlook task. If you leave the field blank, today's date is applied. |  |
| 69 | Autodiscovery E-Mail Address | Text[250] | Autodiscovery Email Address <small>caption</small> | obsolete Removed 25.0; #if not CLEANSCHEMA25 |
| 70 | Email Batch Size | Integer | — | obsolete Removed 25.0; #if not CLEANSCHEMA25 |
| 71 | Exchange Service URL | Text[250] | — | obsolete Removed 25.0; #if not CLEANSCHEMA25 |
| 72 | Exchange Account User Name | Text[250] | — | obsolete Removed 25.0; #if not CLEANSCHEMA25; DataClassification EndUserIdentifiableInformation |
| 73 | Exchange Account Password Key | Guid | — |  |
| 75 | WebHook Run Notification As | Guid | — |  |
| 76 | Cust. Template Company Code | Code[10] | — |  |
| 77 | Cust. Template Person Code | Code[10] | — |  |
| 78 | Exchange Tenant Id Key | Guid | — | DataClassification EndUserPseudonymousIdentifiers |
| 79 | Exchange Client Id | Text[250] | — | obsolete Removed 25.0; #if not CLEANSCHEMA25; DataClassification EndUserIdentifiableInformation |
| 80 | Exchange Client Secret Key | Guid | — | obsolete Removed 25.0; #if not CLEANSCHEMA25; DataClassification EndUserPseudonymousIdentifiers |
| 81 | Email Logging Enabled | Boolean | — | obsolete Removed 25.0; #if not CLEANSCHEMA25 |
| 82 | Exchange Redirect URL | Text[2048] | — | obsolete Removed 25.0; #if not CLEANSCHEMA25; DataClassification EndUserIdentifiableInformation |
| 83 | Inherit Format Region | Boolean | — |  |

## Keys

- Key1: Primary Key (clustered)

## Procedures

- `TrySetWebhookSubscriptionUser(UserSecurityID: Guid): Boolean`
- `GetWebhookSubscriptionUser(): Guid`
- `TrySetWebhookSubscriptionUserAsCurrentUser(): Guid`
- `GetCustomerTemplate(ContactType: Option Company,Person): Code[10]`
- `GetRecordOnce()`

Plus 2 local procedures.

## Relations

- drill-down page [Page 5094 "Marketing Setup"](../page/5094.md)
- lookup page [Page 5094 "Marketing Setup"](../page/5094.md)
- Default Salesperson Code: TableRelation [Table 13 "Salesperson/Purchaser"](../table/13.md)
- Default Territory Code: TableRelation [Table 286 "Territory"](../table/286.md)
- Campaign Nos.: TableRelation [Table 308 "No. Series"](../table/308.md)
- Contact Nos.: TableRelation [Table 308 "No. Series"](../table/308.md)
- Opportunity Nos.: TableRelation [Table 308 "No. Series"](../table/308.md)
- Segment Nos.: TableRelation [Table 308 "No. Series"](../table/308.md)
- To-do Nos.: TableRelation [Table 308 "No. Series"](../table/308.md)
- Bus. Rel. Code for Bank Accs.: TableRelation [Table 5053 "Business Relation"](../table/5053.md)
- Bus. Rel. Code for Customers: TableRelation [Table 5053 "Business Relation"](../table/5053.md)
- Bus. Rel. Code for Employees: TableRelation [Table 5053 "Business Relation"](../table/5053.md)
- Bus. Rel. Code for Vendors: TableRelation [Table 5053 "Business Relation"](../table/5053.md)
- Def. Company Salutation Code: TableRelation [Table 5068 "Salutation"](../table/5068.md)
- Default Person Salutation Code: TableRelation [Table 5068 "Salutation"](../table/5068.md)
- Default Sales Cycle Code: TableRelation [Table 5090 "Sales Cycle"](../table/5090.md)
- Default Language Code: TableRelation [Table 8 "Language"](../table/8.md)
- Default Country/Region Code: TableRelation [Table 9 "Country/Region"](../table/9.md)

## Pages and codeunits on this table

- [Page 5094 "Marketing Setup"](../page/5094.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 5377 "Webhook Management"](../codeunit/5377.md) (2 calls: `TrySetWebhookSubscriptionUser → IsValidNotificationRunAsUser`, `UserIsNotValidForWebhookSubscription → IsValidNotificationRunAsUser`)

## Across versions

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

## Deprecations

- field Autodiscovery E-Mail Address: Removed 25.0 (#if not CLEANSCHEMA25), "Feature EmailLoggingUsingGraphApi will be enabled by default in version 22.0"
- field Email Batch Size: Removed 25.0 (#if not CLEANSCHEMA25), "Feature EmailLoggingUsingGraphApi will be enabled by default in version 22.0"
- field Email Logging Enabled: Removed 25.0 (#if not CLEANSCHEMA25), "Feature EmailLoggingUsingGraphApi will be enabled by default in version 22.0"
- field Exchange Account User Name: Removed 25.0 (#if not CLEANSCHEMA25), "Feature EmailLoggingUsingGraphApi will be enabled by default in version 22.0"
- field Exchange Client Id: Removed 25.0 (#if not CLEANSCHEMA25), "Feature EmailLoggingUsingGraphApi will be enabled by default in version 22.0"
- field Exchange Client Secret Key: Removed 25.0 (#if not CLEANSCHEMA25), "Feature EmailLoggingUsingGraphApi will be enabled by default in version 22.0"
- field Exchange Redirect URL: Removed 25.0 (#if not CLEANSCHEMA25), "Feature EmailLoggingUsingGraphApi will be enabled by default in version 22.0"
- field Exchange Service URL: Removed 25.0 (#if not CLEANSCHEMA25), "Feature EmailLoggingUsingGraphApi will be enabled by default in version 22.0"
- field Queue Folder Path: Removed 25.0 (#if not CLEANSCHEMA25), "Feature EmailLoggingUsingGraphApi will be enabled by default in version 22.0"
- field Queue Folder UID: Removed 25.0 (#if not CLEANSCHEMA25), "Feature EmailLoggingUsingGraphApi will be enabled by default in version 22.0"
- field Storage Folder Path: Removed 25.0 (#if not CLEANSCHEMA25), "Feature EmailLoggingUsingGraphApi will be enabled by default in version 22.0"
- field Storage Folder UID: Removed 25.0 (#if not CLEANSCHEMA25), "Feature EmailLoggingUsingGraphApi will be enabled by default in version 22.0"

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: "Marketing Setup")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
