Standard data types
The following is a list of the standard data types are used in the Dynamics GP service, along with some details about each type.
String values
String values in the Dynamics GP service must be handled carefully to avoid truncation issues. String properties for the business documents in the Dynamics GP service have a defined length that is detailed in the Dynamics GP Web Service Reference online documentation. It's essential that you don't exceed the stated string length for these properties. Any strings that exceed the specified length will be truncated, resulting is data corruption.
Warning: No exception will be logged when a string value is truncated by the Dynamics GP service.
The empty string ("") is considered the empty value for a string property.
Integer values
The value 0 (zero) is considered the empty value for an integer property.
Decimal values
The value 0.0 is considered the empty value for a decimal property.
DateTime values
The value 1/1/1900 12:00:00am is considered the empty value for a DateTime property.
MoneyAmount values
The MoneyAmount data type maintains three pieces of data:
- The currency used for the amount
- The value of the amount (as a decimal)
- The number of decimal digits in the amount
The currency corresponds to the ISO code for the currency represented.
The value is considered empty when when the currency hasn't been specified, the decimal value is 0.0, and the number of digits is 0.
Percent values
The Percent data type maintains two pieces of data:
- The value of the amount (as a decimal)
- The number of decimal digits in the amount
The value is considered empty when the value amount is 0.0 and the number of digits is 0.