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

Custom API table not accessible via Power Automate

(7) ShareShare
ReportReport
Posted on by 251
Hi Folks,
 
I have created a custom API using AZ AL wizard, and it created the API successfully for me. I have created and published my app and can see that in the Installed extentions, Thanks to the community here.
 
The problem now I am trying to solve is why the table is not being displayed. The API can be seen through the power Automate and can be selected, but the table section is blank.
 
Please see the power automate screen shot. I have also attached my AL code in notepad. Am i missing something very basic I am not sure.
 
Any guidance would be appreciated please.
 
 
 
 
page 50149 APIAssemblyOrders
{
    APIGroup = 'AssemblyOrders';
    APIPublisher = 'BusinessHub';
    APIVersion = 'v1.0';
    ApplicationArea = All;
    Caption = 'apiAssemblyOrders';
    DelayedInsert = true;
    EntityName = 'Assembly';
    EntitySetName = 'Assemblies';
    PageType = API;
    SourceTable = "Assembly Header";
I have the same question (0)
  • Verified answer
    Dhiren Nagar Profile Picture
    2,898 Super User 2026 Season 1 on at

    Hi,

    Can you please define ODataKeyfields ( https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-odatakeyfields-property) property for this API page? Also make sure that your EntityName and EntitySameName are unique.

    Check detailed steps on how to create custom API here - https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-develop-custom-api#to-create-api-pages-to-display-car-brand-and-car-model

    You can check a similar post here - https://community.dynamics.com/forums/thread/details/?threadid=289bc806-5c52-f011-877b-6045bdeb8a5d

    ✅ Tick the box below to mark the answer as verified if it helped resolve your question.

    Regards,
    Dhiren.
     
     
  • Suggested answer
    Pallavi Phade Profile Picture
    5,420 Super User 2026 Season 1 on at
     
    Can you verify odatakeyfields Property 
     
    Please verfiy the sample article
     
     
     
    Warm Regards
    Pallavi Phade
    www.linkedin.com/in/pallaviphade131116
  • Suggested answer
    YUN ZHU Profile Picture
    99,086 Super User 2026 Season 1 on at
    Hi, hope the following can give you some hints as well.
    Dynamics 365 Business Central Blog Series: REST API web services (APIs)
     
    Thanks.
    ZHU
  • AmitK-BHub Profile Picture
    251 on at
    Thanks Everyone, I am glad everyone here had a correct answer. I also found an alternative approach to share with everyone via Event subscriber especially around sending out email when assembly order is released. It uses a hardcoded email. 
     
    I had a lot of issue with permission for API registration created so I used the below code.
     
    codeunit 50129 "Asm Order Release Email"
    {
        [EventSubscriber(ObjectType::Codeunit, Codeunit::"Release Assembly Document",
                         'OnAfterReleaseAssemblyDoc', '', false, false)]
        local procedure OnAfterReleaseAssemblyDoc(var AssemblyHeader: Record "Assembly Header")
        var
            Email: Codeunit "Email";
            EmailMessage: Codeunit "Email Message";
            BodyText: Text;
            SubjectText: Text;
        begin
            SubjectText := 'Assembly Order ' + AssemblyHeader."No." + ' Released';
     
            BodyText :=
                'Assembly Order Details:' + '\'
                + 'Order No.: ' + AssemblyHeader."No." + '\'
                + 'Item No.: ' + AssemblyHeader."Item No." + '\'
                + 'Quantity: ' + Format(AssemblyHeader.Quantity);
     
            EmailMessage.Create(
                'XXXXXXX Enter email',
                SubjectText,
                BodyText,
                false
            );
     
            Email.Send(EmailMessage);
        end;
    }

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 March 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,005 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,148 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 557 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans