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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / AL CodeUnit API scope
Power Apps
Unanswered

AL CodeUnit API scope

(0) ShareShare
ReportReport
Posted on by 43

We know that an AL Page can contain the line PageType = API; and a Query can contain: QueryType = API; so that a Web Service can be wrapped around them in Business Central and then be accessed from external software like Microsoft PowerApps (via a connection) or C#.NET (via an oData Connected Service). Can a CodeUnit contain a line like: CodeUnitType = API, for the same reason?

Alternatively can a procedure be defined in an API Page and then be called from external software?

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @NW-PA ,

    Could you please share a bit more about your scenario?

     

    Based on the issue that you mentioned, I think this issue is related to Dynamics 365 Business Central. Please consider post your issue on Dynamics 365 Business Central Forum:

    https://community.dynamics.com/business/f/dynamics-365-business-central-forum

     

    If you have any questions about PowerApps, please feel free to reply here.

     

    Best regards,

  • NW-02041031-0 Profile Picture
    43 on at

    I seem to be always posting on both forums because I'm working on a project that involves PowerApps interacting with Business Central (On-Prem). Here's a related PowerApps question: if we were to be able to define either an API scope CodeUnit or an API scope procedure within an API Page, can PowerApps call it?

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @NW-PA , 

    Do you want to call a external API from your PowerApps app directly?

     

    If you want to call a external API from your PowerApps app directly, I afraid that there is no way to achieve your needs in PowerApps currently.

     

    If you want to call a REST API from PowerApps app, I think the Custom connector functionality could achieve your needs. You could consider define a Custom Connector within your PowerApps based on your external REST API, then you could call your external REST API through this Custom connector.

    Note: The SOAP API is not supported within PowerApps currently, only REST API is supported.

     

    More details about creating a Custom connector based on REST API within PowerApps, please refer to the following article:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/register-custom-api

     

    Also please check and see if the following video resource would help in your scenario:

    https://www.youtube.com/watch?v=dBCS1nPsDiE

     

    Best regards,

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard