---
id: object/table/6939
type: object
title: Table 6939 "Mileage Rate Setup"
summary: Table 6939 "Mileage Rate Setup" in ExpenseAgent (Microsoft.ExpenseAgent). 6 fields, 1 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - table
  - expenseagent
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: 48ff153332182c66c7365aa9a44f86cdfd70ba35aa5a433a2957c7d9a52493e2
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/ExpenseAgent/app/src/MasterData/Tables/MileageRateSetup.Table.al
    title: src/Apps/W1/ExpenseAgent/app/src/MasterData/Tables/MileageRateSetup.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-management-mileage-rate-setup
    - https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-management-per-diem-mileage
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/expense-management-preview/set-up-expense-management
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/10561
object_type: table
object_id: 6939
name: Mileage Rate Setup
namespace: Microsoft.ExpenseAgent
app: ExpenseAgent
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: 6
  procedures: 6
  events: 0
  subscribers: 0
relations:
  out: 4
  referenced_by: 0
  pages: 2
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 6939 "Mileage Rate Setup"

> Table 6939 "Mileage Rate Setup" in ExpenseAgent (Microsoft.ExpenseAgent). 6 fields, 1 public procedures. Introduced in BC29, still in BC30.

ExpenseAgent · Microsoft.ExpenseAgent · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/ExpenseAgent/app/src/MasterData/Tables/MileageRateSetup.Table.al) · facts from BC29

Learn documents this table through its pages: [Page 7128 "Mileage Rate Setup"](../page/7128.md) (2 Learn pages).

## Properties

| Property | Value |
|---|---|
| Caption | Mileage Rate Setup |
| Access | Internal |
| DataClassification | CustomerContent |
| LookupPageId | Mileage Rate Setup |
| DrillDownPageId | Mileage Rate Setup |

## 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 | Code | Code[20] | Specifies the unique code that identifies the mileage rate. | NotBlank |
| 2 | Currency Code | Code[10] | Specifies the currency the mileage rate is expressed in. Leave blank to use the local currency. | TableRelation [Table 4 "Currency"](../table/4.md) |
| 3 | Rate | Decimal | Specifies the reimbursement amount per unit of distance for this mileage rate. |  |
| 4 | Starting Date | Date | Specifies the first date the mileage rate is effective. | NotBlank |
| 5 | Ending Date | Date | Specifies the last date the mileage rate is effective. Leave blank for an open-ended rate. |  |
| 6 | Vehicle Type | Code[20] | Specifies the vehicle type this mileage rate applies to. Leave blank to define a generic rate that is used when no rate matches the vehicle type on the expense. | TableRelation [Table 7108 "Expense Vehicle Type"](../table/7108.md) (Expense Vehicle Type) |

## Keys

- PK: Code (clustered)
- Effective: Vehicle Type, Currency Code, Starting Date

## Procedures

- `FindEffectiveRate(TransactionDate: Date; CurrencyCode: Code[10]; VehicleType: Code[20]): Boolean`

Plus 5 local procedures.

## Triggers

OnInsert, OnModify

## Relations

- drill-down page [Page 7128 "Mileage Rate Setup"](../page/7128.md)
- lookup page [Page 7128 "Mileage Rate Setup"](../page/7128.md)
- Currency Code: TableRelation [Table 4 "Currency"](../table/4.md)
- Vehicle Type: TableRelation [Table 7108 "Expense Vehicle Type"](../table/7108.md)

## Pages and codeunits on this table

- [Page 7128 "Mileage Rate Setup"](../page/7128.md) (source table)
- [Page 7131 "Mileage Rate Setup API"](../page/7131.md) (source table)

## Recent changes

- 2026-08-27 [#10561 Mileage Rate Setup](../../changes/bcapps/10561.md) (main, BC30, feature, added)

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