cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Check out the Power Apps Community Call for January 2021

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (9,682)