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...
Suggested Answer

Add fields from two different tables in API page

(0) ShareShare
ReportReport
Posted on by 80

I have to add two different fields on one API page. let's say one from the employee table and another from the default dimension. How can I achieve this?

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    I assume you need to create a page which has the fields added to it and from there create the API page.

    Thanks.

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,187 Moderator on at

    There is an example here you can follow as long as there is a relation between the tables:

    docs.microsoft.com/.../devenv-develop-custom-api

    If there is no releation you have to add code to the OnAfterGetRecord trigger to retrieve the data you need from the other tables.

  • Suggested answer
    YUN ZHU Profile Picture
    100,554 Super User 2026 Season 1 on at

    Hi, or you create a normal page, get the data on OnOpenPage trigger, and publish it in the Web Service.

    Hope this helps as well.

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,184 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,148 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 677

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans