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

Twitter new tweet search syntax

For the Flow Twitter Connector, is there documentation somewhere on the allowable search syntax that can be entered in the "Search text" field? (for when a new tweet is posted) The tooltip text has a link to:
https://docs.microsoft.com/en-us/connectors/twitter/#onnewtweet
which says: Search term like "happy hour", #haiku, from:@username, love OR hate.

 

So this sentence above shows that the boolean OR operator can be used in searches in addition to a phrase search in quotes. But what else is allowed? For instance, can you combine boolean operators into a more complex search expression like: (vegan OR meatless) AND (McDonalds OR "Burger King"). Or can you use a regular expression for string searches?

 

I could take guesses and try experimenting with lots of different expressions but that is not a particularly efficient use of time. So it would be great if the allowable search syntax and options are documented somewhere. Thanks in advance for any ideas.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Twitter new tweet search syntax

Hi @ScWill ,

 

Do you want to search tweets by configuring the search text?

 

There is a similar thread at here:

https://powerusers.microsoft.com/t5/Building-Flows/Twitter-Advanced-Search/td-p/18517

 

Please try the search condition on twiter.com search, if it is working then apply into the flow.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
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

2 REPLIES 2
Super User
Super User

Re: Twitter new tweet search syntax

Check out the Twitter Advanced Search page, for the syntax available with search for Twitter. You'll have to build out your advnaced search syntax here first, and then recreate it in Flow. 

Example: Searching for this is a test in the All of these words box returns:

https://twitter.com/search?l=&q=this%20is%20a%20test&src=typd

Notice, the spaces between the words are coverted to %20

Example: Searching for this is a test in the This exact phrase box returns:

https://twitter.com/search?l=&q=%22this%20is%20a%20test%22&src=typd

Notice the double quotes around the search and the %20 for each space. 

Example: Searching for this is a test in the Any of these words box returns:

https://twitter.com/search?l=&q=this%20OR%20is%20OR%20a%20OR%20test&src=typd

Notice the OR statements and the %20 for the spaces. 

The list goes on, just make your way down the list of search options on the Twitter Advanced Search page (see screenshot below), you can quickly build out the proper search syntax that you can then pass through to your Flow. TwitterAdvancedSearch.PNG

Community Support Team
Community Support Team

Re: Twitter new tweet search syntax

Hi @ScWill ,

 

Do you want to search tweets by configuring the search text?

 

There is a similar thread at here:

https://powerusers.microsoft.com/t5/Building-Flows/Twitter-Advanced-Search/td-p/18517

 

Please try the search condition on twiter.com search, if it is working then apply into the flow.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
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,772)