ComUnity Platform
25.x
25.x
  • ComUnity Technical Overview
  • Getting Started
    • ComUnity Developer Toolkit
      • Login
      • Manage your account: Profile, Settings, and Actions
    • Manage your project
      • Create a project
      • Project Settings
      • General
      • Build and launch your project
      • Templates
      • App Users & Roles
      • Themes
      • Versions
      • Icon Management
      • Store URLs
      • Deploy
        • Environments
        • Manual Project Deployment Across Environments
        • Configuration
    • Organisations
      • Roles and Permissions
      • Organisational Management
      • Teams
  • Toolkit Guides
    • Data
      • Customising the Data Model
      • Manage Entities in the Data Model: Step-by-Step Guide
      • Setting Up Role-Based Permissions for Entities: Access Control Configuration
      • Creating Entity Associations: Configuring Table Links
      • Manage Inheritance in the Data Model: Configuring Entity Hierarchy and Inheritance
    • Screens
      • Integrated Navigation and UI Builder for Screens in the ComUnity Developer Toolkit
      • Building Screens
        • Screen Controls
        • Navigation
          • Lists in Navigation pages
            • Dynamic List Rendering in Navigation pages
            • Adding Sub-Screens to Navigation pages Using List Navigation
          • Page Link
        • Form
          • Screen Controls
          • Lists in Form pages
            • Static Item - List Item
            • Single Item - List Item
            • Entity Items - List Item
    • Custom Classes
    • Custom Website
      • Bindings
      • Pages
        • Page Development
        • Page Elements
        • Templates
        • Resources
    • Communications
      • Configuring Dynamic Action Templates for Event-Driven Communication Channels
        • Event Details: Understanding Data Sources for Dynamic Template Building
        • Email
        • SMS & WhatsApp
        • INAPP
        • Push Notifications
        • HTTP
      • Triggering the Communication Service
      • Communication Settings
    • Events and Notifications Management
    • Observability
      • Client Analytics
      • Metrics
      • Traces
    • Third Party Services
      • Azure Function Apps
      • Azure Logic Apps
      • Integrations
      • Microsoft Fabric
      • APIs
    • Services
      • Media Server
  • General Information
    • Debugging and editing your application code
  • Toolkit Tutorials
    • Build a Simple Blog App: The Beginner's Guide to ComUnity Development
    • Building a Comprehensive News App: Integrating In-App Messaging, Push Notifications, SMS, and Email
    • APIs
      • JSON Placeholder Todos API Integration in a Simple Blog App
      • Countries GraphQL API Integration Using the APIs feature in the Toolkit
      • Integrating the JSONPlaceholder Posts API Using the Toolkit’s OpenAPI Feature
      • OData Integration with the Bookings API Using the APIs feature
    • How to Configure In-App Notifications for User Profile Updates Using Communications
  • Enhancing Cases App: Real-time Comment Notifications
  • Reference articles
    • Glossary
    • Privacy by Design
    • OData
    • Razor
    • CRUD Functions
    • Mustache Templating
    • Temporal Tables
    • Integrating WhatsApp Business with the ComUnity Platform
    • Data Types
    • Field Types
    • Table Links
    • Release Notes
    • Keyboard Shortcuts
Powered by GitBook
On this page
Export as PDF
  1. Reference articles

Data Types

A data type is an attribute that specifies the type of data that the object can hold: integer data, character data, monetary data, date and time data, binary strings, and so on.

The properties of a field describe the characteristics of data added to that field. A field's data type is the most important property because it determines what kind of data the field can store.

You can find more detailed information at https://docs.microsoft.com/en-us/dotnet/api/system.data.sqldbtype?redirectedfrom=MSDN&view=net-6.0

Data Type
Description

Bool

A logical field can be displayed as Yes/No, True/False, or On/Off.

Byte

An unsigned 8-bit integer value from 0 to 255

Byte[]

An array of type Byte. A fixed-length stream of binary data ranging between 1 and 8,000 bytes.

DateTime

A date and time combination. Format: YYYY-MM-DD hh:mm:ss.

Can represent date and time data ranging in value from January 1, 1753 to December 31, 9999 to an accuracy of 3.33 milliseconds.

Decimal

A fixed precision and scale numeric value between -10 38 -1 and 10 38 -1. The total number of digits is specified in size. The number of digits after the decimal point is specified in the parameter. Extra options are provided to define the decimal more precisely:

  • Precision is the number of digits in a number.

  • Scale is the number of digits to the right of the decimal point in a number. For example, the number 123.45 has a precision of 5 and a scale of 2.

In SQL Server, the default maximum precision of numeric and decimal data types is 38. In earlier versions of SQL Server, the default maximum is 28. To learn more about this data type, go to

Double

Double-precision floating-point. Will handle most decimals

Float

Floating-point data types, usually represent values as high-precision fractional values. A fixed precision and scale numeric value between -10 38 -1 and 10 38 -1.

Guid

The GUID data type is useful when you want to uniquely identify some data, so that it can be exchanged with external applications. The correct format of the GUID string is {CDEF7890-ABCD-1234-ABCD-1234567890AB} where 0-9, A-F symbolizes hexadecimal digits. To learn more about this data type, go to

Int

A 32-bit signed integer representing a whole number between -32,768 and 32,767

Long

A whole number between -2,147,483,648 and 2,147,483,647

Sbyte

The SByte data type represents integers with values ranging from negative 128 to positive 127.

Short

The Short Int16 data type represents signed integers with values ranging from negative 32768 through positive 32767.

String

A FIXED length string that may contain letters, numbers, and special characters up to a maximum of 4000 characters.

  • When you select this data type you may define the maximum length and the minimum length of the string.

  • When you select the data type <string> the following two properties are added to the properties editor. Learn more about this data type at

TimeSpan

The timespan (time) data type represents a time interval, where a number of formats are supported for value, as shown at

https://docs.microsoft.com/en-us/sql/t-sql/data-types/precision-scale-and-length-transact-sql?view=sql-server-ver15
https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/guid/guid-data-type#format
https://docs.microsoft.com/en-us/azure/data-explorer/kusto/query/scalar-data-types/string
https://docs.microsoft.com/en-us/azure/data-explorer/kusto/query/scalar-data-types/timespan