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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (58,521)