cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ScWill
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
v-yamao-msft
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
Brad_Groux
Community Champion
Community Champion

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

v-yamao-msft
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.

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (3,978)