Power Automate HTTP action, Rest API, and IOT

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 พ.ย. 2024

ความคิดเห็น • 128

  • @martinchisholm9755
    @martinchisholm9755 3 ปีที่แล้ว +9

    This is excellent, thank you! Please continue digging deeper in to API's, there is just so much you can achieve by integrating with other systems.

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว

      Thanks, will do!

  • @anthonyleduc
    @anthonyleduc ปีที่แล้ว +1

    You're my light. I needed to connect to a database with rest api and synchronize the data into a SP list. Works like a charm now.
    Thansk a lot

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      Excellent! Have a great day!

  • @excitedsolutions1255
    @excitedsolutions1255 3 ปีที่แล้ว +1

    Can’t tell you how much I appreciate this video. Dealing with arrays as a json result have been very challenging. There aren’t any videos that I could find that walked through like you did. Thanks again

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว

      Awesome. Glad it helped. 🐶

  • @pareshparekh7602
    @pareshparekh7602 3 ปีที่แล้ว +2

    Awesome, i have used this to run API for my Bulk SMS account, working so well, Thank you Shane

  • @AndrewSmith-zm7vn
    @AndrewSmith-zm7vn 3 ปีที่แล้ว +2

    Fantastic Shane, a great video. I'm no developer but you show how things can be done that won't scare people away from giving it a go!

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว

      Awesome, that is my goal. I am not a developer either so always fun to learn together.

  • @shtan1669
    @shtan1669 3 ปีที่แล้ว +1

    Hi Shane, just wanna say thanks for the awesome video. It is really fun to watch probably because the way you talk and most importantly it really helps for newbie like me.

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว

      Glad to help. 😀

  • @devangshah4546
    @devangshah4546 3 ปีที่แล้ว +2

    Finally it's here...Thank you so much Shane for creating this video...😁😊🎉

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว +1

      Happy to help Devang

  • @toddhawthorne7768
    @toddhawthorne7768 3 ปีที่แล้ว +1

    Fun demo! Yes, let's keep digging deeper (custom connectors, Azure API Management, all things external integration).

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว

      More to come! I enjoyed the API stuff.

  • @bjdottcom777
    @bjdottcom777 3 ปีที่แล้ว +1

    Thank you so much for adding hilarious personality to educational content. Well done!

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว +1

      Thanks BJ. I know this stuff is boring so I do my best to bring a touch of fun to it.

  • @PowerThingsWithWes
    @PowerThingsWithWes 3 ปีที่แล้ว +2

    this is awesome, when I get moved into my new house, I will DEFINITELY be re-watching this video. (also: FIRST)

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว +2

      Wes you are the best. Hope all is well and congrats on the new place.

  • @kevinflanagan5851
    @kevinflanagan5851 หลายเดือนก่อน +1

    yes jumping deeper into setting up the power app of turning lights off and on would be great possible seeing

    • @ShanesCows
      @ShanesCows  หลายเดือนก่อน

      Hey Kevin - Not sure where you are on your journey but I did get more detailed on APIs here th-cam.com/video/p8ErJU43N74/w-d-xo.html
      Covered deeper JSON here
      th-cam.com/video/G6dU5me5h1o/w-d-xo.html
      Cover SharePoint API here
      th-cam.com/video/JkcyiQ-OIkU/w-d-xo.html
      What other API stuff would you like to see?

  • @stephendarier1390
    @stephendarier1390 3 ปีที่แล้ว

    Awesome video. Mind blowing!!!!!
    Power automate has a setting for preview. This will change the way you write your expressions in flow. Its much more user-friendly when troubleshooting give it a try. And keep the videos coming

  • @mowtown75
    @mowtown75 2 ปีที่แล้ว

    Great Again! Here to learn how how to post a SharePoint list to an external system using RestAPI and JSON upon list change.

  • @mannykhan7752
    @mannykhan7752 ปีที่แล้ว +1

    Really fascinating video. Amazing explanation. Thanks Shane

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      Glad it was helpful!

  • @JonH232
    @JonH232 3 ปีที่แล้ว +2

    Exactly what I've been looking for to increase automation on our video production system. I just wish it wasn't Premium!
    Great demo as usual.

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว +2

      Thanks. Premium isn't ideal but one $15 license should cover you for all of hte flows you need for you.

  • @aaron6516
    @aaron6516 3 ปีที่แล้ว +1

    Where is the love button on TH-cam?? Great content!!! 👍

  • @srinchari3139
    @srinchari3139 2 ปีที่แล้ว +1

    Thank you, Thank you Shane this is greatly helpful even for a former developer !!

  • @davig5184
    @davig5184 3 ปีที่แล้ว +1

    Thank you! Shane. always coming up with great stuff.

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว

      Thanks, you are very kind.

    • @davig5184
      @davig5184 3 ปีที่แล้ว

      @@ShanesCows Hey Shane, got "error -2002" "request timeout" any advise? Thank you!

  • @garymalley1797
    @garymalley1797 3 ปีที่แล้ว +1

    Thanks Shane, really excellent breakdown and walk through.

  • @jagadeeshk.474
    @jagadeeshk.474 3 ปีที่แล้ว +1

    Awesome...! I'm using http trigger and collecting machine data to sharepoint and BI. Whereas almsot breaking my head for http action. It is very helpful. Thanks for the rich video...!

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว

      You are very welcome. Glad it had lots of little tips to help.

  • @mannykhan7752
    @mannykhan7752 ปีที่แล้ว +1

    Hi Shane, great video. Do you have a video that gets into details on how you adjust the dimmer? I bought the TP-Link HS220 device and installed it. I can turn it on or off but would love to adjust dimmer brightness on it as well. Would really appreciate if you could make a video on it or explain it in detail.

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      Manny I haven't messed with this stuff in a long while. But here is what I tell you to try. Try using this with hard coded values for everything. Don't try to automate just use this JSOn, strip out all of the dynamic content and see if you can set the brightness to 25 and 100 manually. If you can then start to try working on making it dynamic. Hope this helps.
      {
      "method": "passthrough",
      "params": {
      "deviceId": "@{body('Parse_JSON_2')?['result']?['deviceList']?[0]?['deviceId']}",
      "requestData": {
      "system": {
      "set_relay_state": {
      "state": @{If(equals(outputs('Compose_to_Check_if_Brightness_is_over_100'),0),false,triggerBody()?['OnOrOff'])}
      }
      },
      "smartlife.iot.dimmer": {
      "set_brightness": {
      "brightness": @{outputs('Compose_to_Check_if_Brightness_is_over_100')}
      }
      }
      },
      "token": "@{body('Parse_JSON')?['result']?['token']}"
      }
      }

  • @danielszelagiewicz2262
    @danielszelagiewicz2262 2 ปีที่แล้ว

    Hi Shane! Great inspiration! I need o use flow to control IOs within the same network that my phone is. Should I use different connector? I want to avoid to use external IP and access due to security reasons...

  • @vladsamoilov897
    @vladsamoilov897 3 ปีที่แล้ว +1

    Awesome video as usual - thanks a lot. Proud to be Shane's follower:). Interesting to explore alternative of doing Rest API call completely in PowerApp via custom connector (BTW will it save few bucks)? Or is Power Automate just "user friendlier" :)? Shane, please keep coming good stuff, especially all things integrations with external systems.

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว

      Will do. Custom connector would be easier but it does change licensing. 😎

  • @gogorichie
    @gogorichie 3 ปีที่แล้ว +1

    love it "kinda nerdy......but not super scary"

  • @nashryder
    @nashryder 8 หลายเดือนก่อน +2

    Great video, how about Patch Method to update?

    • @ShanesCows
      @ShanesCows  8 หลายเดือนก่อน

      If you know the API but are just struggling with syntax I would ask Copilot or ChatGPT. Usually with Patch they have more complicated headers, might be something to look for.

  • @mhammadhammoud9027
    @mhammadhammoud9027 3 ปีที่แล้ว +1

    Hello Shane, thanks for this amazing video. Is there any available way to access Kasa spot KC105 and display its live recording in powerapps?

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว +1

      I don’t know. I don’t have one of those to play with. 😑

  • @wzguitar
    @wzguitar 2 ปีที่แล้ว

    why you are so good at tutoring?🙃

  • @TheArmando00
    @TheArmando00 2 ปีที่แล้ว +1

    This awesome, thank you so much for your time!

  • @gerfer6261
    @gerfer6261 3 ปีที่แล้ว +1

    I have to tag this and come back to it later
    By the way thanks from down under

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว

      Glad to help. This is a fun video for sure.

  • @technicaljk4275
    @technicaljk4275 ปีที่แล้ว +1

    Thanks for sharing. Do we have alternate option if we dont have Premium capacity. I am looking to use API call to add Item details to a Sharepoint List. Any suggestions for that? Thank you

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      I replied to your other comment. Using HTTP action with SharePoint is not premium.

  • @TechChaitu
    @TechChaitu 3 ปีที่แล้ว

    What was the authentication used in HTTP trigger

  • @powerappstw
    @powerappstw 3 ปีที่แล้ว +1

    It’s awesome and I’m looking forward to watching it 😄

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว

      I hope you enjoy it. The video was a lot of fun.

  • @martinvanrooyen3104
    @martinvanrooyen3104 2 ปีที่แล้ว +1

    The lord of the rings comment made me like and subscribe xD

    • @ShanesCows
      @ShanesCows  2 ปีที่แล้ว

      I always love slipping in some small movie/tv reference 😍

  • @nuinhuin2685
    @nuinhuin2685 3 ปีที่แล้ว +1

    Hi Shane, great video. IoT is really cool and I would appriciate if you can show more videos about IoT e.g. sensors temperature, humidity, motion sensor

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว

      If I get my hands on any cool stuff like that I will for sure. :) Do you have recommendations on cheap sensors with APIs?

    • @nuinhuin7325
      @nuinhuin7325 3 ปีที่แล้ว

      @@ShanesCows i have a scenario which might be ok for you. Light is off. Create request. Status waiting for approval. Light is yellow. Request is approved. Light is green. Rejected is red. Request is closed. Light is off. Then start new request and light goes on again.

    • @nuinhuin7325
      @nuinhuin7325 3 ปีที่แล้ว

      @@ShanesCows Philips Hue light

  • @joseanibalortega8896
    @joseanibalortega8896 5 หลายเดือนก่อน

    Thanks Shane. Is there a way to submit a GET request with Body? I get an error, the creator of the service did it that way. 😞

  • @tosindanielyt
    @tosindanielyt 3 ปีที่แล้ว +1

    I am wondering if you can do a video on how to call Power BI REST API from Power Automate, like get all reports in a workspace

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว

      Interesting idea. 😎

  • @_Biohazard
    @_Biohazard 3 ปีที่แล้ว +1

    Thank you Shane!

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว

      Happy to help John.

  • @Smithers4486
    @Smithers4486 3 ปีที่แล้ว

    Any experience using Token's in the header vs. the body? Working on an integration with Paylocity receiving one of their webhook notifications. Would love your thoughts.

  • @haroldbk
    @haroldbk 3 ปีที่แล้ว +1

    Great video. but where do we got to setup the credentials - email and password to the TP-Link Cloud?

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว +1

      If you have a Kasa device you install the app on your phone and create an account from there. That account is what you use.

    • @haroldbk
      @haroldbk 3 ปีที่แล้ว +1

      @@ShanesCows thank you. That's what I needed. Now to get the device :)

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว

      The dimmer was a nice addition to my office but did require me doing electrical work. EEK! The smart plugs are super easy to use and just plug in so might be easier to just play with.

    • @haroldbk
      @haroldbk 3 ปีที่แล้ว

      @@ShanesCows I got the mini plugs to work but haven't tackled installing the dimmer switch, yet

  • @yehuda4904
    @yehuda4904 ปีที่แล้ว +1

    Wow, really cool, this would have taken hours or days to do with another technology. Amazing, thank you. I'm wandering if it's possible to right commercial app with this...

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      Not today. Everyone who uses the app has to have an account.

  • @ChinhNguyen-ep4ik
    @ChinhNguyen-ep4ik ปีที่แล้ว +1

    Thank you, your article is very good
    you can show me?
    how to split multiple threads to call API at 1 time

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      In your flow you can do parallel branches. I don't know if I have a video on it but that will let you run things in parallel.

  • @victorllanso3358
    @victorllanso3358 ปีที่แล้ว

    Hello Shane,
    Do you know if the payload/protocol used to activate and deactivate the device is it still working?
    I just bought a pair of TP link devices, and I am able to get the list of devices and their IDs, but when I try to use the paiload to activate or deactivate, I always get error_code -20571, msg “Device is offline”.
    But from the official app installed on my cellphone i can turn them on and off without a problem

  • @erwin8335
    @erwin8335 3 ปีที่แล้ว +1

    Hi guys. Im sending this message on a couple of Shanes videos as I know how helpful he and his community is. I have a question that I cannot find on google.
    Im using powerapps with sharepoint to run a couple of shops I have. The shops report daily on powerapps what the days expenses, income etc were. Is there a way that I can summarise the daily income from all the shops in a manneer that it can be viewed back im a gallery on powerapps? Not sure if powerapps/sharepoint has this function?
    Thanks!

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว +1

      Power BI would be the ideal answer. Second best might be to have a flow that does the crunching for you so you can just view. Something like the video I am about to find a link to.

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว +1

      Here is the video you need. th-cam.com/video/V1ThALavvf0/w-d-xo.html

    • @erwin8335
      @erwin8335 3 ปีที่แล้ว

      Shane Young Thanks Shane appreciate it!

  • @09prasad
    @09prasad ปีที่แล้ว

    I have a flow which suddenly stopped working but if make copy of it that works whereas original flow fails in http action with 403 Forbidden.
    Can you please suggest what else I can check. Checked Firewall and there are no issues with it or API.

  • @fr.minabarsoum8528
    @fr.minabarsoum8528 3 ปีที่แล้ว +1

    This is brilliant - can you please do a video about getting a Twilio message and writing it back to Sharepoint? Also can you do a video about Tesla API?

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว +1

      The Tesla API needs to be done. :) Twilio I will ponder on. I haven't used it much.

    • @fr.minabarsoum8528
      @fr.minabarsoum8528 3 ปีที่แล้ว

      @@ShanesCows I did the Twilio but the second I connect to Sharepoint it doesn't work. I believe because the connection header for the Twilio is using content-type: application/x-www-form-urlencoded but the sharepoint one using probably something else

  • @ITHelpdesk-ib9um
    @ITHelpdesk-ib9um 22 วันที่ผ่านมา +1

    i am having a problem with the api, how can I refresh the API token? i am having a status code 401 and the message is "Unauthorized/Invalid token". the API I made expires but while the flow is still running.

    • @ShanesCows
      @ShanesCows  20 วันที่ผ่านมา

      I haven't ran into that, do you maybe to repeat your authenticate action periodically to get a new token. So that step at the top run it after a few actions to get a fresh token.

  • @bassilaleter3597
    @bassilaleter3597 2 ปีที่แล้ว

    Great one thanks!

  • @MarkMcQ
    @MarkMcQ 3 ปีที่แล้ว +1

    I have the KASA Power Strip HS300 and I would love to be able to control each of the 6 individual outlets! I tried to increment the device 0-6 but no joy!

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว +1

      I don't have one to play with. I was curious and did some poking. I think here is at least some clues as to where you might find it. github.com/python-kasa/python-kasa/issues/64 I think there is some kind of "child_num": 6 that you need to use.

    • @MarkMcQ
      @MarkMcQ 3 ปีที่แล้ว

      @@ShanesCows I appreciate you taking the time to reply. I also reached out to Joshua who replied.
      Joshua Tzucker
      6:27 PM (23 minutes ago)
      to me
      Hi Mark,
      No bother at all; always happy to help when I can. I have a few different posts and code snippets floating around the web related to Kasa - is this in regards to my Google Apps Script wrapper? Or cheat sheet?
      Regardless, although I don't own a power strip to test with, looking through some open-source repos and issue threads, I think I understand enough to provide an answer. It looks like the power strips use a combination of two IDs - the device ID, which corresponds to the entire strip, and a plug id / child id, which corresponds to each individual plug on the outlet. To turn individual plugs on and off, you need to pass both IDs, with the plug IDs pass through a special payload object under `requestData.context.child_ids`. If you only pass the device ID, then the API assumes you want to toggle the entire strip.
      I just updated my cheat sheet / documentation page with this extra information and an example POST request - you can find it here docs.joshuatz.com/random/tp-link-kasa/#endpoints-and-methods (scroll down to "Power Strip: Turn individual plugs on and off").
      Let me know if this helps, or you are looking for more / different info.
      Regards,
      Joshua

  • @sundrapillay6668
    @sundrapillay6668 3 ปีที่แล้ว +1

    Thanks Shane

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว

      You are welcome Sundra. Have a great day.

  • @bronsondh
    @bronsondh 2 ปีที่แล้ว +1

    Hey Superstar! Any chance you're going to do a video on how to work with the "When a http request is received" connector within the context of a solution so that when you migrate the solution your messaging webhook plugin for the data verse automatically updates?

    • @ShanesCows
      @ShanesCows  2 ปีที่แล้ว

      Yikes, I haven't done anything like that before. I have only used When HTTP received once and it wasn't anything too fancy.

    • @bronsondh
      @bronsondh 2 ปีที่แล้ว

      @@ShanesCows Well - since I originally posted this message, I've discovered it can be done with a custom connector. Same same, just the reverse of the more common way of creating a custom connector..... Your videos are great btw ;-) You've spent many hours with me in my living room. ';-)

  • @Eb_Games
    @Eb_Games 3 ปีที่แล้ว +1

    Can we get the 3rd part of responsive controls :) thanks Shane!

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว

      Fair request. I do need to dig deeper on those again. It is on the list, just to find the motivation now.

    • @Eb_Games
      @Eb_Games 3 ปีที่แล้ว

      @@ShanesCows you the man !

  • @iyengar007
    @iyengar007 3 ปีที่แล้ว +1

    IOT learning was really fun. But please help me with my earlier request. I'm still learning PowerApps.

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว

      I respond to comments as I can. Guessing whatever you asked it wasn't a quick answer that is why I haven't responded yet. Sorry, I get 1000s of comments and I do my best to keep up

  • @mrwhammer
    @mrwhammer ปีที่แล้ว +1

    I wanted to integrate my sharepoint with adp and was wondering if i can use adps token api and paste it in for the sharepoint action of send an http request and put the site address of adp?

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      Nope, you will have to use the HTTP action.

    • @mrwhammer
      @mrwhammer ปีที่แล้ว

      @@ShanesCows is it a premium feature to use or no

  • @fajenmoments5519
    @fajenmoments5519 3 ปีที่แล้ว

    una consulta, es posible consumir apis que tiene formatos de xml tanto de envio y respuesta ???

  • @reyroldanrodriguez6126
    @reyroldanrodriguez6126 3 ปีที่แล้ว

    Thank you!

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว

      You bet! I hope you do something fun with the concepts.

  • @miragliag
    @miragliag ปีที่แล้ว +1

    Great, please asd a video and store iot data on dataverse to display it into powerapps….

  • @stanleym69
    @stanleym69 3 ปีที่แล้ว +1

    It’s not IoT but can you look at sending graph an http request to create planners?

    • @stanleym69
      @stanleym69 3 ปีที่แล้ว +1

      Actually managed to work this one out. Needed some azure app registrations and a service account. The way planner is set up now. The user needs to be an owner of a team before you can create the planner

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว

      Hey Sam glad you got it. Graph and SharePoint APIs are on my list for sure. :)

  • @JACKLAI1117
    @JACKLAI1117 3 ปีที่แล้ว +1

    cool ~~

  • @rickb.3666
    @rickb.3666 3 ปีที่แล้ว +1

    What does this say, I don't care, it's a bunch of words LMAO. It's like me reading a book lol.

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว

      Reading is for the birds. 😂

  • @mohamedaffi3816
    @mohamedaffi3816 8 หลายเดือนก่อน +1

    Action 'HTTP' failed 302 :(

    • @ShanesCows
      @ShanesCows  8 หลายเดือนก่อน

      I just ran that exact flow and it still works. Look for typos. :)

  • @KimSørensen-x8s
    @KimSørensen-x8s 3 หลายเดือนก่อน +1

    Please calm down, you talk way too fast.

    • @ShanesCows
      @ShanesCows  3 หลายเดือนก่อน

      Sorry, sometimes I get too excited. You can always use the TH-cam controls n the bottom right corner to slow the speed. 😎

  • @LukasSoftwareDeveloper
    @LukasSoftwareDeveloper 3 ปีที่แล้ว +1

    Thank you!

    • @ShanesCows
      @ShanesCows  3 ปีที่แล้ว

      You bet! This one was very fun for me to learn about.