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!!
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);
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()?
I Have Put the MyProcedure(); in trigger OnRun() I got these through Click the that action Button in Business Central.
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
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.
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,104 Most Valuable Professional
nmaenpaa 101,156