cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
meklulose
Frequent Visitor

How can I trigger logic app from model driven power app

I need ideas on how I can trigger a logic app from model driven app without using connectors. I have business process flow that user step through and once the information is complete, I would like to trigger logic app but i can't figure out what the best way to do it is. Any ideas or examples will be greatly appreciated. 

2 REPLIES 2
phipps0218
Super User
Super User

I would run a flow within PowerApps, and use the HTTP action to trigger a logic App.

 

Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful as can help others.

LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
Subscribe to my YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg

v-bofeng-msft
Community Support
Community Support

Hi @meklulose,

 

I've made a test for your reference:

1\Add an "When a HTTP request is received" trigger , save the flow and then copy the URL

vbofengmsft_0-1656494532463.png

2\Navigate to the model-driven studio to edit command bar

vbofengmsft_1-1656494620789.png

3\Add a command button 

vbofengmsft_2-1656494634035.png

I)Action : Run JavaScript

II)Add Library

III)Set the Library and then publish the library

vbofengmsft_3-1656494713081.png

function BofTest(){

var requestOptions = {
  method: 'POST',
  redirect: 'follow'
};

fetch("https://prod-24.southeastasiXXXXXXXXnual%2Frun&sv=1.0&sig=VTuTFhOPqu2REZdY9PYJaZVXfHNbrF88guTtfpd-4xc", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

}

IIII)Set the function name which we want to run

 

vbofengmsft_4-1656494802231.png

4\Save and publish the model-driven app

Click the button in the app and the flow will be triggered

vbofengmsft_5-1656494891222.png

vbofengmsft_6-1656494897751.png

 

Best Regards,

Bof

 

 

 

 

 

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,651)