Codeunit 131900 Library - Marketing

Application Test Library

src/Layers/W1/Tests/ApplicationTestLibrary/LibraryMarketing.Codeunit.al57 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

CreateActivity line 18

  1. 21validatesTable 5081 Activity Code
  2. 21callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 22validatesTable 5081 Activity Description
  4. 23writesTable 5081 Activity Insert(true)

CreateActivityStep line 26

  1. 31validatesTable 5082 Activity Step Activity Code
  2. 33validatesTable 5082 Activity Step Step No.
  3. 33callsCodeunit 131000 Library - Utility GetNewLineNo
  4. 34writesTable 5082 Activity Step Insert(true)

CreateAttachment line 37

  1. 48writesTable 5062 Attachment Insert(true)

CreateBusinessRelation line 51

  1. 54validatesTable 5053 Business Relation Code
  2. 54callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 55validatesTable 5053 Business Relation Description
  4. 56writesTable 5053 Business Relation Insert(true)

CreateCampaign line 59

  1. 65validatesTable 5079 Marketing Setup Campaign Nos.
  2. 65callsCodeunit 131000 Library - Utility GetGlobalNoSeriesCode
  3. 66writesTable 5079 Marketing Setup Modify(true)
  4. 71writesTable 5071 Campaign Insert(true)
  5. 72validatesTable 5071 Campaign Description
  6. 73writesTable 5071 Campaign Modify(true)

CreateCampaignStatus line 76

  1. 79validatesTable 5073 Campaign Status Code
  2. 79callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 80validatesTable 5073 Campaign Status Description
  4. 81writesTable 5073 Campaign Status Insert(true)

CreateCloseOpportunityCode line 84

  1. 87validatesTable 5094 Close Opportunity Code Code
  2. 88callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 90validatesTable 5094 Close Opportunity Code Description
  4. 91writesTable 5094 Close Opportunity Code Insert(true)

CreateCompanyContact line 94

  1. 96callsCreateContact

CreateCompanyContactNo line 99

  1. 103callsCreateCompanyContact

CreateCompanyContactTask line 107

  1. 111callsCodeunit 130509 Library - Sales CreateSalesperson
  2. 113validatesTable 5080 To-do Description
  3. 114validatesTable 5080 To-do Type
  4. 115validatesTable 5080 To-do Contact No.
  5. 115callsCreateCompanyContactNo
  6. 116validatesTable 5080 To-do Salesperson Code
  7. 117validatesTable 5080 To-do Date
  8. 118validatesTable 5080 To-do Start Time
  9. 119validatesTable 5080 To-do Duration
  10. 119callsCodeunit 130440 Library - Random RandIntInRange
  11. 120writesTable 5080 To-do Insert(true)

CreatePersonContact line 123

  1. 125callsCreateContact

CreatePersonContactNo line 128

  1. 132callsCreatePersonContact

CreatePersonContactWithCompanyNo line 137

  1. 139callsCreatePersonContact
  2. 140validatesTable 5050 Contact Company No.
  3. 140callsCreateCompanyContactNo
  4. 141writesTable 5050 Contact Modify(true)

CreateContact line 144, local

  1. 151validatesTable 5079 Marketing Setup Contact Nos.
  2. 151callsCodeunit 131000 Library - Utility GetGlobalNoSeriesCode
  3. 152writesTable 5079 Marketing Setup Modify(true)
  4. 157writesTable 5050 Contact Insert(true)
  5. 158validatesTable 5050 Contact Name
  6. 159validatesTable 5050 Contact Salesperson Code
  7. 160validatesTable 5050 Contact Type
  8. 161callsTable 5050 Contact TypeChange
  9. 162writesTable 5050 Contact Modify(true)

CreateContactAltAddress line 165

  1. 168validatesTable 5051 Contact Alt. Address Contact No.
  2. 169validatesTable 5051 Contact Alt. Address Code
  3. 170callsCodeunit 131000 Library - Utility GenerateRandomCode
  4. 171writesTable 5051 Contact Alt. Address Insert(true)

CreateContactAltAddrDateRange line 174

  1. 177validatesTable 5052 Contact Alt. Addr. Date Range Contact No.
  2. 178validatesTable 5052 Contact Alt. Addr. Date Range Starting Date
  3. 179writesTable 5052 Contact Alt. Addr. Date Range Insert(true)

CreateContactBusinessRelation line 182

  1. 185validatesTable 5054 Contact Business Relation Contact No.
  2. 186validatesTable 5054 Contact Business Relation Business Relation Code
  3. 187writesTable 5054 Contact Business Relation Insert(true)

CreateContactIndustryGroup line 190

  1. 193validatesTable 5058 Contact Industry Group Contact No.
  2. 194validatesTable 5058 Contact Industry Group Industry Group Code
  3. 195writesTable 5058 Contact Industry Group Insert(true)

CreateContactJobResponsibility line 198

  1. 201validatesTable 5067 Contact Job Responsibility Contact No.
  2. 202validatesTable 5067 Contact Job Responsibility Job Responsibility Code
  3. 203writesTable 5067 Contact Job Responsibility Insert(true)

CreateContactMailingGroup line 206

  1. 209validatesTable 5056 Contact Mailing Group Contact No.
  2. 210validatesTable 5056 Contact Mailing Group Mailing Group Code
  3. 211writesTable 5056 Contact Mailing Group Insert(true)

CreateContactWebSource line 214

  1. 217validatesTable 5060 Contact Web Source Contact No.
  2. 218validatesTable 5060 Contact Web Source Web Source Code
  3. 219writesTable 5060 Contact Web Source Insert(true)

CreateBusinessRelationWithContact line 222

  1. 226callsCreateBusinessRelation
  2. 227callsCreateContactBusinessRelation
  3. 229callsCodeunit 130509 Library - Sales CreateCustomerNo
  4. 230writesTable 5054 Contact Business Relation Modify(true)

CreateBusinessRelationBetweenContactAndCustomer line 233

  1. 237callsCreateBusinessRelation
  2. 238callsCreateContactBusinessRelation
  3. 241writesTable 5054 Contact Business Relation Modify(true)

CreateBusinessRelationBetweenContactAndVendor line 244

  1. 248callsCreateBusinessRelation
  2. 249callsCreateContactBusinessRelation
  3. 252writesTable 5054 Contact Business Relation Modify(true)

CreateContactWithCustomer line 255

  1. 259callsCreateCompanyContact
  2. 260callsCodeunit 130509 Library - Sales CreateCustomer
  3. 261callsCreateBusinessRelationBetweenContactAndCustomer

CreateContactWithVendor line 264

  1. 268callsCreateCompanyContact
  2. 269callsCodeunit 130512 Library - Purchase CreateVendor
  3. 270callsCreateBusinessRelationBetweenContactAndVendor

CreateInteractionGroup line 273

  1. 276validatesTable 5063 Interaction Group Code
  2. 276callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 277validatesTable 5063 Interaction Group Description
  4. 278writesTable 5063 Interaction Group Insert(true)

CreateInteractionLogEntry line 281

  1. 291writesTable 5065 Interaction Log Entry Insert
  2. 296writesTable 5065 Interaction Log Entry Modify

CreateInteractionTemplate line 299

  1. 305validatesTable 5064 Interaction Template Code
  2. 306callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 307validatesTable 5064 Interaction Template Interaction Group Code
  4. 309validatesTable 5064 Interaction Template Description
  5. 310validatesTable 5064 Interaction Template Correspondence Type (Default)
  6. 311writesTable 5064 Interaction Template Insert(true)

CreateJobResponsibility line 314

  1. 317validatesTable 5066 Job Responsibility Code
  2. 318callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 319validatesTable 5066 Job Responsibility Description
  4. 320writesTable 5066 Job Responsibility Insert(true)

CreateMailingGroup line 323

  1. 326validatesTable 5055 Mailing Group Code
  2. 326callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 327validatesTable 5055 Mailing Group Description
  4. 328writesTable 5055 Mailing Group Insert(true)

CreateOpportunity line 331

  1. 338callsCodeunit 131000 Library - Utility GenerateGUID
  2. 339validatesTable 5092 Opportunity Contact No.
  3. 345validatesTable 5092 Opportunity Salesperson Code
  4. 346validatesTable 5092 Opportunity Description
  5. 349validatesTable 5092 Opportunity Sales Cycle Code
  6. 350writesTable 5092 Opportunity Insert(true)

CreateQuestionnaireHeader line 353

  1. 356validatesTable 5087 Profile Questionnaire Header Code
  2. 357callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 360validatesTable 5087 Profile Questionnaire Header Description
  4. 361writesTable 5087 Profile Questionnaire Header Insert(true)

CreateProfileQuestionnaireLine line 364

  1. 369validatesTable 5088 Profile Questionnaire Line Profile Questionnaire Code
  2. 372validatesTable 5088 Profile Questionnaire Line Line No.
  3. 372callsCodeunit 131000 Library - Utility GetNewLineNo
  4. 373writesTable 5088 Profile Questionnaire Line Insert(true)

CreateContactProfileAnswer line 376

  1. 381validatesTable 5089 Contact Profile Answer Contact No.
  2. 382validatesTable 5089 Contact Profile Answer Profile Questionnaire Code
  3. 383validatesTable 5089 Contact Profile Answer Line No.
  4. 384validatesTable 5089 Contact Profile Answer Profile Questionnaire Value
  5. 385writesTable 5089 Contact Profile Answer Insert(true)

CreateRlshpMgtCommentLine line 388

  1. 393validatesTable 5061 Rlshp. Mgt. Comment Line Table Name
  2. 394validatesTable 5061 Rlshp. Mgt. Comment Line No.
  3. 395validatesTable 5061 Rlshp. Mgt. Comment Line Sub No.
  4. 397validatesTable 5061 Rlshp. Mgt. Comment Line Line No.
  5. 397callsCodeunit 131000 Library - Utility GetNewLineNo
  6. 398writesTable 5061 Rlshp. Mgt. Comment Line Insert(true)

CreateRlshpMgtCommentContact line 401

  1. 403callsCreateRlshpMgtCommentLine

CreateRlshpMgtCommentSales line 407

  1. 409callsCreateRlshpMgtCommentLine

CreateSalutation line 413

  1. 416validatesTable 5068 Salutation Code
  2. 416callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 417validatesTable 5068 Salutation Description
  4. 418writesTable 5068 Salutation Insert(true)

CreateSalutationFormula line 421

  1. 424validatesTable 5069 Salutation Formula Salutation Code
  2. 425validatesTable 5069 Salutation Formula Language Code
  3. 426validatesTable 5069 Salutation Formula Salutation Type
  4. 427writesTable 5069 Salutation Formula Insert(true)

CreateSalesCycle line 430

  1. 433validatesTable 5090 Sales Cycle Code
  2. 433callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 434validatesTable 5090 Sales Cycle Description
  4. 435writesTable 5090 Sales Cycle Insert(true)

CreateSalesCycleStage line 438

  1. 449validatesTable 5091 Sales Cycle Stage Sales Cycle Code
  2. 450validatesTable 5091 Sales Cycle Stage Stage
  3. 451writesTable 5091 Sales Cycle Stage Insert(true)

CreateSalesHeaderWithContact line 454

  1. 457writesTable 36 Sales Header Insert(true)
  2. 458validatesTable 36 Sales Header Sell-to Contact No.
  3. 459writesTable 36 Sales Header Modify(true)

CreateSalesQuoteWithContact line 462

  1. 465writesTable 36 Sales Header Insert(true)
  2. 466callsTable 36 Sales Header SetHideValidationDialog
  3. 467validatesTable 36 Sales Header Document Type
  4. 468validatesTable 36 Sales Header Sell-to Contact No.
  5. 469writesTable 36 Sales Header Modify(true)

CreateSalesLineDiscount line 472

  1. 475validatesTable 7004 Sales Line Discount Type
  2. 476validatesTable 7004 Sales Line Discount Code
  3. 477validatesTable 7004 Sales Line Discount Sales Type
  4. 478validatesTable 7004 Sales Line Discount Sales Code
  5. 479writesTable 7004 Sales Line Discount Insert(true)

CreateSalesPriceForCampaign line 482

  1. 485validatesTable 7002 Sales Price Item No.
  2. 486validatesTable 7002 Sales Price Sales Type
  3. 487validatesTable 7002 Sales Price Sales Code
  4. 488writesTable 7002 Sales Price Insert(true)

CreateSegmentHeader line 491

  1. 497validatesTable 5079 Marketing Setup Segment Nos.
  2. 497callsCodeunit 131000 Library - Utility GetGlobalNoSeriesCode
  3. 498writesTable 5079 Marketing Setup Modify(true)
  4. 502writesTable 5076 Segment Header Insert(true)
  5. 503validatesTable 5076 Segment Header Description
  6. 504writesTable 5076 Segment Header Modify(true)

CreateSegmentLine line 507

  1. 512validatesTable 5077 Segment Line Segment No.
  2. 514validatesTable 5077 Segment Line Line No.
  3. 514callsCodeunit 131000 Library - Utility GetNewLineNo
  4. 515writesTable 5077 Segment Line Insert(true)

CreateTeam line 518

  1. 521validatesTable 5083 Team Code
  2. 521callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 522writesTable 5083 Team Insert(true)

CreateTeamSalesperson line 525

  1. 528validatesTable 5084 Team Salesperson Team Code
  2. 529validatesTable 5084 Team Salesperson Salesperson Code
  3. 530writesTable 5084 Team Salesperson Insert(true)

CreateTask line 533

  1. 536writesTable 5080 To-do Insert(true)
  2. 537validatesTable 5080 To-do Description
  3. 538writesTable 5080 To-do Modify(true)

CreateWebSource line 541

  1. 544validatesTable 5059 Web Source Code
  2. 544callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 545validatesTable 5059 Web Source Description
  4. 546writesTable 5059 Web Source Insert(true)

CreateEmailMergeCustomLayoutNo line 549

  1. 557writesTable 9650 Custom Report Layout Insert(true)

CreateEmailMergeAttachment line 561

  1. 564callsCodeunit 131000 Library - Utility GetNewRecNo
  2. 567writesTable 5062 Attachment Insert(true)
  3. 569callsCodeunit 131000 Library - Utility GenerateRandomAlphabeticText
  4. 569callsCodeunit 130440 Library - Random RandIntInRange
  5. 570callsTable 5062 Attachment WriteHTMLCustomLayoutAttachment
  6. 570callsFindEmailMergeCustomLayoutName

CreateIntrastatContact line 573

  1. 577callsCreateCompanyContact
  2. 578validatesTable 5050 Contact Address
  3. 578callsCodeunit 131000 Library - Utility GenerateGUID
  4. 579validatesTable 5050 Contact Country/Region Code
  5. 580validatesTable 5050 Contact Post Code
  6. 580callsCodeunit 131000 Library - Utility GenerateGUID
  7. 581validatesTable 5050 Contact City
  8. 581callsCodeunit 131000 Library - Utility GenerateGUID
  9. 582validatesTable 5050 Contact Phone No.
  10. 582callsCodeunit 131000 Library - Utility GenerateRandomPhoneNo
  11. 583validatesTable 5050 Contact Fax No.
  12. 583callsCodeunit 131000 Library - Utility GenerateGUID
  13. 584validatesTable 5050 Contact E-Mail
  14. 584callsCodeunit 131000 Library - Utility GenerateGUID
  15. 584callsCodeunit 131000 Library - Utility GenerateGUID
  16. 585writesTable 5050 Contact Modify(true)

RunAddContactsReport line 618

  1. 623callsCodeunit 131004 Library - Variable Storage Length
  2. 624callsCodeunit 131004 Library - Variable Storage Dequeue
  3. 627callsReport 5198 Add Contacts UseRequestPage

UpdateContactAddress line 631

  1. 635callsCodeunit 131000 Library - Utility GenerateRandomText
  2. 636callsCodeunit 131000 Library - Utility GenerateRandomText
  3. 637callsCodeunit 131000 Library - Utility GenerateRandomText
  4. 638callsCodeunit 131000 Library - Utility GenerateRandomText
  5. 639callsCodeunit 131000 Library - Utility GenerateRandomText
  6. 640callsCodeunit 131000 Library - Utility GenerateRandomText
  7. 641callsCodeunit 131300 Library - ERM CreateCountryRegion
  8. 642callsCodeunit 131000 Library - Utility GenerateRandomText
  9. 643writesTable 9 Country/Region Modify
  10. 645writesTable 5050 Contact Modify