web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

API - json body with nested nodes

(0) ShareShare
ReportReport
Posted on by 20

Hi all,

I tried to create a web API extension in Dynamic 365 BC SAAS that accept a json body with nested nodes.

Someone tried to create API that accept a json body with more nested nodes (3,4 o more)? Someone have some idea about my issue?

Thanks!

PS: This is the body that my “mock” API should accept:

{

“no”: “TEST001”,

“description”: “this is test 001”,

“lines”: [

     {

         “lineNo”: 10000**,**

         “lineDescription”: “this is test 001 line”,

         “sublines”: [

             {

               “sublineNo”: 10000**,**

             “subLineDescription”: “this is test 001 subline”

            }

         ]

     }

    ]

}

  • Verified answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    And what exactly is the issue or problem you run into?

  • Thabet Profile Picture
    20 on at

    Create api (page or codeunit) in business central to receive this request

  • hilmus Profile Picture
    on at

    I have the same request, but from dynamics  business central BC180 when I post the nested queries the API returns "An item with the same key has already been added"

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 624 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 440 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 244 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans