Skip to main content

Notifications

Community site session details

Community site session details

Session Id :

Get random text in PowerApps

Shanescows Profile Picture Posted by Shanescows 2,218 Most Valuable Professional

In this video, you will learn how to make your very own random text function with PowerApps. Why? Because PowerApps doesn't have one and when you are testing sometimes random strings are just handy. 

 

PowerApps911

Categories:

Comments

  • RiccoHipp1903 Profile Picture RiccoHipp1903 284
    Posted at
    Get random text in PowerApps

    Maybe Try the Text Label with the following 

    First(CollectionFacts).Fact
  • Siyaho Profile Picture Siyaho 161
    Posted at
    Get random text in PowerApps

    I can't get this to work. What does the 'FACTS' part do in your last snippet? @RiccoHipp1903
    Getting a 'is not a text value' error...

  • RiccoHipp1903 Profile Picture RiccoHipp1903 284
    Posted at
    Get random text in PowerApps

    Really cool thing @Shanescows,

     

    Gamers get all the time those Tips during waiting time. Why not adapt that to our apps.

     

    1. I created a Dataverse Table but still works with SharePoint List 

    2. Filled the Table with Random Facts (Text)

    3. Added the Data Source to PowerApps
    4. Add a Button Control and changed the following:

    4.1 Repeat : TRUE

    4.2 Auto Start: TRUE

    4.3 OnTimerEnd: 

    ClearCollect(CollectionFacts,{Fact: First(Shuffle(RandomFacts)).Fact})

    4.4 TimerDuration: As you wish

    5. Add a Label to the Screen

    5.1 Change the Text to following

    Shuffle(RandomFacts).Facts

     

     

    See here:

     

     https://imgur.com/a/e43OuoG