cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Push notification for new tweet with keywords and from people I'm following

Hi,

 

I'm trying to set up a flow that will notify me of a new tweet that meets the following 2 criteria:

1. from someone I'm following on my Twitter account

2. contains a specific keyword, for example 'announc' (deliberately truncated so as to capture annouce or announced or announcing etc.)

 

I'm new to MS Flow and set up a new flow which I linked to my Twitter account and to my iPhone Flow app, and thought all was well as I immediately got some results. Unfortunately they appear to be from random Twitter users; criteria 1 is being missed (which I thought would be automatic given I've linked to my Twitter account).

 

 

Can anyone suggest what I've done wrong and how to get this working?

 

Also, regarding criteria 2, will 'announc' work as desired? And if I want to add another keyword, do I just use OR between keywords?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Push notification for new tweet with keywords and from people I'm following

Hi @_Adrian,

 

Could you please share a screenshot of your flow's configuration?

 

I have made a test on my side and please take a try with the following workaround;

  • Add a "When a new tweet is posted" trigger. Within Search Text field, type your specific keyword.
  • Add a "Get my following" action.
  • Add a Variables->"Initialize variable" action, Name set to FollowingArray, Type set to Array and Value set to empty.
  • Add a "Apply to each" action, input parameter set to output of "Get my following" action.
  • Within "Apply to each", add a "Append to array variable" action, Name choose FollowingArray and Value set to Name dynamic content of "Get my following" action.
  • Under "Apply to each" action, add a Condition, left input box set to FollowingArray variable, right input box set to Tweeted by dynamic content of the trigger. Within middle drop down, choose contains.
  • Within "If/yes" branch of Condition, add a "Send me an email notification" action.

Image reference:

36.JPG37.JPGThe flow works successfully as below:38.JPG

 

Best regards,

Kris

 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Push notification for new tweet with keywords and from people I'm following

Hi @_Adrian,

 

Could you please share a screenshot of your flow's configuration?

 

I have made a test on my side and please take a try with the following workaround;

  • Add a "When a new tweet is posted" trigger. Within Search Text field, type your specific keyword.
  • Add a "Get my following" action.
  • Add a Variables->"Initialize variable" action, Name set to FollowingArray, Type set to Array and Value set to empty.
  • Add a "Apply to each" action, input parameter set to output of "Get my following" action.
  • Within "Apply to each", add a "Append to array variable" action, Name choose FollowingArray and Value set to Name dynamic content of "Get my following" action.
  • Under "Apply to each" action, add a Condition, left input box set to FollowingArray variable, right input box set to Tweeted by dynamic content of the trigger. Within middle drop down, choose contains.
  • Within "If/yes" branch of Condition, add a "Send me an email notification" action.

Image reference:

36.JPG37.JPGThe flow works successfully as below:38.JPG

 

Best regards,

Kris

 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (5,244)