---
id: object/codeunit/6611
type: object
title: Codeunit 6611 "FS Setup Defaults"
summary: Codeunit 6611 "FS Setup Defaults" in FieldServiceIntegration (Microsoft.Integration.DynamicsFieldService). 13 public procedures, 24 events, 4 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - fieldserviceintegration
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: 503477a4e8c809c34ed6dc917af615772a61ad4be8b98f2fe6012fa472384390
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/FieldServiceIntegration/app/src/Codeunits/FSSetupDefaults.Codeunit.al
    title: src/Apps/W1/FieldServiceIntegration/app/src/Codeunits/FSSetupDefaults.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: 6611
name: FS Setup Defaults
namespace: Microsoft.Integration.DynamicsFieldService
app: FieldServiceIntegration
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: 52
  events: 24
  subscribers: 4
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 5
  called_by: 2
  implements: 0
---

# Codeunit 6611 "FS Setup Defaults"

> Codeunit 6611 "FS Setup Defaults" in FieldServiceIntegration (Microsoft.Integration.DynamicsFieldService). 13 public procedures, 24 events, 4 event subscribers. Introduced in BC29, still in BC30.

FieldServiceIntegration · Microsoft.Integration.DynamicsFieldService · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/FieldServiceIntegration/app/src/Codeunits/FSSetupDefaults.Codeunit.al) · facts from BC29

## Events published

- `OnAfterResetConfiguration(FSConnectionSetup: Record "FS Connection Setup")` (integration)
- `OnAfterResetProjectJournalLineWOProductMapping(IntegrationTableMappingName: Code[20])` (integration)
- `OnAfterResetProjectJournalLineWOServiceMapping(IntegrationTableMappingName: Code[20])` (integration)
- `OnAfterResetServiceItemCustomerAssetMapping(IntegrationTableMappingName: Code[20])` (integration)
- `OnAfterResetResourceBookableResourceMapping(var IntegrationTableMappingName: Code[20])` (integration)
- `OnBeforeResetConfiguration(var FSConnectionSetup: Record "FS Connection Setup"; var IsHandled: Boolean)` (integration)
- `OnBeforeResetProjectJournalLineWOProductMapping(var IntegrationTableMappingName: Code[20]; var ShouldRecreateJobQueueEntry: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeResetProjectJournalLineWOServiceMapping(var IntegrationTableMappingName: Code[20]; var ShouldRecreateJobQueueEntry: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeResetServiceItemCustomerAssetMapping(var IntegrationTableMappingName: Code[20]; var ShouldRecreateJobQueueEntry: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeResetProjectTaskMapping(var IntegrationTableMappingName: Code[20]; var ShouldRecreateJobQueueEntry: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeResetResourceBookableResourceMapping(var IntegrationTableMappingName: Code[20]; var ShouldRecreateJobQueueEntry: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeResetServiceOrderTypeMapping(IntegrationTableMappingName: Code[20]; ShouldRecreateJobQueueEntry: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeResetServiceOrderMapping(IntegrationTableMappingName: Code[20]; ShouldRecreateJobQueueEntry: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeResetServiceOrderItemLineMapping(IntegrationTableMappingName: Code[20]; ShouldRecreateJobQueueEntry: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeResetServiceOrderLineItemMapping(IntegrationTableMappingName: Code[20]; ShouldRecreateJobQueueEntry: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeResetServiceOrderLineResourceMapping(IntegrationTableMappingName: Code[20]; ShouldRecreateJobQueueEntry: Boolean; var IsHandled: Boolean)` (integration)
- `OnCreateJobQueueEntryOnBeforeJobQueueEnqueue(var JobQueueEntry: Record "Job Queue Entry"; var IntegrationTableMapping: Record "Integration Table Mapping"; JobCodeunitId: Integer; JobDescription: Text)` (integration)
- `OnResetServiceOrderTypeMappingOnAfterInsertFieldsMapping(IntegrationTableMappingName: Code[20])` (integration)
- `OnResetServiceOrderMappingOnAfterInsertFieldsMapping(IntegrationTableMappingName: Code[20])` (integration)
- `OnResetServiceOrderItemLineMappingOnAfterInsertFieldsMapping(IntegrationTableMappingName: Code[20])` (integration)
- `OnResetServiceOrderLineItemMappingOnAfterInsertFieldsMapping(IntegrationTableMappingName: Code[20])` (integration)
- `OnResetServiceOrderLineServiceItemMappingOnAfterInsertFieldsMapping(IntegrationTableMappingName: Code[20])` (integration)
- `OnResetServiceOrderLineResourceMappingOnAfterInsertFieldsMapping(IntegrationTableMappingName: Code[20])` (integration)
- `OnResetLocationMappingOnAfterInsertFieldMapping(IntegrationTableMappingName: Code[20])` (integration)

## Event subscriptions

- ReturnProxyTableNoOnGetCDSTableNo subscribes to Codeunit "CRM Setup Defaults" OnGetCDSTableNo
- AddProxyTablesOnAddEntityTableMapping subscribes to Codeunit "CRM Setup Defaults" OnAddEntityTableMapping
- ReturnNameFieldNoOnBeforeGetNameFieldNo subscribes to Codeunit "CRM Setup Defaults" OnBeforeGetNameFieldNo
- OnBeforeHandleCustomIntegrationTableMapping subscribes to Codeunit "CRM Integration Management" OnBeforeHandleCustomIntegrationTableMapping

## Procedures

- `ResetConfiguration(var FSConnectionSetup: Record "FS Connection Setup")` (internal)
- `ResetProjectTaskMapping(var FSConnectionSetup: Record "FS Connection Setup"; IntegrationTableMappingName: Code[20]; ShouldRecreateJobQueueEntry: Boolean)` (internal)
- `ResetProjectJournalLineWOProductMapping(var FSConnectionSetup: Record "FS Connection Setup"; IntegrationTableMappingName: Code[20]; ShouldRecreateJobQueueEntry: Boolean)` (internal)
- `ResetProjectJournalLineWOServiceMapping(var FSConnectionSetup: Record "FS Connection Setup"; IntegrationTableMappingName: Code[20]; ShouldRecreateJobQueueEntry: Boolean)` (internal)
- `ResetResourceBookableResourceMapping(var FSConnectionSetup: Record "FS Connection Setup"; IntegrationTableMappingName: Code[20]; ShouldRecreateJobQueueEntry: Boolean)` (internal)
- `ResetServiceItemCustomerAssetMapping(var FSConnectionSetup: Record "FS Connection Setup"; IntegrationTableMappingName: Code[20]; ShouldRecreateJobQueueEntry: Boolean)` (internal)
- `ResetLocationMapping(var FSConnectionSetup: Record "FS Connection Setup"; IntegrationTableMappingName: Code[20]; ShouldRecreateJobQueueEntry: Boolean; SkipLocationMandatoryCheck: Boolean)` (internal)
- `CreateJobQueueEntry(IntegrationTableMapping: Record "Integration Table Mapping"; ServiceName: Text): Boolean` (internal)
- `RecreateJobQueueEntryFromIntTableMapping(IntegrationTableMapping: Record "Integration Table Mapping"; IntervalInMinutes: Integer; ShouldRecreateJobQueueEntry: Boolean; InactivityTimeoutPeriod: Integer; ServiceName: Text; IsOption: Boolean)` (internal)
- `SetLocationFieldMapping(DoFieldMapping: Boolean)` (internal)
- `GetDefaultDirection(NAVTableID: Integer): Integer`
- `GetTableFilterFromView(TableID: Integer; Caption: Text; View: Text): Text` (internal)
- `SetCustomIntegrationsTableMappings(FSConnectionSetup: Record "FS Connection Setup")` (internal)

Plus 11 local procedures.

## 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 7200 "CDS Integration Mgt."](../codeunit/7200.md) (14 calls: `InsertIntegrationTableMapping → HasCompanyIdField`, `ResetConfiguration → ActivateConnection`, `ResetConfiguration → RegisterConnection`, …)
- [Codeunit 5334 "CRM Setup Defaults"](../codeunit/5334.md) (3 calls: `AddProxyTablesOnAddEntityTableMapping → AddEntityTableMapping`, `ResetConfiguration → ResetItemProductMapping`, `ResetServiceOrderMapping → RecreateJobQueueEntry`)
- [Codeunit 6615 "FS Integration Mgt."](../codeunit/6615.md) (3 calls: `ResetConfiguration → EnableServiceOrderArchive`, `ResetConfiguration → GenerateDefaultWorkOrderIncident`, `ResetServiceOrderLineResourceMapping → GetBookingStatusCompleted`)
- [Codeunit 5344 "CRM Product Name"](../codeunit/5344.md) (2 calls: `RecreateJobQueueEntryFromIntTableMapping → CDSServiceName`, `ResetServiceOrderMapping → SHORT`)
- [Codeunit 9179 "Application Area Mgmt. Facade"](../codeunit/9179.md) (1 call: `ShouldResetServiceItemMapping → IsPremiumExperienceEnabled`)

## Called by

- [Codeunit 6610 "FS Int. Table Subscriber"](../codeunit/6610.md) (4 calls: `AfterValidateLocationMandatory → ResetLocationMapping`, `AfterValidateLocationMandatory → ResetProjectJournalLineWOProductMapping`, `AfterValidateLocationMandatory → SetLocationFieldMapping`, …)
- [Table 6623 "FS Connection Setup"](../table/6623.md) (1 call: `EnableIntegrationTables → ResetConfiguration`)

## 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: "FS Setup Defaults")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
