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

Trigger Power Automate Flow Through Business Central Action.

(0) ShareShare
ReportReport
Posted on by 2,100

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,100 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,100 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

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,135

#2
YUN ZHU Profile Picture

YUN ZHU 733 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 612

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans