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

Graph api and flow

Hey,

 

I have the following requirement:

I have created a flow to consume the graph api:

The authentication : none

URI: The url that gets me the json response with the attributes

Header: Authorization for that url

The flow below is for a specific user: E.g. power.apps@gmail.com

flow diag.PNGflow.PNG

 

The requirement is to pass it dynamically so that whatever user email i input in Text Box and press the button

I need to get their json response in the form below.

portalweb_0-1594816965293.png

Please help!

Thank you.

 

1 REPLY 1
yashag2255
Dual Super User II
Dual Super User II

Hi @portalweb 

 

You can add a variable in Power Automate flow and pass its value from the canvas app. You can initialize a variable to store the value. Create a variable of type string and from dynamic content select "Ask in PowerApps". Now you can pass this initialized variable in further actions.

 

Once the flow changes are complete. You need to re-attach the flow. To pass the flow you can use the expression like:

FlowName.Run(Parameter1)

 

To store the response, you can create a variable like:

Set(ReturnedResponse, FlowName.Run(Parameter1))

To reference this value in Edit Form, you can set the Default property of the controls as ReturnedResponse.KeyToFetch

 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (30,046)