Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Getting very less dimensions while calling /companies({id})/customers({id})/defaultDimensions

(6) ShareShare
ReportReport
Posted on by 12
I am trying to fetch the defult dimensions of a specific customer there are two dimensions one is BRAND and another is CHANNEL set for the customer but when I tried to fetch the details using this https://api.businesscentral.dynamics.com/v2.0/production/api/v2.0/companies({id})/customers({id})/defaultDimensions in POSTMAN it is giving only one dimension that is BRAND. 
 
What could be causing this issue? Are you aware of any limitation on Dynamics API or particular configurations that might reduce the number of dimension values returned by the API compared to the UI?
I already double checked the company id and environment and the customer id.
 
Thank You
  • Suggested answer
    Jeffrey Bulanadi Profile Picture
    1,101 on at
    Getting very less dimensions while calling /companies({id})/customers({id})/defaultDimensions

    Hi

    It confirms that the /defaultDimensions API call is returning only the BRAND dimension, while CHANNEL is missing despite being visible in the UI. This behavior can be caused by a few factors:

    1. Dimension Assignment Scope

    • The API only returns dimensions that are explicitly assigned to the Customer record
    • If CHANNEL is inherited from another entity (e.g., Customer Group or Posting Group), it may appear in the UI but not in the API response
    • Use the Default Dimensions page for the customer to confirm that CHANNEL is directly assigned

    2. Value Posting Configuration

    • If CHANNEL is set with a Value Posting = No Code, it may not be included in the API response
    • Only dimensions with active value posting (e.g., Same Code, Code Mandatory) are reliably returned via API
    • You can verify this by checking the Value Posting field on the Default Dimensions page

    3. API Filtering Behavior

    • The API may exclude dimensions with empty or null dimensionValueId or dimensionValueCode
    • Ensure that CHANNEL has a valid dimension value assigned—not just the dimension code

    4. Data Sync or Cache Delay

    • If CHANNEL was recently added, it may not be reflected immediately in the API response due to caching or sync delay
    • Try refreshing the environment or reassigning the dimension to trigger an update

    Reference Documentation


    If you find this helpful, feel free to mark this as the suggested or verified answer.

    Cheers
    Jeffrey

  • Gerardo Rentería García Profile Picture
    20,638 Most Valuable Professional on at
    Getting very less dimensions while calling /companies({id})/customers({id})/defaultDimensions

    Hi, good day

    If the default dimensions endpoint does not return data, it is likely that you do not have dimensions explicitly configured in your card.

    Best Regards
    Gerardo

  • Suggested answer
    Khushbu Rajvi. Profile Picture
    17,496 Super User 2025 Season 1 on at
    Getting very less dimensions while calling /companies({id})/customers({id})/defaultDimensions
    Can you check customer’s Default Dimensions setup directly in BC.
  • CU04030430-0 Profile Picture
    9 on at
    Getting very less dimensions while calling /companies({id})/customers({id})/defaultDimensions
    Thank you everyone. But the requirement is I want to send the emails to my retail customers When I release my sales order in business central. I have configured Power Automate flow and fetching the customer dimension where CHANNEL is reatil. It happens for the few customers where all the default dimensions are not coming when I call this API endpoint https://api.businesscentral.dynamics.com/v2.0/production/api/v2.0/companies({id})/customers({id})/defaultDimensions 

    Do any one have nay idea what could be causing this issue? 
    I already double checked the company id and environment and the customer id as well as the permissions in the Microsoft Entra Application
  • Suggested answer
    YUN ZHU Profile Picture
    85,503 Super User 2025 Season 1 on at
    Getting very less dimensions while calling /companies({id})/customers({id})/defaultDimensions
    Hi, I did a simple test and didn't encounter the problem you mentioned
    https://api.businesscentral.dynamics.com/v2.0/7e47da45-7f7d-448a-bd3d-1f4aa2ec8f62/Sandbox262/api/v2.0/companies(0afa3df2-2b43-f011-be59-6045bd641420)/customers(7a33313a-2c43-f011-be59-6045bd641420)/defaultDimensions
     
    Is it a permissions issue?
     
    Hope this helps.
    Thanks.
    ZHU
  • Gerardo Rentería García Profile Picture
    20,638 Most Valuable Professional on at
    Getting very less dimensions while calling /companies({id})/customers({id})/defaultDimensions
  • Suggested answer
    Sohail Ahmed Profile Picture
    4,741 on at
    Getting very less dimensions while calling /companies({id})/customers({id})/defaultDimensions

    Creating a custom API endpoint in AL is the recommended solution if you need to retrieve all default dimensions via API.

    ✅ Mark this answer as verified if it helps you.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans