Skip to main content

Notifications

Announcements

No record found.

Business Central forum

Create Custom Odata Web Api

Posted on by Microsoft Employee

is it possible to create custom web api with capability to accept array of json object in 365 BC.
if it's not possible, can you give me workaround to post multiple json object in one request.


Regards

Categories:
  • JV-15051434-0 Profile Picture
    JV-15051434-0 16 on at
    Create Custom Odata Web Api
    Hi,
     
    Do you mean that if you can make an API in BC that accepts json? Just make an API page.

    You cannot accept arrays directly, but there is a way to receive batch, which is in fact an array of json requests:
    Batch calls with Business Central APIs (1) – Basic operation – Kauffmann @ Dynamics 365 Business Central

    hope it helps.
     
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    Khushbu Rajvi. 4,598 on at
    Create Custom Odata Web Api
    It's quite simple. You need to create tables and list pages, then use SubPageLink to link the pages within one form. You can refer to the default code as a reference.
    Table like: Sales Header, Sales line pages like: 
  • Suggested answer
    Sohail Ahmad Profile Picture
    Sohail Ahmad 2 on at
    Create Custom Odata Web Api
    DID you figured out this or not? as i am also revolving around this case.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans