---
id: object/codeunit/5302
type: object
title: Codeunit 5302 "Outlook Synch. Type Conv"
summary: Codeunit 5302 "Outlook Synch. Type Conv" in Base Application (Microsoft.CRM.Outlook). 29 public procedures, 3 events. Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  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: c12b08fbcb95a30ad37cf5014d4095683e729d1c82bbcf1e80dc67d89ee83f72
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/CRM/Outlook/OutlookSynchTypeConv.Codeunit.al
    title: src/Layers/W1/BaseApp/CRM/Outlook/OutlookSynchTypeConv.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: 5302
name: Outlook Synch. Type Conv
namespace: Microsoft.CRM.Outlook
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 40
  events: 3
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 9
  implements: 0
---

# Codeunit 5302 "Outlook Synch. Type Conv"

> Codeunit 5302 "Outlook Synch. Type Conv" in Base Application (Microsoft.CRM.Outlook). 29 public procedures, 3 events. Present since at least BC23, still in BC30.

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

## Events published

- `OnBeforeTextToDate(InputText: Text; var DateVar: Date; UseLocalTime: Boolean; var IsConverted: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeTextToDecimal(InputText: Text; var DecVar: Decimal; var IsConverted: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeTextToTime(InputText: Text; var TimeVar: Time; var UseLocalTime: Boolean; var IsConverted: Boolean; var IsHandled: Boolean)` (integration)

## Procedures

- `GetSubStrByNo(Number: Integer; CommaString: Text): Text`
- `EvaluateTextToFieldRef(InputText: Text; var FieldRef: FieldRef; ToValidate: Boolean): Boolean`
- `TextToOptionValue(InputText: Text; OptionString: Text): Integer`
- `TextToInteger(InputText: Text; var IntVar: Integer): Boolean`
- `TextToBigInteger(InputText: Text; var BigIntVar: BigInteger): Boolean`
- `TextToBoolean(InputText: Text; var BoolVar: Boolean): Boolean`
- `TextToGUID(InputText: Text; var GUIDVar: Guid): Boolean`
- `TextToDecimal(InputText: Text; var DecVar: Decimal): Boolean`
- `TextToDateTime(InputText: Text; var DateTimeVar: DateTime): Boolean`
- `TextToDuration(InputText: Text; var DurationVar: Duration): Boolean`
- `TextToDateFormula(InputText: Text; var DateFormulaVar: DateFormula): Boolean`
- `OptionValueToText(InputInteger: Integer; OptionString: Text): Text`
- `FieldOptionValueToText(InputInteger: Integer; OptionRecordId: Integer; OptionFieldId: Integer): Text`
- `EvaluateOptionField(FieldRef: FieldRef; var ValueToEvaluate: Text): Boolean`
- `EvaluateFilterOptionField(FieldRef: FieldRef; var FilterValueToEvaluate: Text; ReplaceOptionsWithValues: Boolean): Boolean`
- `TruncateString(var InputString: Text; NewLength: Integer)`
- `SetTimeFormat(InTime: Time): Text`
- `SetDateFormat(InDate: Date): Text`
- `SetDateTimeFormat(InDateTime: DateTime): Text`
- `SetDecimalFormat(InDecimal: Decimal): Text`
- `SetBoolFormat(InBoolean: Boolean): Text`
- `PrepareFieldValueForXML(FldRef: FieldRef): Text`
- `SetValueFormat(FormattedValue: Text; FldRef: FieldRef): Text`
- `HandleFilterChars(InputText: Text; MaxLength: Integer): Text`
- `ReplaceFilterChars(InputString: Text): Text`
- `LocalDT2UTC(LocalDT: DateTime): DateTime`
- `UTC2LocalDT(UTC: DateTime): DateTime`
- `UTCString2LocalDT(UTCString: Text): DateTime`
- `RunningUTC(): Boolean`

Plus 8 local procedures.

## Triggers

OnRun

## Called by

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 40900 "GP Populate Hist. Tables"](../codeunit/40900.md) (4 calls: `PopulateGLHistoricalYearItemTransaction → LocalDT2UTC`, `PopulateGLOpenYearItemTransaction → LocalDT2UTC`, `PopulateHistoricalYearPostedTransactions → LocalDT2UTC`, …)
- [Codeunit 40125 "GP Populate Combined Tables"](../codeunit/40125.md) (2 calls: `PopulateGPFiscalPeriods → LocalDT2UTC`, `PopulateGPRMOpen → LocalDT2UTC`)
- [Codeunit 5336 "Integration Record Synch."](../codeunit/5336.md) (2 calls: `EvaluateTextToFieldRef → EvaluateTextToFieldRef`, `TextToOptionValue → TextToOptionValue`)
- [Codeunit 40107 "FiscalPeriods"](../codeunit/40107.md) (1 call: `CreateFiscalPeriods → LocalDT2UTC`)
- [Codeunit 4014 "Notification Handler"](../codeunit/4014.md) (1 call: `ParseReplicationSummary → UTC2LocalDT`)
- [Codeunit 5342 "CRM Synch. Helper"](../codeunit/5342.md) (1 call: `UpdateSalesPersonCodeIfChanged → TextToOptionValue`)
- [Codeunit 5459 "JSON Management"](../codeunit/5459.md) (1 call: `GetPropertyValueFromJObjectByPathSetToFieldRef → TextToOptionValue`)
- [Page 1638 "Booking Items"](../page/1638.md) (1 call: `OnAfterGetRecord → UTC2LocalDT`)
- [Table 4003 "Intelligent Cloud Setup"](../table/4003.md) (1 call: `GetDailyBitmap → LocalDT2UTC`)

## Across versions

- Present in: BC23-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: "Outlook Synch. Type Conv")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
