How to use a custom connector in Power Automate

Published Feb 23 2021 01:25 PM 2,506 Views

Power Automate is a super cool tool, which gives us a lot of options. But sometimes, the built-in connectors, are not enough. In one of previous posts, I showed you how to send HTTP requests to Microsoft Graph API. This time, I will show you how to connect to APIs outside of Microsoft 365 in Power Automate and even use an IOT button to trigger your flow.

 

 


Use case


To make things more approachable, here is a little use case for you:

I want to Select an IOT button and this shall trigger a flow which tweets about the music I currently listen to on Spotify.
The result will look like this:


tweet.png


What we need


To achieve this, we will need a couple of things:

  • an IOT button - I use a Flic Smart button for that- that triggers my flow
  • a flow that connects to our Spotify and to twitter

So lets have a look at IOT button:

I use a Flic IOT button trigger my flow. This button works with Bluetooth, which means that we will need a Bluetooth enabled device to work with this button- either a smartphone or an IOT Hub.

Set up your IOT button

  • download the app from your app store
  • install the app
  • register a new account
  • connect your flic button by pressing it for ~10 seconds

If you like to, rename this button - please keep in mind, that one button can be used to trigger several flows, as we have three different event types: Select, Double-Select and Hold.


Spotify

In this flow we want to trigger by one or any event of the flic button and then tweet the song we are currently listening to on Spotify. Turns out, that there is no connector for Spotify, so why not building our own custom connector?

To be able to build custom actions, you will need an API for this service. Lucky us, that Spotify provides us with that API so that we can use this to build our custom connector.


Of course we need to have at least a free Spotify account so that we can listen to music that then shall be tweeted about.
Before we can build the connector, we will need to register for Spotify's Developer program. Once this is done, we can retrieve Spotify content such as album data, playlists and more though Spotify Web API. To get user-related data (like the song our user is playing right now) we need to authorize our application so that we are allowed to retrieve this information.
Register our application on Spotify

Log into your brand new Spotify for Developers account

 

  • Go to your Dashboar
  • Select Create an App
  • Give your app a name and accept T&C
  • Select Create
  • Copy the Client ID and the Client Secret

 

Build the custom Connector

  • Go to flow.microsoft.com
  • Select Data
  • Select Custom connectors
  • Select New Custom connector, Create from blank
  • Add a name for your connector
  • Select Continue
  • If you like to, you can upload a connector icon, this step is optional
  • enter api.spotify.com as Host

  • You can find the values you need to fill in here in Spotify for developers documentation, but to make things easier for you, I will provide them for you.
  • Select on Security
  • Select OAuth2.0
  • Select Generic OAuth 2 as Identity Provider
  • Paste in your Client ID and Client secret
  • enter https://accounts.spotify.com/authorize as Authorization URL
  • enter https://accounts.spotify.com/api/token as Token URL and Refresh URL
  • enter user-read-currently-playing as scope
  • Select Create connector
  • Copy the Redirect URL
  • go to your Spotify app
  • Select Edit settings
  • past the Redirect URI into the field for Redirect URIs
  • Select Add
  • Select Save


Now go back to your Custom connector

  • Select Definition
  • Select New action
  • enter something like GetSong in Summary
  • enter a description
  • enter an operation ID like getssong- please note, that this ID shouldn't start with an upper case letter
  • Select import from sample
  • Select verb Get
  • paste in https://api.spotify.com/v1/me/player/currently-playing as URL
    (For reference: https://developer.spotify.com/console/get-users-currently-playing-track/)
  • Select Import
  • Select Update connector
  • Select Test
    To test our new connector, we need to select from an existing connection or create a new connection.
  • Select New connection
    A new pop up window will appear and prompt us to Agree - you as a user authorize your Spotify app to retrieve data related to your user account - such as the song currently playing.
  • Select Agree
  • Select Close

Use the custom connector in our flow

Now it's time to build our flow


Trigger flic


As already said, we want the flic button to be our trigger
You can choose, if you want this flow to be triggered by any event type or if you want to save the two other event types for other flows.
Now we want to get the current song from our shiny new Custom connector:


Get current song

 

  • Select on Insert a new Step
  • Select on Custom\
  • Select the new custom connector for Spotify
    Our intention now is to tweet something like "I am currently listenintg to {songname} by {artistname}, check it out {spotify URL}." But from our custom connector, we don't get the name of song and artist per se, we will need to first parse the JSON output. If you never heard of that before, don't worry, go read this article about how to parse JSON in Power Automate, I will just wait here for you and drink a coffee.
    Back again? Cool!
     
  • Let your flow run
  • Go to your run history
  • Copy the output of the Get current song action
  • Insert a Parse JSON action
  • Select Generate from sample
  • Paste into the new field
  • Select done
    Magic - Now we can see all the output from our custom action as Dynamic content. Next thing up is to send the tweet. We can use the twitter connector for it, but Buffer works fine as well.

  • Add the post a tweet action
    provide your tweet text with Dynamic content as you wish from your Parse JSON action. Don't be afraid when the flow adds Apply to each loops! Unfortunately, both artist-name and -song-name are named name, so you will need to figure out which is which.
  • save your flow
  • Run your flow
  • Open your flic app and select the new button, set the action that is triggered by the Select event to Microsoft Flow (watch out, this is the old name of Power Automate, which is not reflected in the Flic app). When you now Select the button, this will trigger our flow, that listens to the Select event of that button, get the current song and tweet about it!

     

    Conclusion and what's next


In this post I explained, how you can create a custom connector and call an API outside of Microsoft 365. You learned how to define actions and how to authorize your application so that you can retrieve the requested data. Which use cases do you have in mind? What would you like to build a custom connector for? Please share!

 

%3CLINGO-SUB%20id%3D%22lingo-sub-2160437%22%20slang%3D%22en-US%22%3EHow%20to%20use%20a%20custom%20connector%20in%20Power%20Automate%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2160437%22%20slang%3D%22en-US%22%3E%3CP%3EPower%20Automate%20is%20a%20super%20cool%20tool%2C%20which%20gives%20us%20a%20lot%20of%20options.%20But%20sometimes%2C%20the%20built-in%20connectors%2C%20are%20not%20enough.%20In%20one%20of%20previous%20posts%2C%20I%20showed%20you%20how%20to%20send%20HTTP%20requests%20to%20Microsoft%20Graph%20API.%20This%20time%2C%20I%20will%20show%20you%20how%20to%20connect%20to%20APIs%20outside%20of%20Microsoft%20365%20in%20Power%20Automate%20and%20even%20use%20an%20IOT%20button%20to%20trigger%20your%20flow.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorLuise%20Freese_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--523417508%22%20id%3D%22toc-hId--523417483%22%3E%3CBR%20%2F%3EUse%20case%3C%2FH2%3E%0A%3CP%3E%3CBR%20%2F%3ETo%20make%20things%20more%20approachable%2C%20here%20is%20a%20little%20use%20case%20for%20you%3A%3CBR%20%2F%3E%3CBR%20%2F%3EI%20want%20to%20Select%20an%20IOT%20button%20and%20this%20shall%20trigger%20a%20flow%20which%20tweets%20about%20the%20music%20I%20currently%20listen%20to%20on%20Spotify.%3CBR%20%2F%3EThe%20result%20will%20look%20like%20this%3A%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22tweet.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F285095iE5153863004A53A2%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22tweet.png%22%20alt%3D%22tweet.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1964095325%22%20id%3D%22toc-hId-1964095350%22%3E%3CBR%20%2F%3EWhat%20we%20need%3C%2FH2%3E%0A%3CP%3E%3CBR%20%2F%3ETo%20achieve%20this%2C%20we%20will%20need%20a%20couple%20of%20things%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3Ean%20IOT%20button%20-%20I%20use%20a%20Flic%20Smart%20button%20for%20that-%20that%20triggers%20my%20flow%3C%2FLI%3E%0A%3CLI%3Ea%20flow%20that%20connects%20to%20our%20Spotify%20and%20to%20twitter%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH3%20id%3D%22toc-hId--1640310497%22%20id%3D%22toc-hId--1640310472%22%3ESo%20lets%20have%20a%20look%20at%26nbsp%3BIOT%20button%3A%3C%2FH3%3E%0A%3CP%3EI%20use%20a%20Flic%20IOT%20button%20trigger%20my%20flow.%20This%20button%20works%20with%20Bluetooth%2C%20which%20means%20that%20we%20will%20need%20a%20Bluetooth%20enabled%20device%20to%20work%20with%20this%20button-%20either%20a%20smartphone%20or%20an%20IOT%20Hub.%3C%2FP%3E%0A%3CP%3ESet%20up%20your%20IOT%20button%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3Edownload%20the%20app%20from%20your%20app%20store%3C%2FLI%3E%0A%3CLI%3Einstall%20the%20app%3C%2FLI%3E%0A%3CLI%3Eregister%20a%20new%20account%3C%2FLI%3E%0A%3CLI%3Econnect%20your%20flic%20button%20by%20pressing%20it%20for%20~10%20seconds%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EIf%20you%20like%20to%2C%20rename%20this%20button%20-%20please%20keep%20in%20mind%2C%20that%20one%20button%20can%20be%20used%20to%20trigger%20several%20flows%2C%20as%20we%20have%20three%20different%20event%20types%3A%20Select%2C%20Double-Select%20and%20Hold.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-847202336%22%20id%3D%22toc-hId-847202361%22%3E%3CBR%20%2F%3ESpotify%3C%2FH3%3E%0A%3CP%3EIn%20this%20flow%20we%20want%20to%20trigger%20by%20one%20or%20any%20event%20of%20the%20flic%20button%20and%20then%20tweet%20the%20song%20we%20are%20currently%20listening%20to%20on%20Spotify.%20Turns%20out%2C%20that%20there%20is%20no%20connector%20for%20Spotify%2C%20so%20why%20not%20building%20our%20own%20custom%20connector%3F%3CBR%20%2F%3E%3CBR%20%2F%3ETo%20be%20able%20to%20build%20custom%20actions%2C%20you%20will%20need%20an%20API%20for%20this%20service.%20Lucky%20us%2C%20that%20Spotify%20provides%20us%20with%20that%20API%20so%20that%20we%20can%20use%20this%20to%20build%20our%20custom%20connector.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EOf%20course%20we%20need%20to%20have%20at%20least%20a%20free%20Spotify%20account%20so%20that%20we%20can%20listen%20to%20music%20that%20then%20shall%20be%20tweeted%20about.%3CBR%20%2F%3EBefore%20we%20can%20build%20the%20connector%2C%20we%20will%20need%20to%20register%20for%20Spotify's%20Developer%20program.%20Once%20this%20is%20done%2C%20we%20can%20retrieve%20Spotify%20content%20such%20as%20album%20data%2C%20playlists%20and%20more%20though%20Spotify%20Web%20API.%20To%20get%20user-related%20data%20(like%20the%20song%20our%20user%20is%20playing%20right%20now)%20we%20need%20to%20authorize%20our%20application%20so%20that%20we%20are%20allowed%20to%20retrieve%20this%20information.%3CBR%20%2F%3ERegister%20our%20application%20on%20Spotify%3CBR%20%2F%3E%3CBR%20%2F%3ELog%20into%20your%20brand%20new%20Spotify%20for%20Developers%20account%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EGo%20to%20your%20Dashboar%3C%2FLI%3E%0A%3CLI%3ESelect%20%3CSTRONG%3ECreate%20an%20App%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3EGive%20your%20app%20a%20name%20and%20accept%20T%26amp%3BC%3C%2FLI%3E%0A%3CLI%3ESelect%20%3CSTRONG%3ECreate%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3ECopy%20the%20Client%20ID%20and%20the%20Client%20Secret%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--960252127%22%20id%3D%22toc-hId--960252102%22%3EBuild%20the%20custom%20Connector%3C%2FH3%3E%0A%3CUL%3E%0A%3CLI%3EGo%20to%20flow.microsoft.com%3C%2FLI%3E%0A%3CLI%3ESelect%3CSTRONG%3E%20Data%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3ESelect%20%3CSTRONG%3ECustom%20connectors%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3ESelect%20%3CSTRONG%3ENew%20Custom%20connector%2C%3C%2FSTRONG%3E%20%3CSTRONG%3ECreate%20from%20blank%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3EAdd%20a%20name%20for%20your%20connector%3C%2FLI%3E%0A%3CLI%3ESelect%20%3CSTRONG%3EContinue%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3EIf%20you%20like%20to%2C%20you%20can%20upload%20a%20connector%20icon%2C%20this%20step%20is%20optional%3C%2FLI%3E%0A%3CLI%3Eenter%20api.spotify.com%20as%20Host%3C%2FLI%3E%0A%3CLI%3E%3CBR%20%2F%3EYou%20can%20find%20the%20values%20you%20need%20to%20fill%20in%20here%20in%20Spotify%20for%20developers%20documentation%2C%20but%20to%20make%20things%20easier%20for%20you%2C%20I%20will%20provide%20them%20for%20you.%3C%2FLI%3E%0A%3CLI%3ESelect%20on%3CSTRONG%3E%20Security%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3ESelect%3CSTRONG%3E%20OAuth2.0%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3ESelect%20%3CSTRONG%3EGeneric%20OAuth%202%3C%2FSTRONG%3E%20as%20Identity%20Provider%3C%2FLI%3E%0A%3CLI%3EPaste%20in%20your%20Client%20ID%20and%20Client%20secret%3C%2FLI%3E%0A%3CLI%3Eenter%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Faccounts.spotify.com%2Fauthorize%26amp%3Bnbsp%3Bas%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Faccounts.spotify.com%2Fauthorize%20as%3C%2FA%3E%20%3CSTRONG%3EAuthorization%20URL%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3Eenter%3CA%20href%3D%22https%3A%2F%2Faccounts.spotify.com%2Fapi%2Ftoken%26amp%3Bnbsp%3Bas%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%26nbsp%3Bhttps%3A%2F%2Faccounts.spotify.com%2Fapi%2Ftoken%20as%3C%2FA%3E%20%3CSTRONG%3EToken%20URL%3C%2FSTRONG%3E%20and%20%3CSTRONG%3ERefresh%20URL%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3Eenter%20user-read-currently-playing%20as%20scope%3C%2FLI%3E%0A%3CLI%3ESelect%20%3CSTRONG%3ECreate%20connector%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3ECopy%20the%20Redirect%20URL%3C%2FLI%3E%0A%3CLI%3Ego%20to%20your%20Spotify%20app%3C%2FLI%3E%0A%3CLI%3ESelect%20%3CSTRONG%3EEdit%20settings%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3Epast%20the%20Redirect%20URI%20into%20the%20field%20for%20Redirect%20URIs%3C%2FLI%3E%0A%3CLI%3ESelect%20%3CSTRONG%3EAdd%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3ESelect%20%3CSTRONG%3ESave%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CBR%20%2F%3ENow%20go%20back%20to%20your%20Custom%20connector%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ESelect%20%3CSTRONG%3EDefinition%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3ESelect%20%3CSTRONG%3ENew%20action%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3Eenter%20something%20like%20GetSong%20in%20%3CSTRONG%3ESummary%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3Eenter%20a%20description%3C%2FLI%3E%0A%3CLI%3Eenter%20an%20operation%20ID%20like%20getssong-%20please%20note%2C%20that%20this%20ID%20shouldn't%20start%20with%20an%20upper%20case%20letter%3C%2FLI%3E%0A%3CLI%3ESelect%20%3CSTRONG%3Eimport%20from%20sample%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3ESelect%20verb%20Get%3C%2FLI%3E%0A%3CLI%3Epaste%20in%20%3CA%20href%3D%22https%3A%2F%2Fapi.spotify.com%2Fv1%2Fme%2Fplayer%2Fcurrently-playing%26amp%3Bnbsp%3Bas%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fapi.spotify.com%2Fv1%2Fme%2Fplayer%2Fcurrently-playing%20as%3C%2FA%3E%20URL%3CBR%20%2F%3E(For%20reference%3A%20%3CA%20href%3D%22https%3A%2F%2Fdeveloper.spotify.com%2Fconsole%2Fget-users-currently-playing-track%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdeveloper.spotify.com%2Fconsole%2Fget-users-currently-playing-track%2F%3C%2FA%3E)%3C%2FLI%3E%0A%3CLI%3ESelect%20%3CSTRONG%3EImport%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3ESelect%3CSTRONG%3E%20Update%20connector%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3ESelect%3CSTRONG%3E%20Test%3C%2FSTRONG%3E%3CBR%20%2F%3ETo%20test%20our%20new%20connector%2C%20we%20need%20to%20select%20from%20an%20existing%20connection%20or%20create%20a%20new%20connection.%3C%2FLI%3E%0A%3CLI%3ESelect%20New%20connection%3CBR%20%2F%3EA%20new%20pop%20up%20window%20will%20appear%20and%20prompt%20us%20to%20Agree%20-%20you%20as%20a%20user%20authorize%20your%20Spotify%20app%20to%20retrieve%20data%20related%20to%20your%20user%20account%20-%20such%20as%20the%20song%20currently%20playing.%3C%2FLI%3E%0A%3CLI%3ESelect%20Agree%3C%2FLI%3E%0A%3CLI%3ESelect%20Close%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH3%20id%3D%22toc-hId-1527260706%22%20id%3D%22toc-hId-1527260731%22%3EUse%20the%20custom%20connector%20in%20our%20flow%3C%2FH3%3E%0A%3CP%3ENow%20it's%20time%20to%20build%20our%20flow%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId--2077145116%22%20id%3D%22toc-hId--2077145091%22%3E%3CBR%20%2F%3ETrigger%20flic%3C%2FH4%3E%0A%3CP%3E%3CBR%20%2F%3EAs%20already%20said%2C%20we%20want%20the%20flic%20button%20to%20be%20our%20trigger%3CBR%20%2F%3EYou%20can%20choose%2C%20if%20you%20want%20this%20flow%20to%20be%20triggered%20by%20any%20event%20type%20or%20if%20you%20want%20to%20save%20the%20two%20other%20event%20types%20for%20other%20flows.%3CBR%20%2F%3ENow%20we%20want%20to%20get%20the%20current%20song%20from%20our%20shiny%20new%20Custom%20connector%3A%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId-410367717%22%20id%3D%22toc-hId-410367742%22%3E%3CBR%20%2F%3EGet%20current%20song%3C%2FH4%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ESelect%20on%20Insert%20a%20new%20Step%3C%2FLI%3E%0A%3CLI%3ESelect%20on%20Custom%5C%3C%2FLI%3E%0A%3CLI%3ESelect%20the%20new%20custom%20connector%20for%20Spotify%3CBR%20%2F%3EOur%20intention%20now%20is%20to%20tweet%20something%20like%20%22I%20am%20currently%20listenintg%20to%20%7Bsongname%7D%20by%20%7Bartistname%7D%2C%20check%20it%20out%20%7Bspotify%20URL%7D.%22%20But%20from%20our%20custom%20connector%2C%20we%20don't%20get%20the%20name%20of%20song%20and%20artist%20per%20se%2C%20we%20will%20need%20to%20first%20parse%20the%20JSON%20output.%20If%20you%20never%20heard%20of%20that%20before%2C%20don't%20worry%2C%20go%20read%20this%20article%20about%20how%20to%20parse%20JSON%20in%20Power%20Automate%2C%20I%20will%20just%20wait%20here%20for%20you%20and%20drink%20a%20coffee.%3CBR%20%2F%3EBack%20again%3F%20Cool!%20%3CBR%20%2F%3E%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3ELet%20your%20flow%20run%3C%2FLI%3E%0A%3CLI%3EGo%20to%20your%20run%20history%3C%2FLI%3E%0A%3CLI%3ECopy%20the%20output%20of%20the%20Get%20current%20song%20action%3C%2FLI%3E%0A%3CLI%3EInsert%20a%20Parse%20JSON%20action%3C%2FLI%3E%0A%3CLI%3ESelect%20Generate%20from%20sample%3C%2FLI%3E%0A%3CLI%3EPaste%20into%20the%20new%20field%3C%2FLI%3E%0A%3CLI%3ESelect%20done%3CBR%20%2F%3EMagic%20-%20Now%20we%20can%20see%20all%20the%20output%20from%20our%20custom%20action%20as%20Dynamic%20content.%20Next%20thing%20up%20is%20to%20send%20the%20tweet.%20We%20can%20use%20the%20twitter%20connector%20for%20it%2C%20but%20Buffer%20works%20fine%20as%20well.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLI%3E%0A%3CLI%3EAdd%20the%20post%20a%20tweet%20action%3CBR%20%2F%3Eprovide%20your%20tweet%20text%20with%20Dynamic%20content%20as%20you%20wish%20from%20your%20Parse%20JSON%20action.%20Don't%20be%20afraid%20when%20the%20flow%20adds%20Apply%20to%20each%20loops!%20Unfortunately%2C%20both%20artist-name%20and%20-song-name%20are%20named%20name%2C%20so%20you%20will%20need%20to%20figure%20out%20which%20is%20which.%3C%2FLI%3E%0A%3CLI%3Esave%20your%20flow%3C%2FLI%3E%0A%3CLI%3ERun%20your%20flow%3C%2FLI%3E%0A%3CLI%3EOpen%20your%20flic%20app%20and%20select%20the%20new%20button%2C%20set%20the%20action%20that%20is%20triggered%20by%20the%20Select%20event%20to%20Microsoft%20Flow%20(watch%20out%2C%20this%20is%20the%20old%20name%20of%20Power%20Automate%2C%20which%20is%20not%20reflected%20in%20the%20Flic%20app).%20When%20you%20now%20Select%20the%20button%2C%20this%20will%20trigger%20our%20flow%2C%20that%20listens%20to%20the%20Select%20event%20of%20that%20button%2C%20get%20the%20current%20song%20and%20tweet%20about%20it!%3CH3%20id%3D%22toc-hId-399864613%22%20id%3D%22toc-hId-399864638%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId--1407589850%22%20id%3D%22toc-hId--1407589825%22%3EConclusion%20and%20what's%20next%3C%2FH3%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CBR%20%2F%3EIn%20this%20post%20I%20explained%2C%20how%20you%20can%20create%20a%20custom%20connector%20and%20call%20an%20API%20outside%20of%20Microsoft%20365.%20You%20learned%20how%20to%20define%20actions%20and%20how%20to%20authorize%20your%20application%20so%20that%20you%20can%20retrieve%20the%20requested%20data.%20Which%20use%20cases%20do%20you%20have%20in%20mind%3F%20What%20would%20you%20like%20to%20build%20a%20custom%20connector%20for%3F%20Please%20share!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2160437%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EPower%20Automate%20is%20a%20super%20cool%20tool%2C%20which%20gives%20us%20a%20lot%20of%20options.%20But%20sometimes%2C%20the%20built-in%20connectors%2C%20are%20not%20enough.%20%3C%2FSPAN%3E%3CSPAN%3EThis%20time%2C%20I%20will%20show%20you%20how%20to%20connect%20to%20APIs%20outside%20of%20Microsoft%20365%20in%20Power%20Automate%20and%20even%20use%20an%20IOT%20button%20to%20trigger%20your%20flow.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22philip-myrtorp-UR0tD2NS8nA-unsplash.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F257201i5F774DCFDDC6CC28%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22philip-myrtorp-UR0tD2NS8nA-unsplash.jpg%22%20alt%3D%22philip-myrtorp-UR0tD2NS8nA-unsplash.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Co-Authors
Version history
Last update:
‎May 31 2021 04:19 AM
Updated by: