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

Trigger Power Automate Flow Through Business Central Action.

(0) ShareShare
ReportReport
Posted on by 2,102

Hy Community,

I Need a "Action" in Business central  Page that can Directly Trigger the Power Automate Flow in Business central through AL Code.

NOTE: I Need Directly Trigger a "Action" there should not be a pop up of Run flow in Business Central.

Thank in Advance!!

I have the same question (0)
  • Suggested answer
    Govinda Kumar Profile Picture
    2,304 Moderator on at

    Hi,

    I had a similar requirement few days ago and found a helpful blog post by ZHU YUN https://yzhums.com/32418/. It explains how to manually add new Power Automate action in Business Central through AL code.

    I hope it helps you as well

    Regards

  • Inkey Solutions Profile Picture
    2,102 on at

    3733.Capture.PNG

    The Starting of the flow Is "HTTP" so and consist of "HTTP POST URL" link and so on the flow is Made.

    >>Can you Guide me that , I am Trying to make a  Procedure in a Codeunit that I call in the PageExtension ,To get the Power automate Flow Run Directly through the AL Code and I have mention the image below ,so just guide me that if there is a way through AL code we can Call an "HTTP" of Power Flow in the Action of Business Central.    

    pastedimage1683897460002v1.png7271.Screenshot-_2800_18_2900_.pngScreenshot-_2800_16_2900_.png

  • Suggested answer
    Govinda Kumar Profile Picture
    2,304 Moderator on at

    I think you forgot to add your procedure to the OnRun() trigger of your codeunit INK_GetPostURL.. try adding your procedure in the OnRun() trigger, like so

    trigger OnRun()
    begin
        MyProcedure();
    end;

    Regards

  • Suggested answer
    Inkey Solutions Profile Picture
    2,102 on at

    pastedimage1683953132330v1.png

    I Have Put the  MyProcedure(); in trigger OnRun() I got these through Click the that action Button in Business Central.

  • Suggested answer
    Govinda Kumar Profile Picture
    2,304 Moderator on at

    Can you tell if you're just trying to display an HTTP response as a text message? Could you also show me the variable declaration and where you provided the path in Client.Get()?

  • Suggested answer
    Govinda Kumar Profile Picture
    2,304 Moderator on at

    You are missing the path in Client.Get()

        Client.Get('yourpath', Response);
        if (Response.IsSuccessStatusCode) then begin
            Content := Response.Content;
        end
        else
            Message('Response was negative %1, %2', Response.HttpStatusCode, Response.ReasonPhrase);
        Content.ReadAs(Result);
        Message(Result);

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,091 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,032 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 946 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans