Codeunit 131900 Library - Marketing
src/Layers/W1/Tests/ApplicationTestLibrary/LibraryMarketing.Codeunit.al57 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT
CreateActivity line 18
- 21validatesTable 5081 Activity Code
- 21callsCodeunit 131000 Library - Utility GenerateRandomCode
- 22validatesTable 5081 Activity Description
- 23writesTable 5081 Activity Insert(true)
CreateActivityStep line 26
- 31validatesTable 5082 Activity Step Activity Code
- 33validatesTable 5082 Activity Step Step No.
- 33callsCodeunit 131000 Library - Utility GetNewLineNo
- 34writesTable 5082 Activity Step Insert(true)
CreateAttachment line 37
- 48writesTable 5062 Attachment Insert(true)
CreateBusinessRelation line 51
- 54validatesTable 5053 Business Relation Code
- 54callsCodeunit 131000 Library - Utility GenerateRandomCode
- 55validatesTable 5053 Business Relation Description
- 56writesTable 5053 Business Relation Insert(true)
CreateCampaign line 59
- 65validatesTable 5079 Marketing Setup Campaign Nos.
- 65callsCodeunit 131000 Library - Utility GetGlobalNoSeriesCode
- 66writesTable 5079 Marketing Setup Modify(true)
- 71writesTable 5071 Campaign Insert(true)
- 72validatesTable 5071 Campaign Description
- 73writesTable 5071 Campaign Modify(true)
CreateCampaignStatus line 76
- 79validatesTable 5073 Campaign Status Code
- 79callsCodeunit 131000 Library - Utility GenerateRandomCode
- 80validatesTable 5073 Campaign Status Description
- 81writesTable 5073 Campaign Status Insert(true)
CreateCloseOpportunityCode line 84
- 87validatesTable 5094 Close Opportunity Code Code
- 88callsCodeunit 131000 Library - Utility GenerateRandomCode
- 90validatesTable 5094 Close Opportunity Code Description
- 91writesTable 5094 Close Opportunity Code Insert(true)
CreateCompanyContact line 94
- 96callsCreateContact
CreateCompanyContactNo line 99
CreateCompanyContactTask line 107
- 111callsCodeunit 130509 Library - Sales CreateSalesperson
- 113validatesTable 5080 To-do Description
- 114validatesTable 5080 To-do Type
- 115validatesTable 5080 To-do Contact No.
- 115callsCreateCompanyContactNo
- 116validatesTable 5080 To-do Salesperson Code
- 117validatesTable 5080 To-do Date
- 118validatesTable 5080 To-do Start Time
- 119validatesTable 5080 To-do Duration
- 119callsCodeunit 130440 Library - Random RandIntInRange
- 120writesTable 5080 To-do Insert(true)
CreatePersonContact line 123
- 125callsCreateContact
CreatePersonContactNo line 128
CreatePersonContactWithCompanyNo line 137
- 139callsCreatePersonContact
- 140validatesTable 5050 Contact Company No.
- 140callsCreateCompanyContactNo
- 141writesTable 5050 Contact Modify(true)
CreateContact line 144, local
- 151validatesTable 5079 Marketing Setup Contact Nos.
- 151callsCodeunit 131000 Library - Utility GetGlobalNoSeriesCode
- 152writesTable 5079 Marketing Setup Modify(true)
- 157writesTable 5050 Contact Insert(true)
- 158validatesTable 5050 Contact Name
- 159validatesTable 5050 Contact Salesperson Code
- 160validatesTable 5050 Contact Type
- 161callsTable 5050 Contact TypeChange
- 162writesTable 5050 Contact Modify(true)
CreateContactAltAddress line 165
- 168validatesTable 5051 Contact Alt. Address Contact No.
- 169validatesTable 5051 Contact Alt. Address Code
- 170callsCodeunit 131000 Library - Utility GenerateRandomCode
- 171writesTable 5051 Contact Alt. Address Insert(true)
CreateContactAltAddrDateRange line 174
- 177validatesTable 5052 Contact Alt. Addr. Date Range Contact No.
- 178validatesTable 5052 Contact Alt. Addr. Date Range Starting Date
- 179writesTable 5052 Contact Alt. Addr. Date Range Insert(true)
CreateContactBusinessRelation line 182
- 185validatesTable 5054 Contact Business Relation Contact No.
- 186validatesTable 5054 Contact Business Relation Business Relation Code
- 187writesTable 5054 Contact Business Relation Insert(true)
CreateContactIndustryGroup line 190
- 193validatesTable 5058 Contact Industry Group Contact No.
- 194validatesTable 5058 Contact Industry Group Industry Group Code
- 195writesTable 5058 Contact Industry Group Insert(true)
CreateContactJobResponsibility line 198
- 201validatesTable 5067 Contact Job Responsibility Contact No.
- 202validatesTable 5067 Contact Job Responsibility Job Responsibility Code
- 203writesTable 5067 Contact Job Responsibility Insert(true)
CreateContactMailingGroup line 206
- 209validatesTable 5056 Contact Mailing Group Contact No.
- 210validatesTable 5056 Contact Mailing Group Mailing Group Code
- 211writesTable 5056 Contact Mailing Group Insert(true)
CreateContactWebSource line 214
- 217validatesTable 5060 Contact Web Source Contact No.
- 218validatesTable 5060 Contact Web Source Web Source Code
- 219writesTable 5060 Contact Web Source Insert(true)
CreateBusinessRelationWithContact line 222
- 226callsCreateBusinessRelation
- 227callsCreateContactBusinessRelation
- 229callsCodeunit 130509 Library - Sales CreateCustomerNo
- 230writesTable 5054 Contact Business Relation Modify(true)
CreateBusinessRelationBetweenContactAndCustomer line 233
- 237callsCreateBusinessRelation
- 238callsCreateContactBusinessRelation
- 241writesTable 5054 Contact Business Relation Modify(true)
CreateBusinessRelationBetweenContactAndVendor line 244
- 248callsCreateBusinessRelation
- 249callsCreateContactBusinessRelation
- 252writesTable 5054 Contact Business Relation Modify(true)
CreateContactWithCustomer line 255
- 259callsCreateCompanyContact
- 260callsCodeunit 130509 Library - Sales CreateCustomer
- 261callsCreateBusinessRelationBetweenContactAndCustomer
CreateContactWithVendor line 264
- 268callsCreateCompanyContact
- 269callsCodeunit 130512 Library - Purchase CreateVendor
- 270callsCreateBusinessRelationBetweenContactAndVendor
CreateInteractionGroup line 273
- 276validatesTable 5063 Interaction Group Code
- 276callsCodeunit 131000 Library - Utility GenerateRandomCode
- 277validatesTable 5063 Interaction Group Description
- 278writesTable 5063 Interaction Group Insert(true)
CreateInteractionLogEntry line 281
- 291writesTable 5065 Interaction Log Entry Insert
- 296writesTable 5065 Interaction Log Entry Modify
CreateInteractionTemplate line 299
- 305validatesTable 5064 Interaction Template Code
- 306callsCodeunit 131000 Library - Utility GenerateRandomCode
- 307validatesTable 5064 Interaction Template Interaction Group Code
- 309validatesTable 5064 Interaction Template Description
- 310validatesTable 5064 Interaction Template Correspondence Type (Default)
- 311writesTable 5064 Interaction Template Insert(true)
CreateJobResponsibility line 314
- 317validatesTable 5066 Job Responsibility Code
- 318callsCodeunit 131000 Library - Utility GenerateRandomCode
- 319validatesTable 5066 Job Responsibility Description
- 320writesTable 5066 Job Responsibility Insert(true)
CreateMailingGroup line 323
- 326validatesTable 5055 Mailing Group Code
- 326callsCodeunit 131000 Library - Utility GenerateRandomCode
- 327validatesTable 5055 Mailing Group Description
- 328writesTable 5055 Mailing Group Insert(true)
CreateOpportunity line 331
- 338callsCodeunit 131000 Library - Utility GenerateGUID
- 339validatesTable 5092 Opportunity Contact No.
- 345validatesTable 5092 Opportunity Salesperson Code
- 346validatesTable 5092 Opportunity Description
- 349validatesTable 5092 Opportunity Sales Cycle Code
- 350writesTable 5092 Opportunity Insert(true)
CreateQuestionnaireHeader line 353
- 356validatesTable 5087 Profile Questionnaire Header Code
- 357callsCodeunit 131000 Library - Utility GenerateRandomCode
- 360validatesTable 5087 Profile Questionnaire Header Description
- 361writesTable 5087 Profile Questionnaire Header Insert(true)
CreateProfileQuestionnaireLine line 364
- 369validatesTable 5088 Profile Questionnaire Line Profile Questionnaire Code
- 372validatesTable 5088 Profile Questionnaire Line Line No.
- 372callsCodeunit 131000 Library - Utility GetNewLineNo
- 373writesTable 5088 Profile Questionnaire Line Insert(true)
CreateContactProfileAnswer line 376
- 381validatesTable 5089 Contact Profile Answer Contact No.
- 382validatesTable 5089 Contact Profile Answer Profile Questionnaire Code
- 383validatesTable 5089 Contact Profile Answer Line No.
- 384validatesTable 5089 Contact Profile Answer Profile Questionnaire Value
- 385writesTable 5089 Contact Profile Answer Insert(true)
CreateRlshpMgtCommentLine line 388
- 393validatesTable 5061 Rlshp. Mgt. Comment Line Table Name
- 394validatesTable 5061 Rlshp. Mgt. Comment Line No.
- 395validatesTable 5061 Rlshp. Mgt. Comment Line Sub No.
- 397validatesTable 5061 Rlshp. Mgt. Comment Line Line No.
- 397callsCodeunit 131000 Library - Utility GetNewLineNo
- 398writesTable 5061 Rlshp. Mgt. Comment Line Insert(true)
CreateRlshpMgtCommentContact line 401
CreateRlshpMgtCommentSales line 407
CreateSalutation line 413
- 416validatesTable 5068 Salutation Code
- 416callsCodeunit 131000 Library - Utility GenerateRandomCode
- 417validatesTable 5068 Salutation Description
- 418writesTable 5068 Salutation Insert(true)
CreateSalutationFormula line 421
- 424validatesTable 5069 Salutation Formula Salutation Code
- 425validatesTable 5069 Salutation Formula Language Code
- 426validatesTable 5069 Salutation Formula Salutation Type
- 427writesTable 5069 Salutation Formula Insert(true)
CreateSalesCycle line 430
- 433validatesTable 5090 Sales Cycle Code
- 433callsCodeunit 131000 Library - Utility GenerateRandomCode
- 434validatesTable 5090 Sales Cycle Description
- 435writesTable 5090 Sales Cycle Insert(true)
CreateSalesCycleStage line 438
- 449validatesTable 5091 Sales Cycle Stage Sales Cycle Code
- 450validatesTable 5091 Sales Cycle Stage Stage
- 451writesTable 5091 Sales Cycle Stage Insert(true)
CreateSalesHeaderWithContact line 454
- 457writesTable 36 Sales Header Insert(true)
- 458validatesTable 36 Sales Header Sell-to Contact No.
- 459writesTable 36 Sales Header Modify(true)
CreateSalesQuoteWithContact line 462
- 465writesTable 36 Sales Header Insert(true)
- 466callsTable 36 Sales Header SetHideValidationDialog
- 467validatesTable 36 Sales Header Document Type
- 468validatesTable 36 Sales Header Sell-to Contact No.
- 469writesTable 36 Sales Header Modify(true)
CreateSalesLineDiscount line 472
- 475validatesTable 7004 Sales Line Discount Type
- 476validatesTable 7004 Sales Line Discount Code
- 477validatesTable 7004 Sales Line Discount Sales Type
- 478validatesTable 7004 Sales Line Discount Sales Code
- 479writesTable 7004 Sales Line Discount Insert(true)
CreateSalesPriceForCampaign line 482
- 485validatesTable 7002 Sales Price Item No.
- 486validatesTable 7002 Sales Price Sales Type
- 487validatesTable 7002 Sales Price Sales Code
- 488writesTable 7002 Sales Price Insert(true)
CreateSegmentHeader line 491
- 497validatesTable 5079 Marketing Setup Segment Nos.
- 497callsCodeunit 131000 Library - Utility GetGlobalNoSeriesCode
- 498writesTable 5079 Marketing Setup Modify(true)
- 502writesTable 5076 Segment Header Insert(true)
- 503validatesTable 5076 Segment Header Description
- 504writesTable 5076 Segment Header Modify(true)
CreateSegmentLine line 507
- 512validatesTable 5077 Segment Line Segment No.
- 514validatesTable 5077 Segment Line Line No.
- 514callsCodeunit 131000 Library - Utility GetNewLineNo
- 515writesTable 5077 Segment Line Insert(true)
CreateTeam line 518
- 521validatesTable 5083 Team Code
- 521callsCodeunit 131000 Library - Utility GenerateRandomCode
- 522writesTable 5083 Team Insert(true)
CreateTeamSalesperson line 525
- 528validatesTable 5084 Team Salesperson Team Code
- 529validatesTable 5084 Team Salesperson Salesperson Code
- 530writesTable 5084 Team Salesperson Insert(true)
CreateTask line 533
- 536writesTable 5080 To-do Insert(true)
- 537validatesTable 5080 To-do Description
- 538writesTable 5080 To-do Modify(true)
CreateWebSource line 541
- 544validatesTable 5059 Web Source Code
- 544callsCodeunit 131000 Library - Utility GenerateRandomCode
- 545validatesTable 5059 Web Source Description
- 546writesTable 5059 Web Source Insert(true)
CreateEmailMergeCustomLayoutNo line 549
- 557writesTable 9650 Custom Report Layout Insert(true)
CreateEmailMergeAttachment line 561
- 564callsCodeunit 131000 Library - Utility GetNewRecNo
- 567writesTable 5062 Attachment Insert(true)
- 569callsCodeunit 131000 Library - Utility GenerateRandomAlphabeticText
- 569callsCodeunit 130440 Library - Random RandIntInRange
- 570callsTable 5062 Attachment WriteHTMLCustomLayoutAttachment
- 570callsFindEmailMergeCustomLayoutName
CreateIntrastatContact line 573
- 577callsCreateCompanyContact
- 578validatesTable 5050 Contact Address
- 578callsCodeunit 131000 Library - Utility GenerateGUID
- 579validatesTable 5050 Contact Country/Region Code
- 580validatesTable 5050 Contact Post Code
- 580callsCodeunit 131000 Library - Utility GenerateGUID
- 581validatesTable 5050 Contact City
- 581callsCodeunit 131000 Library - Utility GenerateGUID
- 582validatesTable 5050 Contact Phone No.
- 582callsCodeunit 131000 Library - Utility GenerateRandomPhoneNo
- 583validatesTable 5050 Contact Fax No.
- 583callsCodeunit 131000 Library - Utility GenerateGUID
- 584validatesTable 5050 Contact E-Mail
- 584callsCodeunit 131000 Library - Utility GenerateGUID
- 584callsCodeunit 131000 Library - Utility GenerateGUID
- 585writesTable 5050 Contact Modify(true)
RunAddContactsReport line 618
- 623callsCodeunit 131004 Library - Variable Storage Length
- 624callsCodeunit 131004 Library - Variable Storage Dequeue
- 627callsReport 5198 Add Contacts UseRequestPage
UpdateContactAddress line 631
- 635callsCodeunit 131000 Library - Utility GenerateRandomText
- 636callsCodeunit 131000 Library - Utility GenerateRandomText
- 637callsCodeunit 131000 Library - Utility GenerateRandomText
- 638callsCodeunit 131000 Library - Utility GenerateRandomText
- 639callsCodeunit 131000 Library - Utility GenerateRandomText
- 640callsCodeunit 131000 Library - Utility GenerateRandomText
- 641callsCodeunit 131300 Library - ERM CreateCountryRegion
- 642callsCodeunit 131000 Library - Utility GenerateRandomText
- 643writesTable 9 Country/Region Modify
- 645writesTable 5050 Contact Modify