cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
_Adrian
Level: Power Up

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
Community Support Team
Community Support Team

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
Community Support Team
Community Support Team

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,977)