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

Notifications

Announcements

No record found.

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
    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
    Inge M. Bruvik Profile Picture
    1,111 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
    95,597 Super User 2025 Season 2 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,917

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,161 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,025 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans