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

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

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
Highlighted
Super User II
Super User II

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

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
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 (6,691)