web
You’re offline. This is a read only version of the page.
close
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

(7) ShareShare
ReportReport
Posted on by 14
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
I have the same question (0)
  • Suggested answer
    Sohail Ahmed Profile Picture
    11,148 Super User 2025 Season 2 on at

    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.

  • Gerardo Rentería García Profile Picture
    25,225 Most Valuable Professional on at
  • Suggested answer
    YUN ZHU Profile Picture
    95,548 Super User 2025 Season 2 on at
    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
  • CU04030430-0 Profile Picture
    11 on at
    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
    Khushbu Rajvi. Profile Picture
    20,439 Super User 2025 Season 2 on at
    Can you check customer’s Default Dimensions setup directly in BC.
  • Gerardo Rentería García Profile Picture
    25,225 Most Valuable Professional on at

    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
    Jeffrey Bulanadi Profile Picture
    8,760 on at

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans