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

Community site session details

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

Invoking actions through AL in an API Page

(1) ShareShare
ReportReport
Posted on by 4
Hello everyone, i would like to know how can i "press" the action buttons in BC Pages? I need to Register the Items that have been picked using AL Code, it's needed because i'm creating a Power Apps Inventory management and picking tool.
There's a lack of documentation on the internet, though i've tried something reading the source code but i've had no luck unfortunately.
How can i verify and register the items picked in the page Warehouse Pick (5779) through AL Code?

I have the same question (0)
  • MD-24101244-0 Profile Picture
    4 on at
    Invoking actions through AL in an API Page
    Thanks for the answers. 

    In Power Apps, it's possible to use the Business Central Connector to communicate with API Pages and also trigger a procedure inside a API Page, that's not an issue. The issue is, to register the picks using AL Code through a procedure. Because of lacking documentation i don't know which codeunit to use if there's any  that i can trigger to register all picks.
    Is there a codeunit i can Run to register all picks?
  • Suggested answer
    YUN ZHU Profile Picture
    90,354 Super User 2025 Season 2 on at
    Invoking actions through AL in an API Page
    Not all standard buttons can be done in Power Apps. In the standard code, another page is opened to pick the items, which is not possible in Power Apps because there is no such page.
    You need to create a new page in Power Apps, open it using the same filtering criteria, and then refer to the code for picking items to add some logic to the new page.
     
    I'm sorry I haven't actually done this either, but I hope I can give you some advice.
    Thanks
    ZHU
  • MD-24101244-0 Profile Picture
    4 on at
    Invoking actions through AL
    The problem with that is, that it's an API Page not a visible Page. The picks need to be registered when i'm calling it through OData functions using Postman or Power Apps, that's why i need to know if there's a codeunit already that i can use to register the lines or i need to implement it myself somehow.
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    19,052 Super User 2025 Season 2 on at
    Invoking actions through AL
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    19,052 Super User 2025 Season 2 on at
    Invoking actions through AL


    This is the how u can create action in the particular page and then when you press that action code will run.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sumit Singh Profile Picture

Sumit Singh 2,710

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 2,675 Super User 2025 Season 2

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,203

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans