Skip to content

Org settings

These read-only properties reflect NumberForge org configuration (not libphonenumber). Values come from General setup on the NumberForge Configuration page.

NF.orgDefaultRegion

Default region code for the current org, when configured.

Signatures

global static String orgDefaultRegion { get; }

Parameters

None.

Returns

ISO region code (e.g. US), or null if not set.

Throws

None.

libphonenumber

Not applicable; NumberForge product setting.

Example

String region = NF.orgDefaultRegion;
if (region != null) {
NF.Phone phone = NF.parse(account.Phone, region);
}

NF.orgDefaultSaveFormat

Default save format name configured for the org.

Signatures

global static String orgDefaultSaveFormat { get; }

Parameters

None.

Returns

Format name such as E164 or NATIONAL (map to NF.Format), or null if not set.

Throws

None.

libphonenumber

Not applicable; NumberForge product setting.

Example

String formatName = NF.orgDefaultSaveFormat;
// Map to NF.Format when formatting valid numbers for storage