---
title: "Codeunit 5302 Outlook Synch. Type Conv"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/5302-outlook-synch-type-conv/
type: codeunit
id: 5302
name: "Outlook Synch. Type Conv"
app: "Base Application"
namespace: Microsoft.CRM.Outlook
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/5302-outlook-synch-type-conv/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 5302 Outlook Synch. Type Conv

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/5302-outlook-synch-type-conv/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.CRM.Outlook |
| Versions | 17-28 |
| Source file | CRM/Outlook/OutlookSynchTypeConv.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| GetSubStrByNo | (Integer, Text) | Text | public | 17-28 | - | - |
| EvaluateTextToFieldRef | (Text, var FieldRef, Boolean) | Boolean | public | 17-28 | - | - |
| TextToOptionValue | (Text, Text) | Integer | public | 17-28 | - | - |
| TextToInteger | (Text, var Integer) | Boolean | public | 17-28 | - | - |
| TextToBigInteger | (Text, var BigInteger) | Boolean | public | 17-28 | - | - |
| TextToBoolean | (Text, var Boolean) | Boolean | public | 17-28 | - | - |
| TextToGUID | (Text, var Guid) | Boolean | public | 17-28 | - | - |
| TextToDecimal | (Text, var Decimal) | Boolean | public | 17-28 | - | - |
| TextToDateTime | (Text, var DateTime) | Boolean | public | 17-28 | - | - |
| TextToDuration | (Text, var Duration) | Boolean | public | 17-28 | - | - |
| TextToDateFormula | (Text, var DateFormula) | Boolean | public | 17-28 | - | - |
| OptionValueToText | (Integer, Text) | Text | public | 17-28 | - | - |
| FieldOptionValueToText | (Integer, Integer, Integer) | Text | public | 17-28 | - | - |
| EvaluateOptionField | (FieldRef, var Text) | Boolean | public | 17-28 | - | - |
| EvaluateFilterOptionField | (FieldRef, var Text, Boolean) | Boolean | public | 17-28 | - | - |
| TruncateString | (var Text, Integer) | - | public | 17-28 | - | - |
| SetTimeFormat | (Time) | Text | public | 17-28 | - | - |
| SetDateFormat | (Date) | Text | public | 17-28 | - | - |
| SetDateTimeFormat | (DateTime) | Text | public | 17-28 | - | - |
| SetDecimalFormat | (Decimal) | Text | public | 17-28 | - | - |
| SetBoolFormat | (Boolean) | Text | public | 17-28 | - | - |
| PrepareFieldValueForXML | (FieldRef) | Text | public | 17-28 | - | - |
| SetValueFormat | (Text, FieldRef) | Text | public | 17-28 | - | - |
| HandleFilterChars | (Text, Integer) | Text | public | 17-28 | - | - |
| ReplaceFilterChars | (Text) | Text | public | 17-28 | - | - |
| LocalDT2UTC | (DateTime) | DateTime | public | 17-28 | - | - |
| UTC2LocalDT | (DateTime) | DateTime | public | 17-28 | - | - |
| UTCString2LocalDT | (Text) | DateTime | public | 17-28 | - | - |
| RunningUTC | () | Boolean | public | 17-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeTextToDate | (Text, var Date, Boolean, var Boolean, var Boolean) | 18-28 | - | - |
| Integration event | OnBeforeTextToDecimal | (Text, var Decimal, var Boolean, var Boolean) | 18-28 | - | - |
| Integration event | OnBeforeTextToTime | (Text, var Time, var Boolean, var Boolean, var Boolean) | 22-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
