web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get random item from a...
Power Automate
Unanswered

Get random item from a list

(1) ShareShare
ReportReport
Posted on by

Hello,

 

I have a growing list of tweets I'd like to select from at ramdom and send on a schedule every week or 2 to promote some business.

 

Is there a way to store this list and have Flow select from at random and send using the scheduled task trigger?

 

 

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    on at

    Hi Phawkshaw,

     

    Could you provide some information about:
    1. what is your list type? is it a SharePoint list?
    2. what kind of data do you want to get at random?
    3. Do you mean that you want to run a flow on a schedule by using Recurrence?

     

    Best regards,
    Mabel Mao

  • Community Power Platform Member Profile Picture
    on at

    Hello,

     

    The list isn't in any particular store at this stage.  I dont mind where I have to store it to get the job done.

    The data I want to fetch at ramdom is the tweet text to pass into a twitter post.

    Yes I was hoping to use the Recurance in Flow to manage the schedule.

     

    I think the hardest bit is the random selection stage?

     

    Many thanks.

  • Perumal Profile Picture
    604 on at

    There won't be a simple way to do this. You can use Azure functions to achieve it(Ref: https://blogs.msdn.microsoft.com/carlosag/2016/05/10/using-an-azure-function-in-a-microsoft-flow/). You can use Math.Random and Math.Floor to generate a random value between a given range(Ref: http://www.w3schools.com/jsref/jsref_random.asp).

     

    1. Create Azure Function with Math.Random and Math.Floor

    2. Use the created Azure Function in your flow

     

     

  • Roderick Profile Picture
    2 on at
    Got the same question... And its 18 months later, is this still not possible?
  • PaulKeijzers1 Profile Picture
    on at
  • MarkKemish Profile Picture
    3 on at

    Thank you for this blog, this is so helpful

  • mandy-facts Profile Picture
    2 on at

    @Roderick wrote:
    Got the same question... And its 18 months later, is this still not possible?

    @Roderick - It's always been possible. You just don't know how. 

     

     

  • Bigshow Profile Picture
    60 on at

    This was very helpful, thank you. But I have a question about images stores in Sharepoint list. How could you pull back a random image?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard