---
title: "Codeunit 131900 Library - Marketing, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/points/
object: https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/
app: "Application Test Library"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 131900 Library - Marketing, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/points/

57 procedures and triggers with a step in src/Layers/W1/Tests/ApplicationTestLibrary/LibraryMarketing.Codeunit.al, in source order, read from the text, not from a run.

## CreateActivity

[Line 18](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L18).

- [21](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L21) validates [Table 5081 Activity](https://jonas-paprotka.de/ref/table/5081-activity/) `Code`
- [21](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L21) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [22](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L22) validates [Table 5081 Activity](https://jonas-paprotka.de/ref/table/5081-activity/) `Description`
- [23](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L23) writes [Table 5081 Activity](https://jonas-paprotka.de/ref/table/5081-activity/) Insert(true)

## CreateActivityStep

[Line 26](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L26).

- [31](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L31) validates [Table 5082 Activity Step](https://jonas-paprotka.de/ref/table/5082-activity-step/) `Activity Code`
- [33](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L33) validates [Table 5082 Activity Step](https://jonas-paprotka.de/ref/table/5082-activity-step/) `Step No.`
- [33](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L33) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetNewLineNo`
- [34](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L34) writes [Table 5082 Activity Step](https://jonas-paprotka.de/ref/table/5082-activity-step/) Insert(true)

## CreateAttachment

[Line 37](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L37).

- [48](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L48) writes [Table 5062 Attachment](https://jonas-paprotka.de/ref/table/5062-attachment/) Insert(true)

## CreateBusinessRelation

[Line 51](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L51).

- [54](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L54) validates [Table 5053 Business Relation](https://jonas-paprotka.de/ref/table/5053-business-relation/) `Code`
- [54](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L54) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [55](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L55) validates [Table 5053 Business Relation](https://jonas-paprotka.de/ref/table/5053-business-relation/) `Description`
- [56](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L56) writes [Table 5053 Business Relation](https://jonas-paprotka.de/ref/table/5053-business-relation/) Insert(true)

## CreateCampaign

[Line 59](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L59).

- [65](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L65) validates [Table 5079 Marketing Setup](https://jonas-paprotka.de/ref/table/5079-marketing-setup/) `Campaign Nos.`
- [65](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L65) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetGlobalNoSeriesCode`
- [66](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L66) writes [Table 5079 Marketing Setup](https://jonas-paprotka.de/ref/table/5079-marketing-setup/) Modify(true)
- [71](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L71) writes [Table 5071 Campaign](https://jonas-paprotka.de/ref/table/5071-campaign/) Insert(true)
- [72](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L72) validates [Table 5071 Campaign](https://jonas-paprotka.de/ref/table/5071-campaign/) `Description`
- [73](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L73) writes [Table 5071 Campaign](https://jonas-paprotka.de/ref/table/5071-campaign/) Modify(true)

## CreateCampaignStatus

[Line 76](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L76).

- [79](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L79) validates [Table 5073 Campaign Status](https://jonas-paprotka.de/ref/table/5073-campaign-status/) `Code`
- [79](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L79) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [80](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L80) validates [Table 5073 Campaign Status](https://jonas-paprotka.de/ref/table/5073-campaign-status/) `Description`
- [81](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L81) writes [Table 5073 Campaign Status](https://jonas-paprotka.de/ref/table/5073-campaign-status/) Insert(true)

## CreateCloseOpportunityCode

[Line 84](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L84).

- [87](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L87) validates [Table 5094 Close Opportunity Code](https://jonas-paprotka.de/ref/table/5094-close-opportunity-code/) `Code`
- [88](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L88) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [90](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L90) validates [Table 5094 Close Opportunity Code](https://jonas-paprotka.de/ref/table/5094-close-opportunity-code/) `Description`
- [91](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L91) writes [Table 5094 Close Opportunity Code](https://jonas-paprotka.de/ref/table/5094-close-opportunity-code/) Insert(true)

## CreateCompanyContact

[Line 94](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L94).

- [96](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L96) calls `CreateContact`

## CreateCompanyContactNo

[Line 99](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L99).

- [103](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L103) calls `CreateCompanyContact`

## CreateCompanyContactTask

[Line 107](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L107).

- [111](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L111) calls [Codeunit 130509 Library - Sales](https://jonas-paprotka.de/ref/codeunit/130509-library-sales/) `CreateSalesperson`
- [113](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L113) validates [Table 5080 To-do](https://jonas-paprotka.de/ref/table/5080-to-do/) `Description`
- [114](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L114) validates [Table 5080 To-do](https://jonas-paprotka.de/ref/table/5080-to-do/) `Type`
- [115](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L115) validates [Table 5080 To-do](https://jonas-paprotka.de/ref/table/5080-to-do/) `Contact No.`
- [115](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L115) calls `CreateCompanyContactNo`
- [116](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L116) validates [Table 5080 To-do](https://jonas-paprotka.de/ref/table/5080-to-do/) `Salesperson Code`
- [117](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L117) validates [Table 5080 To-do](https://jonas-paprotka.de/ref/table/5080-to-do/) `Date`
- [118](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L118) validates [Table 5080 To-do](https://jonas-paprotka.de/ref/table/5080-to-do/) `Start Time`
- [119](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L119) validates [Table 5080 To-do](https://jonas-paprotka.de/ref/table/5080-to-do/) `Duration`
- [119](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L119) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandIntInRange`
- [120](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L120) writes [Table 5080 To-do](https://jonas-paprotka.de/ref/table/5080-to-do/) Insert(true)

## CreatePersonContact

[Line 123](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L123).

- [125](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L125) calls `CreateContact`

## CreatePersonContactNo

[Line 128](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L128).

- [132](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L132) calls `CreatePersonContact`

## CreatePersonContactWithCompanyNo

[Line 137](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L137).

- [139](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L139) calls `CreatePersonContact`
- [140](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L140) validates [Table 5050 Contact](https://jonas-paprotka.de/ref/table/5050-contact/) `Company No.`
- [140](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L140) calls `CreateCompanyContactNo`
- [141](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L141) writes [Table 5050 Contact](https://jonas-paprotka.de/ref/table/5050-contact/) Modify(true)

## CreateContact

[Line 144](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L144), local.

- [151](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L151) validates [Table 5079 Marketing Setup](https://jonas-paprotka.de/ref/table/5079-marketing-setup/) `Contact Nos.`
- [151](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L151) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetGlobalNoSeriesCode`
- [152](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L152) writes [Table 5079 Marketing Setup](https://jonas-paprotka.de/ref/table/5079-marketing-setup/) Modify(true)
- [157](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L157) writes [Table 5050 Contact](https://jonas-paprotka.de/ref/table/5050-contact/) Insert(true)
- [158](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L158) validates [Table 5050 Contact](https://jonas-paprotka.de/ref/table/5050-contact/) `Name`
- [159](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L159) validates [Table 5050 Contact](https://jonas-paprotka.de/ref/table/5050-contact/) `Salesperson Code`
- [160](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L160) validates [Table 5050 Contact](https://jonas-paprotka.de/ref/table/5050-contact/) `Type`
- [161](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L161) calls [Table 5050 Contact](https://jonas-paprotka.de/ref/table/5050-contact/) `TypeChange`
- [162](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L162) writes [Table 5050 Contact](https://jonas-paprotka.de/ref/table/5050-contact/) Modify(true)

## CreateContactAltAddress

[Line 165](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L165).

- [168](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L168) validates [Table 5051 Contact Alt. Address](https://jonas-paprotka.de/ref/table/5051-contact-alt-address/) `Contact No.`
- [169](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L169) validates [Table 5051 Contact Alt. Address](https://jonas-paprotka.de/ref/table/5051-contact-alt-address/) `Code`
- [170](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L170) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [171](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L171) writes [Table 5051 Contact Alt. Address](https://jonas-paprotka.de/ref/table/5051-contact-alt-address/) Insert(true)

## CreateContactAltAddrDateRange

[Line 174](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L174).

- [177](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L177) validates [Table 5052 Contact Alt. Addr. Date Range](https://jonas-paprotka.de/ref/table/5052-contact-alt-addr-date-range/) `Contact No.`
- [178](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L178) validates [Table 5052 Contact Alt. Addr. Date Range](https://jonas-paprotka.de/ref/table/5052-contact-alt-addr-date-range/) `Starting Date`
- [179](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L179) writes [Table 5052 Contact Alt. Addr. Date Range](https://jonas-paprotka.de/ref/table/5052-contact-alt-addr-date-range/) Insert(true)

## CreateContactBusinessRelation

[Line 182](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L182).

- [185](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L185) validates [Table 5054 Contact Business Relation](https://jonas-paprotka.de/ref/table/5054-contact-business-relation/) `Contact No.`
- [186](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L186) validates [Table 5054 Contact Business Relation](https://jonas-paprotka.de/ref/table/5054-contact-business-relation/) `Business Relation Code`
- [187](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L187) writes [Table 5054 Contact Business Relation](https://jonas-paprotka.de/ref/table/5054-contact-business-relation/) Insert(true)

## CreateContactIndustryGroup

[Line 190](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L190).

- [193](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L193) validates [Table 5058 Contact Industry Group](https://jonas-paprotka.de/ref/table/5058-contact-industry-group/) `Contact No.`
- [194](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L194) validates [Table 5058 Contact Industry Group](https://jonas-paprotka.de/ref/table/5058-contact-industry-group/) `Industry Group Code`
- [195](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L195) writes [Table 5058 Contact Industry Group](https://jonas-paprotka.de/ref/table/5058-contact-industry-group/) Insert(true)

## CreateContactJobResponsibility

[Line 198](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L198).

- [201](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L201) validates [Table 5067 Contact Job Responsibility](https://jonas-paprotka.de/ref/table/5067-contact-job-responsibility/) `Contact No.`
- [202](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L202) validates [Table 5067 Contact Job Responsibility](https://jonas-paprotka.de/ref/table/5067-contact-job-responsibility/) `Job Responsibility Code`
- [203](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L203) writes [Table 5067 Contact Job Responsibility](https://jonas-paprotka.de/ref/table/5067-contact-job-responsibility/) Insert(true)

## CreateContactMailingGroup

[Line 206](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L206).

- [209](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L209) validates [Table 5056 Contact Mailing Group](https://jonas-paprotka.de/ref/table/5056-contact-mailing-group/) `Contact No.`
- [210](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L210) validates [Table 5056 Contact Mailing Group](https://jonas-paprotka.de/ref/table/5056-contact-mailing-group/) `Mailing Group Code`
- [211](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L211) writes [Table 5056 Contact Mailing Group](https://jonas-paprotka.de/ref/table/5056-contact-mailing-group/) Insert(true)

## CreateContactWebSource

[Line 214](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L214).

- [217](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L217) validates [Table 5060 Contact Web Source](https://jonas-paprotka.de/ref/table/5060-contact-web-source/) `Contact No.`
- [218](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L218) validates [Table 5060 Contact Web Source](https://jonas-paprotka.de/ref/table/5060-contact-web-source/) `Web Source Code`
- [219](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L219) writes [Table 5060 Contact Web Source](https://jonas-paprotka.de/ref/table/5060-contact-web-source/) Insert(true)

## CreateBusinessRelationWithContact

[Line 222](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L222).

- [226](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L226) calls `CreateBusinessRelation`
- [227](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L227) calls `CreateContactBusinessRelation`
- [229](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L229) calls [Codeunit 130509 Library - Sales](https://jonas-paprotka.de/ref/codeunit/130509-library-sales/) `CreateCustomerNo`
- [230](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L230) writes [Table 5054 Contact Business Relation](https://jonas-paprotka.de/ref/table/5054-contact-business-relation/) Modify(true)

## CreateBusinessRelationBetweenContactAndCustomer

[Line 233](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L233).

- [237](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L237) calls `CreateBusinessRelation`
- [238](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L238) calls `CreateContactBusinessRelation`
- [241](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L241) writes [Table 5054 Contact Business Relation](https://jonas-paprotka.de/ref/table/5054-contact-business-relation/) Modify(true)

## CreateBusinessRelationBetweenContactAndVendor

[Line 244](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L244).

- [248](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L248) calls `CreateBusinessRelation`
- [249](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L249) calls `CreateContactBusinessRelation`
- [252](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L252) writes [Table 5054 Contact Business Relation](https://jonas-paprotka.de/ref/table/5054-contact-business-relation/) Modify(true)

## CreateContactWithCustomer

[Line 255](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L255).

- [259](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L259) calls `CreateCompanyContact`
- [260](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L260) calls [Codeunit 130509 Library - Sales](https://jonas-paprotka.de/ref/codeunit/130509-library-sales/) `CreateCustomer`
- [261](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L261) calls `CreateBusinessRelationBetweenContactAndCustomer`

## CreateContactWithVendor

[Line 264](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L264).

- [268](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L268) calls `CreateCompanyContact`
- [269](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L269) calls [Codeunit 130512 Library - Purchase](https://jonas-paprotka.de/ref/codeunit/130512-library-purchase/) `CreateVendor`
- [270](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L270) calls `CreateBusinessRelationBetweenContactAndVendor`

## CreateInteractionGroup

[Line 273](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L273).

- [276](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L276) validates [Table 5063 Interaction Group](https://jonas-paprotka.de/ref/table/5063-interaction-group/) `Code`
- [276](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L276) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [277](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L277) validates [Table 5063 Interaction Group](https://jonas-paprotka.de/ref/table/5063-interaction-group/) `Description`
- [278](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L278) writes [Table 5063 Interaction Group](https://jonas-paprotka.de/ref/table/5063-interaction-group/) Insert(true)

## CreateInteractionLogEntry

[Line 281](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L281).

- [291](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L291) writes [Table 5065 Interaction Log Entry](https://jonas-paprotka.de/ref/table/5065-interaction-log-entry/) Insert
- [296](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L296) writes [Table 5065 Interaction Log Entry](https://jonas-paprotka.de/ref/table/5065-interaction-log-entry/) Modify

## CreateInteractionTemplate

[Line 299](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L299).

- [305](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L305) validates [Table 5064 Interaction Template](https://jonas-paprotka.de/ref/table/5064-interaction-template/) `Code`
- [306](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L306) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [307](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L307) validates [Table 5064 Interaction Template](https://jonas-paprotka.de/ref/table/5064-interaction-template/) `Interaction Group Code`
- [309](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L309) validates [Table 5064 Interaction Template](https://jonas-paprotka.de/ref/table/5064-interaction-template/) `Description`
- [310](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L310) validates [Table 5064 Interaction Template](https://jonas-paprotka.de/ref/table/5064-interaction-template/) `Correspondence Type (Default)`
- [311](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L311) writes [Table 5064 Interaction Template](https://jonas-paprotka.de/ref/table/5064-interaction-template/) Insert(true)

## CreateJobResponsibility

[Line 314](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L314).

- [317](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L317) validates [Table 5066 Job Responsibility](https://jonas-paprotka.de/ref/table/5066-job-responsibility/) `Code`
- [318](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L318) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [319](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L319) validates [Table 5066 Job Responsibility](https://jonas-paprotka.de/ref/table/5066-job-responsibility/) `Description`
- [320](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L320) writes [Table 5066 Job Responsibility](https://jonas-paprotka.de/ref/table/5066-job-responsibility/) Insert(true)

## CreateMailingGroup

[Line 323](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L323).

- [326](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L326) validates [Table 5055 Mailing Group](https://jonas-paprotka.de/ref/table/5055-mailing-group/) `Code`
- [326](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L326) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [327](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L327) validates [Table 5055 Mailing Group](https://jonas-paprotka.de/ref/table/5055-mailing-group/) `Description`
- [328](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L328) writes [Table 5055 Mailing Group](https://jonas-paprotka.de/ref/table/5055-mailing-group/) Insert(true)

## CreateOpportunity

[Line 331](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L331).

- [338](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L338) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateGUID`
- [339](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L339) validates [Table 5092 Opportunity](https://jonas-paprotka.de/ref/table/5092-opportunity/) `Contact No.`
- [345](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L345) validates [Table 5092 Opportunity](https://jonas-paprotka.de/ref/table/5092-opportunity/) `Salesperson Code`
- [346](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L346) validates [Table 5092 Opportunity](https://jonas-paprotka.de/ref/table/5092-opportunity/) `Description`
- [349](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L349) validates [Table 5092 Opportunity](https://jonas-paprotka.de/ref/table/5092-opportunity/) `Sales Cycle Code`
- [350](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L350) writes [Table 5092 Opportunity](https://jonas-paprotka.de/ref/table/5092-opportunity/) Insert(true)

## CreateQuestionnaireHeader

[Line 353](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L353).

- [356](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L356) validates [Table 5087 Profile Questionnaire Header](https://jonas-paprotka.de/ref/table/5087-profile-questionnaire-header/) `Code`
- [357](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L357) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [360](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L360) validates [Table 5087 Profile Questionnaire Header](https://jonas-paprotka.de/ref/table/5087-profile-questionnaire-header/) `Description`
- [361](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L361) writes [Table 5087 Profile Questionnaire Header](https://jonas-paprotka.de/ref/table/5087-profile-questionnaire-header/) Insert(true)

## CreateProfileQuestionnaireLine

[Line 364](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L364).

- [369](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L369) validates [Table 5088 Profile Questionnaire Line](https://jonas-paprotka.de/ref/table/5088-profile-questionnaire-line/) `Profile Questionnaire Code`
- [372](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L372) validates [Table 5088 Profile Questionnaire Line](https://jonas-paprotka.de/ref/table/5088-profile-questionnaire-line/) `Line No.`
- [372](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L372) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetNewLineNo`
- [373](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L373) writes [Table 5088 Profile Questionnaire Line](https://jonas-paprotka.de/ref/table/5088-profile-questionnaire-line/) Insert(true)

## CreateContactProfileAnswer

[Line 376](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L376).

- [381](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L381) validates [Table 5089 Contact Profile Answer](https://jonas-paprotka.de/ref/table/5089-contact-profile-answer/) `Contact No.`
- [382](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L382) validates [Table 5089 Contact Profile Answer](https://jonas-paprotka.de/ref/table/5089-contact-profile-answer/) `Profile Questionnaire Code`
- [383](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L383) validates [Table 5089 Contact Profile Answer](https://jonas-paprotka.de/ref/table/5089-contact-profile-answer/) `Line No.`
- [384](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L384) validates [Table 5089 Contact Profile Answer](https://jonas-paprotka.de/ref/table/5089-contact-profile-answer/) `Profile Questionnaire Value`
- [385](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L385) writes [Table 5089 Contact Profile Answer](https://jonas-paprotka.de/ref/table/5089-contact-profile-answer/) Insert(true)

## CreateRlshpMgtCommentLine

[Line 388](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L388).

- [393](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L393) validates [Table 5061 Rlshp. Mgt. Comment Line](https://jonas-paprotka.de/ref/table/5061-rlshp-mgt-comment-line/) `Table Name`
- [394](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L394) validates [Table 5061 Rlshp. Mgt. Comment Line](https://jonas-paprotka.de/ref/table/5061-rlshp-mgt-comment-line/) `No.`
- [395](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L395) validates [Table 5061 Rlshp. Mgt. Comment Line](https://jonas-paprotka.de/ref/table/5061-rlshp-mgt-comment-line/) `Sub No.`
- [397](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L397) validates [Table 5061 Rlshp. Mgt. Comment Line](https://jonas-paprotka.de/ref/table/5061-rlshp-mgt-comment-line/) `Line No.`
- [397](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L397) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetNewLineNo`
- [398](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L398) writes [Table 5061 Rlshp. Mgt. Comment Line](https://jonas-paprotka.de/ref/table/5061-rlshp-mgt-comment-line/) Insert(true)

## CreateRlshpMgtCommentContact

[Line 401](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L401).

- [403](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L403) calls `CreateRlshpMgtCommentLine`

## CreateRlshpMgtCommentSales

[Line 407](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L407).

- [409](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L409) calls `CreateRlshpMgtCommentLine`

## CreateSalutation

[Line 413](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L413).

- [416](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L416) validates [Table 5068 Salutation](https://jonas-paprotka.de/ref/table/5068-salutation/) `Code`
- [416](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L416) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [417](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L417) validates [Table 5068 Salutation](https://jonas-paprotka.de/ref/table/5068-salutation/) `Description`
- [418](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L418) writes [Table 5068 Salutation](https://jonas-paprotka.de/ref/table/5068-salutation/) Insert(true)

## CreateSalutationFormula

[Line 421](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L421).

- [424](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L424) validates [Table 5069 Salutation Formula](https://jonas-paprotka.de/ref/table/5069-salutation-formula/) `Salutation Code`
- [425](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L425) validates [Table 5069 Salutation Formula](https://jonas-paprotka.de/ref/table/5069-salutation-formula/) `Language Code`
- [426](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L426) validates [Table 5069 Salutation Formula](https://jonas-paprotka.de/ref/table/5069-salutation-formula/) `Salutation Type`
- [427](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L427) writes [Table 5069 Salutation Formula](https://jonas-paprotka.de/ref/table/5069-salutation-formula/) Insert(true)

## CreateSalesCycle

[Line 430](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L430).

- [433](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L433) validates [Table 5090 Sales Cycle](https://jonas-paprotka.de/ref/table/5090-sales-cycle/) `Code`
- [433](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L433) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [434](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L434) validates [Table 5090 Sales Cycle](https://jonas-paprotka.de/ref/table/5090-sales-cycle/) `Description`
- [435](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L435) writes [Table 5090 Sales Cycle](https://jonas-paprotka.de/ref/table/5090-sales-cycle/) Insert(true)

## CreateSalesCycleStage

[Line 438](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L438).

- [449](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L449) validates [Table 5091 Sales Cycle Stage](https://jonas-paprotka.de/ref/table/5091-sales-cycle-stage/) `Sales Cycle Code`
- [450](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L450) validates [Table 5091 Sales Cycle Stage](https://jonas-paprotka.de/ref/table/5091-sales-cycle-stage/) `Stage`
- [451](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L451) writes [Table 5091 Sales Cycle Stage](https://jonas-paprotka.de/ref/table/5091-sales-cycle-stage/) Insert(true)

## CreateSalesHeaderWithContact

[Line 454](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L454).

- [457](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L457) writes [Table 36 Sales Header](https://jonas-paprotka.de/ref/table/36-sales-header/) Insert(true)
- [458](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L458) validates [Table 36 Sales Header](https://jonas-paprotka.de/ref/table/36-sales-header/) `Sell-to Contact No.`
- [459](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L459) writes [Table 36 Sales Header](https://jonas-paprotka.de/ref/table/36-sales-header/) Modify(true)

## CreateSalesQuoteWithContact

[Line 462](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L462).

- [465](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L465) writes [Table 36 Sales Header](https://jonas-paprotka.de/ref/table/36-sales-header/) Insert(true)
- [466](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L466) calls [Table 36 Sales Header](https://jonas-paprotka.de/ref/table/36-sales-header/) `SetHideValidationDialog`
- [467](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L467) validates [Table 36 Sales Header](https://jonas-paprotka.de/ref/table/36-sales-header/) `Document Type`
- [468](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L468) validates [Table 36 Sales Header](https://jonas-paprotka.de/ref/table/36-sales-header/) `Sell-to Contact No.`
- [469](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L469) writes [Table 36 Sales Header](https://jonas-paprotka.de/ref/table/36-sales-header/) Modify(true)

## CreateSalesLineDiscount

[Line 472](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L472).

- [475](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L475) validates [Table 7004 Sales Line Discount](https://jonas-paprotka.de/ref/table/7004-sales-line-discount/) `Type`
- [476](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L476) validates [Table 7004 Sales Line Discount](https://jonas-paprotka.de/ref/table/7004-sales-line-discount/) `Code`
- [477](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L477) validates [Table 7004 Sales Line Discount](https://jonas-paprotka.de/ref/table/7004-sales-line-discount/) `Sales Type`
- [478](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L478) validates [Table 7004 Sales Line Discount](https://jonas-paprotka.de/ref/table/7004-sales-line-discount/) `Sales Code`
- [479](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L479) writes [Table 7004 Sales Line Discount](https://jonas-paprotka.de/ref/table/7004-sales-line-discount/) Insert(true)

## CreateSalesPriceForCampaign

[Line 482](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L482).

- [485](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L485) validates [Table 7002 Sales Price](https://jonas-paprotka.de/ref/table/7002-sales-price/) `Item No.`
- [486](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L486) validates [Table 7002 Sales Price](https://jonas-paprotka.de/ref/table/7002-sales-price/) `Sales Type`
- [487](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L487) validates [Table 7002 Sales Price](https://jonas-paprotka.de/ref/table/7002-sales-price/) `Sales Code`
- [488](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L488) writes [Table 7002 Sales Price](https://jonas-paprotka.de/ref/table/7002-sales-price/) Insert(true)

## CreateSegmentHeader

[Line 491](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L491).

- [497](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L497) validates [Table 5079 Marketing Setup](https://jonas-paprotka.de/ref/table/5079-marketing-setup/) `Segment Nos.`
- [497](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L497) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetGlobalNoSeriesCode`
- [498](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L498) writes [Table 5079 Marketing Setup](https://jonas-paprotka.de/ref/table/5079-marketing-setup/) Modify(true)
- [502](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L502) writes [Table 5076 Segment Header](https://jonas-paprotka.de/ref/table/5076-segment-header/) Insert(true)
- [503](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L503) validates [Table 5076 Segment Header](https://jonas-paprotka.de/ref/table/5076-segment-header/) `Description`
- [504](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L504) writes [Table 5076 Segment Header](https://jonas-paprotka.de/ref/table/5076-segment-header/) Modify(true)

## CreateSegmentLine

[Line 507](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L507).

- [512](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L512) validates [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) `Segment No.`
- [514](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L514) validates [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) `Line No.`
- [514](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L514) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetNewLineNo`
- [515](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L515) writes [Table 5077 Segment Line](https://jonas-paprotka.de/ref/table/5077-segment-line/) Insert(true)

## CreateTeam

[Line 518](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L518).

- [521](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L521) validates [Table 5083 Team](https://jonas-paprotka.de/ref/table/5083-team/) `Code`
- [521](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L521) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [522](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L522) writes [Table 5083 Team](https://jonas-paprotka.de/ref/table/5083-team/) Insert(true)

## CreateTeamSalesperson

[Line 525](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L525).

- [528](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L528) validates [Table 5084 Team Salesperson](https://jonas-paprotka.de/ref/table/5084-team-salesperson/) `Team Code`
- [529](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L529) validates [Table 5084 Team Salesperson](https://jonas-paprotka.de/ref/table/5084-team-salesperson/) `Salesperson Code`
- [530](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L530) writes [Table 5084 Team Salesperson](https://jonas-paprotka.de/ref/table/5084-team-salesperson/) Insert(true)

## CreateTask

[Line 533](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L533).

- [536](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L536) writes [Table 5080 To-do](https://jonas-paprotka.de/ref/table/5080-to-do/) Insert(true)
- [537](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L537) validates [Table 5080 To-do](https://jonas-paprotka.de/ref/table/5080-to-do/) `Description`
- [538](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L538) writes [Table 5080 To-do](https://jonas-paprotka.de/ref/table/5080-to-do/) Modify(true)

## CreateWebSource

[Line 541](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L541).

- [544](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L544) validates [Table 5059 Web Source](https://jonas-paprotka.de/ref/table/5059-web-source/) `Code`
- [544](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L544) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [545](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L545) validates [Table 5059 Web Source](https://jonas-paprotka.de/ref/table/5059-web-source/) `Description`
- [546](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L546) writes [Table 5059 Web Source](https://jonas-paprotka.de/ref/table/5059-web-source/) Insert(true)

## CreateEmailMergeCustomLayoutNo

[Line 549](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L549).

- [557](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L557) writes [Table 9650 Custom Report Layout](https://jonas-paprotka.de/ref/table/9650-custom-report-layout/) Insert(true)

## CreateEmailMergeAttachment

[Line 561](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L561).

- [564](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L564) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetNewRecNo`
- [567](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L567) writes [Table 5062 Attachment](https://jonas-paprotka.de/ref/table/5062-attachment/) Insert(true)
- [569](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L569) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomAlphabeticText`
- [569](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L569) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandIntInRange`
- [570](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L570) calls [Table 5062 Attachment](https://jonas-paprotka.de/ref/table/5062-attachment/) `WriteHTMLCustomLayoutAttachment`
- [570](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L570) calls `FindEmailMergeCustomLayoutName`

## CreateIntrastatContact

[Line 573](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L573).

- [577](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L577) calls `CreateCompanyContact`
- [578](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L578) validates [Table 5050 Contact](https://jonas-paprotka.de/ref/table/5050-contact/) `Address`
- [578](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L578) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateGUID`
- [579](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L579) validates [Table 5050 Contact](https://jonas-paprotka.de/ref/table/5050-contact/) `Country/Region Code`
- [580](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L580) validates [Table 5050 Contact](https://jonas-paprotka.de/ref/table/5050-contact/) `Post Code`
- [580](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L580) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateGUID`
- [581](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L581) validates [Table 5050 Contact](https://jonas-paprotka.de/ref/table/5050-contact/) `City`
- [581](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L581) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateGUID`
- [582](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L582) validates [Table 5050 Contact](https://jonas-paprotka.de/ref/table/5050-contact/) `Phone No.`
- [582](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L582) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomPhoneNo`
- [583](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L583) validates [Table 5050 Contact](https://jonas-paprotka.de/ref/table/5050-contact/) `Fax No.`
- [583](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L583) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateGUID`
- [584](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L584) validates [Table 5050 Contact](https://jonas-paprotka.de/ref/table/5050-contact/) `E-Mail`
- [584](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L584) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateGUID`
- [584](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L584) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateGUID`
- [585](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L585) writes [Table 5050 Contact](https://jonas-paprotka.de/ref/table/5050-contact/) Modify(true)

## RunAddContactsReport

[Line 618](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L618).

- [623](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L623) calls [Codeunit 131004 Library - Variable Storage](https://jonas-paprotka.de/ref/codeunit/131004-library-variable-storage/) `Length`
- [624](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L624) calls [Codeunit 131004 Library - Variable Storage](https://jonas-paprotka.de/ref/codeunit/131004-library-variable-storage/) `Dequeue`
- [627](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L627) calls [Report 5198 Add Contacts](https://jonas-paprotka.de/ref/report/5198-add-contacts/) `UseRequestPage`

## UpdateContactAddress

[Line 631](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L631).

- [635](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L635) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomText`
- [636](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L636) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomText`
- [637](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L637) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomText`
- [638](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L638) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomText`
- [639](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L639) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomText`
- [640](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L640) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomText`
- [641](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L641) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `CreateCountryRegion`
- [642](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L642) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomText`
- [643](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L643) writes [Table 9 Country/Region](https://jonas-paprotka.de/ref/table/9-country-region/) Modify
- [645](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/source/#L645) writes [Table 5050 Contact](https://jonas-paprotka.de/ref/table/5050-contact/) Modify

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
