Get entity defaultDimensions
Gets the default dimensions of an entity in Business Central.
HTTP request
Replace the URL prefix for Business Central depending on environment following the guideline. The following example gets the default dimensions of an entity.
GET businesscentralPrefix/companies({id})/defaultDimensions({id})
GET businesscentralPrefix/companies({id})/items({id})/defaultDimensions({id})
GET businesscentralPrefix/companies({id})/customers({id})/defaultDimensions({id})
GET businesscentralPrefix/companies({id})/vendors({id})/defaultDimensions({id})
GET businesscentralPrefix/companies({id})/employees({id})/defaultDimensions({id})
Request header
Header | Value |
---|---|
Authorization | Bearer {token}. Required. |
Request body
Do not supply a request body for this method.
Response
If successful, this method returns a 200 OK
response code and the default dimensions in the response body.
Example
Request
GET https://{businesscentralPrefix}/api/v2.0/companies({companyId})/items({itemId})/defaultDimensions
Response
Here is an example of the response.
Note
The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.
{
"id": "5b049aad-bde4-ea11-bbf2-00155df3a615",
"parentId": "53049aad-bde4-ea11-bbf2-00155df3a615",
"dimensionId": "47c99ea7-bde4-ea11-bbf2-00155df3a615",
"dimensionCode": "DEPARTMENT",
"dimensionValueId": "49c99ea7-bde4-ea11-bbf2-00155df3a615",
"dimensionValueCode": "SALES",
"postingValidation": " "
}
Related information
Tips for working with the APIs
defaultdimension
Delete defaultdimension
Create defaultdimension
Update defaultdimension