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 Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (3,019)