Skip to main content

Notifications

Small and medium business | Business Central, N...
Unanswered

Dimension Code must have a value in Dimension Value

Posted on by 15

I have created a Dimension Values endpoint so that I can create new values via API however however when I POST the following body to the endpoint...

{
"Code": "TESTCL1",
"Name": "Test Client",
"Dimension_Code": "CLIENT"
}

I receive the follow message...

Dimension Code must have a value in Dimension Value: Dimension Code=, Code=TESTCL1.

Even though the dimension code exists.

Any assistance would be greatly appreciated.

  • YUN ZHU Profile Picture
    YUN ZHU 73,472 Super User 2024 Season 2 on at
    RE: Dimension Code must have a value in Dimension Value

    Hi, as Josh mentioned, please try inserting the two fields of the primary key first.

    For example:

    {
    "Code": "TESTCL1",
    "Dimension_Code": "CLIENT",
    "Name": "Test Client"

    }

    pastedimage1643934085165v1.png

    Hope this will help.

    Thanks.

    ZHU

  • JAngle Profile Picture
    JAngle 33,159 on at
    RE: Dimension Code must have a value in Dimension Value

    Rejig the order of the data in the json. Must be the primary key logic rejecting the request.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans