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

Find Tweets posted in past 12 hours by search string

Hi can anyone help me narrow down a Twitter search by time frame?

I have a flow that text searches Twitter every 12 hours and emails me hits from the search. I want to limit results to Tweets posted in the past 12 hours.

I can't find a Twitter search operator that does the job so am experimenting with the "apply to each" function to see if I can build a function that only outputs results from the "created at" expression from the last 12 hours but I can't get my head around it!

 

this is where I've got to. thanks guys!

newuser1234_0-1642504329292.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
newuser1234
New Member

Not that you lot were of any use, but I've found a way to do it, using Twitter's since_time: search operator to limit results from past 12 hours. Here you go:

sub(div(sub(ticks(utcNow()),ticks('1970-01-01')), 10000000), 43200)

View solution in original post

2 REPLIES 2
newuser1234
New Member

Not that you lot were of any use, but I've found a way to do it, using Twitter's since_time: search operator to limit results from past 12 hours. Here you go:

sub(div(sub(ticks(utcNow()),ticks('1970-01-01')), 10000000), 43200)

Hi @newuser1234 

Thanks for your posting here and sharing the solution in the forum as it would be helpful to anyone who encounters similar issues.

Please accept your reply as an solution so that this thread will be marked for other users to easily identify!

Best Regards.

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Users online (3,466)