Skip to main content

Notifications

Community site session details

Community site session details

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

About SourceTable of cutom api for AL Extension in business central

(1) ShareShare
ReportReport
Posted on by 2
Hello team,
I am endeavoring to create a custom API for purchase invoices using AL Extension with OData. In this API, I've employed the SourceTable = 'Purch. Inv. Entity Aggregate' as it provides fields such as Vendor Id, Pay-to Vendor Id, among others. However, crucial fields like Posting Description, On Hold, Remit-to Code, Purchaser Code, and others are absent. How can I integrate these additional fields into the Purch. Inv. Entity Aggregate table? Furthermore, how can I utilize them within the custom API code with OData, particularly when invoking the custom API via the POST method, how can I pass those additional properties?
  • Suggested answer
    YUN ZHU Profile Picture
    79,513 Super User 2025 Season 1 on at
    About SourceTable of cutom api for AL Extension in business central
    Hi, Use Table Extension to first add fields to 'Purch. Inv. Entity Aggregate'.
    You can then add fields to your new API page.
     
    More details: Dynamics 365 Business Central: Can we extend standard APIs? – Download Standard Source Code for APIs
     
     
    Thanks.
    ZHU

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,296 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,093 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans