---
title: "Codeunit 131900 Library - Marketing"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/
type: codeunit
id: 131900
name: "Library - Marketing"
app: "Application Test Library"
versions: "28-29"
build: 29.0.54011.55644
countries: "W1, DE, US"
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

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

| | |
| --- | --- |
| App | Application Test Library |
| Versions | 28-29 |
| Minors | W1 28.0-29.0; DE 28.0-29.0; US 28.0-29.0, [every minor](https://jonas-paprotka.de/ref/codeunit/131900-library-marketing/editions.json) |
| Source file | LibraryMarketing.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| CreateActivity | (var Activity: Record Activity) | - | public | 28-29 | - | - |
| CreateActivityStep | (var ActivityStep: Record "Activity Step"; ActivityCode: Code[10]) | - | public | 28-29 | - | - |
| CreateAttachment | (var Attachment: Record Attachment) | - | public | 28-29 | - | - |
| CreateBusinessRelation | (var BusinessRelation: Record "Business Relation") | - | public | 28-29 | - | - |
| CreateCampaign | (var Campaign: Record Campaign) | - | public | 28-29 | - | - |
| CreateCampaignStatus | (var CampaignStatus: Record "Campaign Status") | - | public | 28-29 | - | - |
| CreateCloseOpportunityCode | (var CloseOpportunityCode: Record "Close Opportunity Code") | - | public | 28-29 | - | - |
| CreateCompanyContact | (var Contact: Record Contact) | - | public | 28-29 | - | - |
| CreateCompanyContactNo | () | Code[20] | public | 28-29 | - | - |
| CreateCompanyContactTask | (var Task: Record "To-do"; TaskType: Option) | - | public | 28-29 | - | - |
| CreatePersonContact | (var Contact: Record Contact) | - | public | 28-29 | - | - |
| CreatePersonContactNo | () | Code[20] | public | 28-29 | - | - |
| CreatePersonContactWithCompanyNo | (var Contact: Record Contact) | - | public | 28-29 | - | - |
| CreateContactAltAddress | (var ContactAltAddress: Record "Contact Alt. Address"; ContactNo: Code[20]) | - | public | 28-29 | - | - |
| CreateContactAltAddrDateRange | (var ContactAltAddrDateRange: Record "Contact Alt. Addr. Date Range"; ContactNo: Code[20]; StartingDate: Date) | - | public | 28-29 | - | - |
| CreateContactBusinessRelation | (var ContactBusinessRelation: Record "Contact Business Relation"; ContactNo: Code[20]; BusinessRelationCode: Code[10]) | - | public | 28-29 | - | - |
| CreateContactIndustryGroup | (var ContactIndustryGroup: Record "Contact Industry Group"; ContactNo: Code[20]; IndustryGroupCode: Code[10]) | - | public | 28-29 | - | - |
| CreateContactJobResponsibility | (var ContactJobResponsibility: Record "Contact Job Responsibility"; ContactNo: Code[20]; JobResponsibilityCode: Code[10]) | - | public | 28-29 | - | - |
| CreateContactMailingGroup | (var ContactMailingGroup: Record "Contact Mailing Group"; ContactNo: Code[20]; MailingGroupCode: Code[10]) | - | public | 28-29 | - | - |
| CreateContactWebSource | (var ContactWebSource: Record "Contact Web Source"; ContactNo: Code[20]; WebSourceCode: Code[10]) | - | public | 28-29 | - | - |
| CreateBusinessRelationWithContact | (var ContactBusinessRelation: Record "Contact Business Relation"; ContactNo: Code[20]) | - | public | 28-29 | - | - |
| CreateBusinessRelationBetweenContactAndCustomer | (var ContactBusinessRelation: Record "Contact Business Relation"; ContactNo: Code[20]; CustomerNo: Code[20]) | - | public | 28-29 | - | - |
| CreateBusinessRelationBetweenContactAndVendor | (var ContactBusinessRelation: Record "Contact Business Relation"; ContactNo: Code[20]; VendorNo: Code[20]) | - | public | 28-29 | - | - |
| CreateContactWithCustomer | (var Contact: Record Contact; var Customer: Record Customer) | - | public | 28-29 | - | - |
| CreateContactWithVendor | (var Contact: Record Contact; var Vendor: Record Vendor) | - | public | 28-29 | - | - |
| CreateInteractionGroup | (var InteractionGroup: Record "Interaction Group") | - | public | 28-29 | - | - |
| CreateInteractionLogEntry | (var InteractionLogEntry: Record "Interaction Log Entry"; DocumentType: Enum "Interaction Log Entry Document Type"; DocumentNo: Code[20]) | - | public | 28-29 | - | - |
| CreateInteractionTemplate | (var InteractionTemplate: Record "Interaction Template") | - | public | 28-29 | - | - |
| CreateJobResponsibility | (var JobResponsibility: Record "Job Responsibility") | - | public | 28-29 | - | - |
| CreateMailingGroup | (var MailingGroup: Record "Mailing Group") | - | public | 28-29 | - | - |
| CreateOpportunity | (var Opportunity: Record Opportunity; ContactNo: Code[20]) | - | public | 28-29 | - | - |
| CreateQuestionnaireHeader | (var ProfileQuestionnaireHeader: Record "Profile Questionnaire Header") | - | public | 28-29 | - | - |
| CreateProfileQuestionnaireLine | (var ProfileQuestionnaireLine: Record "Profile Questionnaire Line"; ProfileQuestionnaireCode: Code[20]) | - | public | 28-29 | - | - |
| CreateContactProfileAnswer | (ContactNo: Code[20]; ProfileQuestionnaireCode: Code[20]; LineNo: Integer; NewProfileQuestionnaireValue: Text) | - | public | 28-29 | - | - |
| CreateRlshpMgtCommentLine | (var RlshpMgtCommentLine: Record "Rlshp. Mgt. Comment Line"; TableName: Enum "Rlshp. Mgt. Comment Line Table Name"; No: Code[20]; SubNo: Integer) | - | public | 28-29 | - | - |
| CreateRlshpMgtCommentContact | (var RlshpMgtCommentLine: Record "Rlshp. Mgt. Comment Line"; ContactNo: Code[20]) | - | public | 28-29 | - | - |
| CreateRlshpMgtCommentSales | (var RlshpMgtCommentLine: Record "Rlshp. Mgt. Comment Line"; SalesCycleCode: Code[10]) | - | public | 28-29 | - | - |
| CreateSalutation | (var Salutation: Record Salutation) | - | public | 28-29 | - | - |
| CreateSalutationFormula | (var SalutationFormula: Record "Salutation Formula"; SalutationCode: Code[10]; LanguageCode: Code[10]; SalutationType: Enum "Salutation Formula Salutation Type") | - | public | 28-29 | - | - |
| CreateSalesCycle | (var SalesCycle: Record "Sales Cycle") | - | public | 28-29 | - | - |
| CreateSalesCycleStage | (var SalesCycleStage: Record "Sales Cycle Stage"; SalesCycleCode: Code[10]) | - | public | 28-29 | - | - |
| CreateSalesHeaderWithContact | (var SalesHeader: Record "Sales Header"; SellToContactNo: Code[20]; SellToCustomerTemplateCode: Code[10]) | - | public | 28-29 | - | - |
| CreateSalesQuoteWithContact | (var SalesHeader: Record "Sales Header"; SellToContactNo: Code[20]; SellToCustomerTemplateCode: Code[10]) | - | public | 28-29 | - | - |
| CreateSalesLineDiscount | (var SalesLineDiscount: Record "Sales Line Discount"; CampaignNo: Code[20]; ItemNo: Code[20]) | - | public | 28-29 | - | - |
| CreateSalesPriceForCampaign | (var SalesPrice: Record "Sales Price"; ItemNo: Code[20]; CampaignNo: Code[20]) | - | public | 28-29 | - | - |
| CreateSegmentHeader | (var SegmentHeader: Record "Segment Header") | - | public | 28-29 | - | - |
| CreateSegmentLine | (var SegmentLine: Record "Segment Line"; SegmentHeaderNo: Code[20]) | - | public | 28-29 | - | - |
| CreateTeam | (var Team: Record Team) | - | public | 28-29 | - | - |
| CreateTeamSalesperson | (var TeamSalesperson: Record "Team Salesperson"; TeamCode: Code[10]; SalespersonCode: Code[20]) | - | public | 28-29 | - | - |
| CreateTask | (var Task: Record "To-do") | - | public | 28-29 | - | - |
| CreateWebSource | (var WebSource: Record "Web Source") | - | public | 28-29 | - | - |
| CreateEmailMergeCustomLayoutNo | () | Code[20] | public | 28-29 | - | - |
| CreateEmailMergeAttachment | (var Attachment: Record Attachment) | Text | public | 28-29 | - | - |
| CreateIntrastatContact | (CountryRegionCode: Code[10]) | Code[20] | public | 28-29 | - | - |
| FindContact | (var Contact: Record Contact) | - | public | 28-29 | - | - |
| FindEmailMergeCustomLayoutNo | () | Code[20] | public | 28-29 | - | - |
| FindEmailMergeCustomLayoutName | () | Text[250] | public | 28-29 | - | - |
| RunAddContactsReport | (LibraryVariableStorage: Codeunit "Library - Variable Storage"; UseRequestPage: Boolean) | - | public | 28-29 | - | - |
| UpdateContactAddress | (var Contact: Record Contact) | - | public | 28-29 | - | - |

## Source

Symbols: Microsoft.ApplicationTestLibrary.symbols.d852d5d2-a39d-4179-baeb-f99a19e32510, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-11-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
