Table "Country/Region"
ID 9
Namespace: Microsoft.Foundation.Address
Properties
Fields
Name
Type
Description
Code
Code[10]
Specifies the country/region of the address.
Name
Text[50]
Specifies the country/region of the address.
"ISO Code"
Code[2]
Specifies a two-letter country code defined in ISO 3166-1.
"ISO Numeric Code"
Code[3]
Specifies a three-digit code number defined in ISO 3166-1.
"EU Country/Region Code"
Code[10]
Specifies the EU code for the country/region you are doing business with.
"Intrastat Code"
Code[10]
Specifies an INTRASTAT code for the country/region you are trading with.
"Address Format"
Enum Microsoft.Foundation.Address."Country/Region Address Format"
Specifies the format of the address that is displayed on external-facing documents. You link an address format to a country/region code so that external-facing documents based on cards or documents with that country/region code use the specified address format. NOTE: If the County field is filled in, then the county will be printed above the country/region unless you select the City+County+Post Code option.
"Contact Address Format"
Option
Specifies where you want the contact name to appear in mailing addresses.
"VAT Scheme"
Code[10]
Specifies the national body that issues the VAT registration number for the country/region in connection with electronic document sending.
"Last Modified Date Time"
DateTime
"County Name"
Text[30]
Specifies the name of the county.
SystemId
Guid
SystemCreatedAt
DateTime
SystemCreatedBy
Guid
SystemModifiedAt
DateTime
SystemModifiedBy
Guid
SystemCreatedByUserName
Text[50]
SystemCreatedByFullName
Text[80]
SystemModifiedByUserName
Text[50]
SystemModifiedByFullName
Text[80]
SystemRowVersion
BigInteger
Methods
IsEUCountry
procedure IsEUCountry(CountryRegionCode: Code[10]): Boolean
Parameters
Name
Type
Description
CountryRegionCode
Code[10]
Returns
TranslateName
procedure TranslateName(LanguageCode: Code[10])
Parameters
Name
Type
Description
LanguageCode
Code[10]
GetTranslatedName
procedure GetTranslatedName(LanguageID: Integer): Text[50]
Parameters
Name
Type
Description
LanguageID
Integer
Returns
Type
Description
Text[50]
GetTranslatedName
procedure GetTranslatedName(LanguageCode: Code[10]): Text[50]
Parameters
Name
Type
Description
LanguageCode
Code[10]
Returns
Type
Description
Text[50]
GetNameInCurrentLanguage
procedure GetNameInCurrentLanguage(): Text[50]
Returns
Type
Description
Text[50]
CreateAddressFormat
procedure CreateAddressFormat(CountryCode: Code[10]; LinePosition: Integer; FieldID: Integer): Integer
Parameters
Name
Type
Description
CountryCode
Code[10]
LinePosition
Integer
FieldID
Integer
Returns
CreateAddressFormatLine
procedure CreateAddressFormatLine(CountryCode: Code[10]; FieldPosition: Integer; FieldID: Integer; LineNo: Integer)
Parameters
Name
Type
Description
CountryCode
Code[10]
FieldPosition
Integer
FieldID
Integer
LineNo
Integer
InitAddressFormat
procedure InitAddressFormat()
Events
OnBeforeInitAddressFormat
[IntegrationEvent(False,False)]
local procedure OnBeforeInitAddressFormat(var CountryRegion: Record "Country/Region"; var IsHandled: Boolean)
Parameters
See also