Get Tweet User details from Twitter using Power Automate

In this blog, I will describe on how to use power automate to extract tweet details from Twitter page.

To start with,

  • Login to https://make.powerapps.com.
  • Navigate to Flows and create an automated cloud flow.
  • Let us use the trigger When a Tweet is posted.
  • Click on Add Connection and set the Twitter Account details which needs to tracked.
  • In the Search Text, enter the search terms – #Searchtext or “search text” or from: @username.
  • Power Automate will only trigger when the search criteria is met.

Initialize an array variable to get the User Details Array information from the Tweet.

  • Call the trigger – Get User
  • Insert user name parameter from previous step ( ‘when a new tweet is posted’)
  • Now pass information to user details array we initialized. For this we will use the action – Append to Array,
  • Test the results by passing it to a html table,
  • Lets use the create html table action and pass the array we set in the previous step with user details.
  • You can either choose the columns to be ‘Automatic’ or give custom values,

If custom value is choosen , each column name need to be created and value needs to be assigned as below,

@{variables(‘arrayname’)?[0]?[‘FieldName’]}

In our case to get full name – @{variables(‘userdetailsarray’)?[0]?[‘FullName’]}

  • Save the Flow. Now create a Tweet from associated Twitter account with the search input matching the search term specified in flow.
  • The UserDetails Array holds the following information,

The html table would appear like below,

  • Please Note : Incase location is coming as blank – make sure in Twitter User profile the location and location settings are set properly,

Complete steps for flow is as below,

Author: Devikumari Krishna

I am a Solution Architect in Dynamics 365|PowerApps platform. I provide Architectural consulting for Microsoft Power Platform, Dynamics 365 CRM Cloud, On-Premise, CRM 2016, 2015 and earlier version.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: