---
id: object/codeunit/4795
type: object
title: Codeunit 4795 "Contoso Customer/Vendor"
summary: Codeunit 4795 "Contoso Customer/Vendor" in ContosoCoffeeDemoDataset (Microsoft.DemoTool.Helpers). 12 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - contosocoffeedemodataset
versions:
  introduced: "29"
  last_changed: null
  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: 8d33d0e4e6622728962c1cc0f819dbb67ed9aaa1bc5564a6e6b08997ddea3e48
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/ContosoCoffeeDemoDataset/app/DemoTool/Contoso%20Helpers/ContosoCustomerVendor.Codeunit.al
    title: src/Apps/W1/ContosoCoffeeDemoDataset/app/DemoTool/Contoso Helpers/ContosoCustomerVendor.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 4795
name: Contoso Customer/Vendor
namespace: Microsoft.DemoTool.Helpers
app: ContosoCoffeeDemoDataset
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 12
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 9
  implements: 0
---

# Codeunit 4795 "Contoso Customer/Vendor"

> Codeunit 4795 "Contoso Customer/Vendor" in ContosoCoffeeDemoDataset (Microsoft.DemoTool.Helpers). 12 public procedures. Introduced in BC29, still in BC30.

ContosoCoffeeDemoDataset · Microsoft.DemoTool.Helpers · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/ContosoCoffeeDemoDataset/app/DemoTool/Contoso%20Helpers/ContosoCustomerVendor.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Permissions | tabledata "Customer" = rim, tabledata "Vendor" = rim, tabledata "Customer Bank Account" = rim, tabledata "Customer Discount Group" = rim, tabledata "Customer Templ." = rim, tabledata "Dispute Status" = rim, tabledata "Ship-to Address" = rim |

## Procedures

- `SetOverwriteData(Overwrite: Boolean)`
- `InsertCustomer(CustomerNo: Code[20]; CustomerName: Text[100]; CountryOrRegionCode: Code[10]; Address: Text[100]; Address2: Text[50]; PostCode: Code[20]; CurrencyCode: Code[10]; CustomerPostingGroup: Code[20]; GenBusPostingGroup: Code[20]; VATBusPostingGroup: Code[20]; VATRegistrationNo: Text[20]; TaxAreaCode: Code[20]; TaxLiable: Boolean; PaymentTermsCode: Code[10]; Picture: Codeunit "Temp Blob"; DocumentSendingProfile: Code[20]; Contact: Text[100]; TerritoryCode: Code[10]; LanguageCode: Code[10]; SalespersonCode: Code[20]; EMail: Text[80]; ReminderTermsCode: Code[10])`
- `InsertCustomer(CustomerNo: Code[20]; CustomerName: Text[100]; CountryOrRegionCode: Code[10]; Address: Text[100]; PostCode: Code[20]; CurrencyCode: Code[10]; CustomerPostingGroup: Code[20]; GenBusPostingGroup: Code[20]; VATBusPostingGroup: Code[20]; VATRegistrationNo: Text[20]; TaxAreaCode: Code[20]; TaxLiable: Boolean; CustomerDiscountGroup: Code[20]; PaymentTermsCode: Code[10]; GLN: Code[13]; Picture: Codeunit "Temp Blob")`
- `InsertCustomer(CustomerNo: Code[20]; CustomerName: Text[100]; CountryOrRegionCode: Code[10]; Address: Text[100]; PostCode: Code[20]; CurrencyCode: Code[10]; CustomerPostingGroup: Code[20]; GenBusPostingGroup: Code[20]; VATBusPostingGroup: Code[20]; VATRegistrationNo: Text[20]; TaxAreaCode: Code[20]; TaxLiable: Boolean)`
- `InsertVendor(VendorNo: Code[20]; VendorName: Text[100]; CountryOrRegionCode: Code[10]; Address: Text[100]; PostCode: Code[20]; CurrencyCode: Code[10]; VendorPostingGroup: Code[20]; GenBusPostingGroup: Code[20]; VATBusPostingGroup: Code[20]; VATRegistrationNo: Text[20]; TaxAreaCode: Code[20]; TaxLiable: Boolean; PaymentTermsCode: Code[10]; GLN: Code[13]; Picture: Codeunit "Temp Blob")`
- `InsertVendor(VendorNo: Code[20]; VendorName: Text[100]; CountryOrRegionCode: Code[10]; Address: Text[100]; Address2: Text[50]; PostCode: Code[20]; CurrencyCode: Code[10]; VendorPostingGroup: Code[20]; GenBusPostingGroup: Code[20]; VATBusPostingGroup: Code[20]; VATRegistrationNo: Text[20]; TaxAreaCode: Code[20]; TaxLiable: Boolean; PaymentTermsCode: Code[10]; GLN: Code[13]; Picture: Codeunit "Temp Blob"; Contact: Text[100]; TerritoryCode: Code[10]; Email: Text[80]; ApplicationMethod: Enum "Application Method")`
- `InsertVendor(VendorNo: Code[20]; VendorName: Text[100]; CountryOrRegionCode: Code[10]; Address: Text[100]; PostCode: Code[20]; CurrencyCode: Code[10]; VendorPostingGroup: Code[20]; GenBusPostingGroup: Code[20]; VATBusPostingGroup: Code[20]; VATRegistrationNo: Text[20]; TaxAreaCode: Code[20]; TaxLiable: Boolean)`
- `InsertCustomerBankAccount(CustomerNo: Code[20]; Code: Code[20]; Name: Text[100]; Address: Text[100]; Contact: Text[100]; PhoneNo: Text[30]; BankBranchNo: Text[20]; BankAccountNo: Text[30]; FaxNo: Text[30]; LanguageCode: Code[10]; IBAN: Code[50])`
- `InsertCustomerDiscountGroup(Code: Code[20]; Description: Text[100])`
- `InsertCustomerTempl(Code: Code[20]; Description: Text[100]; CustomerPostingGroup: Code[20]; PaymentTermsCode: Code[10]; CountryRegionCode: Code[10]; PaymentMethodCode: Code[10]; PricesIncludingVAT: Boolean; GenBusPostingGroup: Code[20]; VATBusPostingGroup: Code[20]; ContactType: Enum "Contact Type"; AllowLineDisc: Boolean; ValidateEUVATRegNo: Boolean)`
- `InsertDisputeStatus(Code: Code[10]; Description: Text[100])`
- `InsertShiptoAddress(CustomerNo: Code[20]; Code: Code[10]; Name: Text[100]; Address: Text[100]; City: Text[30]; CountryRegionCode: Code[10]; PostCode: Code[20])`

## 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 4100 "Temp Blob"](../codeunit/4100.md) (2 calls: `InsertCustomer → CreateInStream`, `InsertCustomer → HasValue`)

## Called by

- [Codeunit 5116 "Create Common Customer/Vendor"](../codeunit/5116.md) (2 calls: `OnRun → InsertCustomer`, `OnRun → InsertVendor`)
- [Codeunit 4777 "Create Mfg Vendor"](../codeunit/4777.md) (1 call: `OnRun → InsertVendor`)
- [Codeunit 5209 "Create Customer"](../codeunit/5209.md) (1 call: `OnRun → InsertCustomer`)
- [Codeunit 5243 "Create Ship-to Address"](../codeunit/5243.md) (1 call: `OnRun → InsertShiptoAddress`)
- [Codeunit 5256 "Create Sust. Vendor"](../codeunit/5256.md) (1 call: `OnRun → InsertVendor`)
- [Codeunit 5325 "Create Customer Bank Account"](../codeunit/5325.md) (1 call: `OnRun → InsertCustomerBankAccount`)
- [Codeunit 5413 "Create Customer Discount Group"](../codeunit/5413.md) (1 call: `OnRun → InsertCustomerDiscountGroup`)
- [Codeunit 5539 "Create Vendor"](../codeunit/5539.md) (1 call: `OnRun → InsertVendor`)
- [Codeunit 5562 "Create Customer Template"](../codeunit/5562.md) (1 call: `OnRun → InsertCustomerTempl`)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

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: "codeunit", object_name: "Contoso Customer/Vendor")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
