Dynamics 365 FO - Data types
Nghia Song - Microsoft Dynamics 365 Technical Consultant
Nghia Song
Tel - WhatsApp: +84967324794
Email: songnghia.uit@gmail.com
Nghia Song
Tel - WhatsApp: +84967324794
Email: songnghia.uit@gmail.com
Data types
Primitive Data Types
The basic set of primitive data types in Microsoft Dynamics 365 map to underlying data types that exist in the physical database. These primitive data types can be expanded to create Extended Data Types, which are reusable data types having a specific definition.
The primitive data types used in Microsoft Dynamics 365 are as follows:
Base enum
An enum is a list of literals. Before you can use an enum, you must declare it in Application Explorer.
The literal values are represented internally as integers. The first literal has the number 0, the next literal has the number 1, the next literal has the number 2, and so on. You can use enum values as integers in expressions. The default value for the first entry is 0, and the internal representation is a short number.
Extended data types
EDTs extend primitive data types or other EDTs. The benefit of creating EDTs is the reuse of their properties. For example, the label for one EDT can be inherited from the EDT that it extends.
A table field that is created based on an EDT will also inherit properties from that EDT.
Another benefit is more efficient maintenance. The properties of many fields can change at one time by changing the properties on the EDT.
Most fields in Microsoft Dynamics 365 tables are based on EDTs.
Practice
Create new enum
Procedure:
In this practice, we will design new base enum is gender and the gender enum have 2 option: Male and Female.
Create new extend data types
Procedure:
In this practice, we will create new EDTs
EmplName: Employee name, String, Size: 40
EmplDescription: Employee description, String, Size: Memo
EmplDOB: Date of bitrh, Datetime
No comments:
Post a Comment