Hello,
I'm working on a project where I want to make an HTTP request with Power Automate, and display the data that comes from the request, in my Power Apps application.
I currently have a text field in my application, where I want to display JSON from the request, and I also have the request ready in Power Automate, but I just can't figure out, how to use variables from Power Automate in my Power Apps application...
If the trigger is Power Apps you have this action:
And to use it in Power apps, do this:
If(
FlowName.Run( //INPUT APRAMETERS IF NEEDED // ).VarName = "ok",
Notify("OK"),
Notify ("ERROR")
)
If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!
Best regards,
Gonçalo Nogueira
Check my LinkedIn!
Check my User Group (pt-PT)!
Last Post on Community
My website!
Hi,
Thanks for responding @Nogueira1306 !
My Power Automate side looks like this ->
Now on my Application side "Get Folders" button is the one that triggers the automation, and the "label text" field is the place where I should display the JSON request ->
Here is the "Get Folders" button properties ->
And the name of the text field where the data should be shown ->
So how should I configure and which element?
I'm starting Power Platform a few hours ago, so basically, everything is pretty much new to me 🙂
On the button write this:
Set(JSONFromFlow , Getfolders.Run("Unattended").Body)
On the label, on Text property write this:
JSONFromFlow
If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!
Best regards,
Gonçalo Nogueira
Check my LinkedIn!
Check my User Group (pt-PT)!
Last Post on Community
My website!
It might have to do with you zone. Some countriesuse "," and others ";"
Try with ";"
@Nogueira1306
"," is correct here
Does that "JSONFromFlow" should be some sort of variable in PowerApps?
Yes...
Set function creates an variable
https://docs.microsoft.com/en-US/powerapps/maker/canvas-apps/functions/function-set
If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!
Best regards,
Gonçalo Nogueira
Check my LinkedIn!
Check my User Group (pt-PT)!
Last Post on Community
My website!
@Nogueira1306
When I manuyally run power automate that "jsonfromflow" receives the text properly:
In variables :
But I still have this issue
With ; it says:
You are giving only 1 parameter and you ask for 2
Set(JSONFromFlow , Getfolders.Run("Unattended"; PARAM2).Body)
Replace PARAM2 for your parameter
If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!
Best regards,
Gonçalo Nogueira
Check my LinkedIn!
Check my User Group (pt-PT)!
Last Post on Community
My website!
User | Count |
---|---|
156 | |
94 | |
82 | |
77 | |
58 |
User | Count |
---|---|
196 | |
175 | |
103 | |
96 | |
89 |