Dimensions
- List Dimensions
- List Dimension Relationships
- List Dimension Auto-fill Details
- List Dimension Restrictions
- List Dimension(s) Restricted Data
A dimension is a classification used to organize, sort, and report on company information.
Standard dimensions such as Location and Department are provided by the system, or you can create user-defined dimensions (UDDs) with Platform Services. A UDD is simply a custom object that is enabled as a user defined GL dimension. Dimensions are available on reports and transaction entry pages.
A relationship between dimensions lets you populate a dimension value in a transaction based on the value of another dimension. Consider the following example, which shows the relationships for three UDDs.
Given that the relationship from PARTNER
to PARTNER_TYPE
is to one, the system can be set up to auto-fill the value for PARTNER_TYPE
when a specific partner is chosen on a transaction entry page. For example, choosing the Sarderra Partner on a transaction entry page can result in the prepopulated value of Full Service for Partner Type. In addition, since PARTNER_TYPE
has a to-one relationship to LINE_OF_BUSINESS
, providing the Full Service Partner Type can prepopulate the Line of Business field. Note that such fields can be set up as read only, as is the case for Line of Business, or available to override, as is the case for Partner Type.
List Dimensions
Lists all standard dimensions and UDDs in a company along with helpful integration information about the object.
getDimensions
Parameters
No parameters
Response
The above function returns data structured like this:
Parameters
Name | Type | Description |
---|---|---|
objectName | string | Object integration name |
objectLabel | string | Object label |
termLabel | string | Terminology label, if renamed in company terminology |
userDefinedDimension | boolean | This is true if the dimension is setup as a user defined dimension |
enabledInGL | boolean | This is true if the dimension is enabled in the General Ledger module |
List Dimension Relationships
Lists all standard dimensions and UDDs and provides information about their to-one and to-many relationships to other dimensions.
getDimensionRelationships
Parameters
No parameters
Response
In this sample response, the
LOCATION
standard dimension has no relationships, but the UDDs do. For example,LINE_OF_BUSINESS
has a one-to-many relationship toPARTNER_TYPE
. Further down, you see that thePARTNER_TYPE
has a many-to-one relationship back toLINE_OF_BUSINESS
.
relationship[0...n]
Parameters
Name | Type | Description |
---|---|---|
dimension | string | Name of the standard dimension or UDD |
object_id | string | Dimension ID |
autofillrelated | string | Indicates whether the values for related dimensions can be auto-filled |
enableoverride | string | Indicates whether the auto-filled relationship values can be overriden |
related | related[0...n] |
Related dimensions |
related[0...n]
Name | Type | Description |
---|---|---|
dimension | string | Name of the related standard dimension or UDD |
object_id | string | Dimension ID |
relationship_id | string | Relationship ID |
source_side | string | Cardinality of the relationship from the source dimension |
related_side | string | Cardinality of the relationship to the target (related ) dimension |
List Dimension Auto-fill Details
Provides information about auto-fill settings for to-one relationships between dimensions. (If the relationship is to-many, auto-fill is not available.)
getDimensionAutofillDetails
Parameters
No parameters
Response
This sample response shows that the
PARTNER_TYPE
dimension has a relationship toLINE_OF_BUSINESS
where the value is auto-filled and cannot be overriden. ThePARTNER
dimension has a relationship to thePARTNER_TYPE
dimension in which the relationship value is auto-filled but can be overriden.
relationship[0...n]
Parameters
Name | Type | Description |
---|---|---|
dimension | string | Name of the standard dimension or UDD |
object_id | string | Dimension ID |
enableoverride | string | Indicates whether auto-filled relationship values can be overriden for this dimension |
autofill | autofill[0...n] |
Dimension relationship with auto-fill enabled. Only to-one relationships can be auto-filled. |
autofill[0...n]
Name | Type | Description |
---|---|---|
dimension | string | Name of the standard dimension or UDD for the related dimension |
object_id | string | Dimension ID |
relationship_id | string | Relationship ID |
type | string | Cardinality of the relationship from the perspective of the source dimension. |
List Dimension Restrictions
Provides information about dimensions with to-one restrictions.
getDimensionRestrictions
Parameters
No parameters
Response
The response shows the to-one restrictions for each dimension, for example:
List Dimension(s) Restricted Data
Lists the IDs of related dimensions that are the target(s) of to-many relationships from a single source dimension.
Note: To get to-one relationship values, list the dimension object and look for related fields (rfields) in the output. For more information, see the FAQ.
getDimensionRestrictedData
Parameters
Name | Required | Type | Description |
---|---|---|---|
DimensionValue | Required | object | Dimension value to list. Provide only 1. |
DimensionValue
Name | Required | Type | Description |
---|---|---|---|
dimension | Required | string | Dimension to list |
value | Required | string | Value either Name/ID of dimension |
Response
The sample response provides the IDs of the two related
PARTNER
records that are the targets of to-many relationships from thePARTNER_TYPE
dimension. Nothing can be returned for theLINE_OF_BUSINESS
dimension as it is the target of a to-one relationship fromPARTNER_TYPE
.
RestrictedData[0...n]
Parameters
Name | Type | Description |
---|---|---|
dimension | string | Name of the related standard dimension or UDD that is the target of a to-many relationship |
value | value[0...n] |
IDs for the related dimension values that are the targets of to-many relationships |