Let's turn it off,
and come back to our flow.
So I automate,
I keep calling a flow because of,
you know that it was flow before.
So yeah, let's go ahead and edit this.
So we have our HTTP,
let's let's do this.
Let's go ahead and let me check.
This is just a basic get,
so that's fine,
yep, we have a get.
Okay. So this is,
so this is this is where we have a
problem. I was supposed to have done this
for the question mark here,
Save this again
and let's try this one more time.
Keeping it crossed if the goals of the demo
day will be favorable to us. And there
you go, we're being able to run very,
very easily and simply using Power Automate's
calling a Pro-dev IoT Setup from Automate.
Now, the next thing we can do is take
this to the next level where we actually
implement this in an actual Power App.
Right, So how about let's do this,
Let's go back in here and then I
can change this to off.
I mean I cannot put it in the body because
I had this design in a way that I
could do that.
So let's put this here and then I'm
going to save this.
Let's test the flow again.
Run the flow and look at that.
Our fun just stopped.
So if we want to take this to the next
level, right,
how do we do this?
I'm gonna go ahead and then I've just,
you know,
made a provision for this.
So this is gonna be called from a
you know,
Power App.
So let's do this.
I'm going to call this one
Power Fan On
And then this is going to be, a get,
yeah, we can decide to pass the
URL In there if we want to or not
just, you know, not pass it depending
on how you want to do the different ways
you want to do.
You can either pass the
state coming in from
your Power Apps.
So this is what I would do.
Let's actually, we don't need the body
here. And then I'm just going to
change this. You know what- let's do
this from Power Apps.
So it's it's quite easy and simple for
us you know to do so people to appreciate it.
At least we've seen the flow working.
So I'm gonna leave this,
leave that running,
let's come into Power Apps and then make
sure I'm in the right tenant.
I'm just going to create a very basic -
I like it very basic model.
Canvas App and I'll just call
it Power Fan or use the phone for now
and yep, asking me to authenticate.
Hopefully I will just get this done in
time. But I mean as you can see it's,
it's quite very easy to do that.
We moved from IoT rig from IoT Hub
exported,
you know,
the API
into functions were being able to
use it in Power Automate.
I'm just trying to bring it here,
skip this.
I want to bring it into a Power App
to see how that is done.
Um you can follow me on any of my,
you know,
youtube and social media channels.
I have like detailed tutorials on how
to do this.
I could even export this into a Power
Virtual Agent that,
you know,
you can interact with the fan,
you know,
my fan on and off anywhere you want in
the world or you think about it,
you know,
the possibilities are very,
you know,
are endless.
So let's let's see if we can quickly
do this. So let's go ahead and let's
put a button here.
Yeah, very simple,
very very very simple button and then
let's go back here to the action and
we can do a Power Automate.
I'm just going to create a
very simple,
you know,
flow to do that.
Hopefully I can get it done in time.
But if I'm able to do this in Tableau where
you've seen us connected to Power Automate
- and that's how it's easy for you
to bring your Power Platform stuff into
um a Pro-Dev situation.
So yeah, Power Apps Button - this is
what I want.
Let's click,
this - its an instant one.
Yes, manual with a custom action,
yep, no additional information here.
So the next step here,
we're gonna do the HTTP.
There we go.
I'm just gonna do a get and then the
method we're going to do a get and
the URL
Remember the URL here
but then I'm going to do the state equals
and this,
I'm going to try to pass this from from,
you know what,
let's just let's just leave it this
way so we can just call it directly
one of passing anywhere because of
time. Else I would have just created
parameters for you to pass from Power
Apps into this.
So let's just keep it this way -
state on - and just save this,
just save this.
So let's let's call this Power
App - and then save this again,
yep, awesome.
So now if we came back to what you see
- it's changed,
but again, so there we go.
So un-select I can say no let's bring
this in first,
And yet we're not passing anything.
Right? So let's quickly test this.
Quickly, quickly, test before its time.
I don't have just a few minutes left,
Let's run this and I can see the marching
ant.