cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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

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

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

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
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (7,167)