---
id: object/table/5910
type: object
title: Table 5910 "Service Hour"
summary: Table 5910 "Service Hour" in Base Application (Microsoft.Service.Contract). 7 fields, 1 public procedures. Present since at least BC23, still in BC30, changed in BC24, BC28.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "28"
  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: 225ed1896e47b7632b38389fc45d367a0224dc676aee754f1a7309a7b20f857a
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Service/Contract/ServiceHour.Table.al
    title: src/Layers/W1/BaseApp/Service/Contract/ServiceHour.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 5910
name: Service Hour
namespace: Microsoft.Service.Contract
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 7
  procedures: 2
  events: 0
  subscribers: 0
relations:
  out: 2
  referenced_by: 4
  pages: 2
  extended_by: 0
  event_subscribers: 1
  calls: 1
  called_by: 0
  implements: 0
---

# Table 5910 "Service Hour"

> Table 5910 "Service Hour" in Base Application (Microsoft.Service.Contract). 7 fields, 1 public procedures. Present since at least BC23, still in BC30, changed in BC24, BC28.

Base Application · Microsoft.Service.Contract · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Service/Contract/ServiceHour.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Service Hour |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Service Contract No. | Code[20] | Specifies the number of the service contract to which the service hours apply. | TableRelation [Table 5965 "Service Contract Header"](../table/5965.md) (if ("Service Contract Type" = const(Contract)) "Service Contract Header"."Contract No." where("Contract Type" = const(Contract)) else if ("Service Contract Type" = const(Quote)) "Service Contract Header"."Contract No." where("Contract Type" = const(Quote))) |
| 2 | Starting Date | Date | Specifies the date when the service hours become valid. |  |
| 3 | Day | Option | Specifies the day when the service hours are valid. | OptionCaption: Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday |
| 4 | Starting Time | Time | Specifies the starting time of the service hours. |  |
| 5 | Ending Time | Time | Specifies the ending time of the service hours. |  |
| 6 | Valid on Holidays | Boolean | Specifies that service hours are valid on holidays. |  |
| 7 | Service Contract Type | Enum "Service Hour Contract Type" | — | enum [Enum 5910 "Service Hour Contract Type"](../enum/5910.md) |

## Keys

- Key1: Service Contract Type, Service Contract No., Day, Starting Date (clustered)

## Trigger event subscribers

- OnBeforeInsertEvent: [Codeunit 5999 "Service Experience Tier"](../codeunit/5999.md) BlockInsertServiceHour

## Procedures

- `CopyDefaultServiceHours()`

Plus 1 local procedures.

## Triggers

OnInsert, OnModify

## Relations

- lookup page [Page 5916 "Service Hours"](../page/5916.md)
- Service Contract No.: TableRelation [Table 5965 "Service Contract Header"](../table/5965.md) (conditional)

## Referenced by

4 fields in 4 objects relate to this table (TableRelation or CalcFormula).

- [Table 5900 "Service Header"](../table/5900.md): Contract Serv. Hours Exist
- [Table 5990 "Service Shipment Header"](../table/5990.md): Contract Serv. Hours Exist
- [Table 5992 "Service Invoice Header"](../table/5992.md): Contract Serv. Hours Exist
- [Table 5994 "Service Cr.Memo Header"](../table/5994.md): Contract Serv. Hours Exist

## Pages and codeunits on this table

- [Page 5916 "Service Hours"](../page/5916.md) (source table)
- [Page 5957 "Default Service Hours"](../page/5957.md) (source table)

## 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 27 "Confirm Management"](../codeunit/27.md) (1 call: `CopyDefaultServiceHours → GetResponseOrDefault`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, BC28

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: "table", object_name: "Service Hour")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
