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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Apps useing loop
Power Apps
Answered

Power Apps useing loop

(0) ShareShare
ReportReport
Posted on by 134

Is there a way to use the Loop function of Power Apps to input about 50 automatically increasing numbers such as 'test1', 'test2', and 'test3' into the Text column of the 'sharepoint' table at once?

 

Is there another method other than the Loop function?

Categories:
  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi, @kjk4563 

    Do you mean you want to add rows to your datasource?

    If this , you can refer to this code, JobPerson is my table name:

    ForAll( ForAll( Sequence(50) , {Value:"Test " & ThisRecord.Value}) As items  , Patch(JobPerson, Defaults(JobPerson), {Title: items.Value}) )
     
    The result is as follows:
    vyueyunmsft_0-1712022300223.png

     

     

     

     

    If I misunderstand what you mean, you can describe your needs and your expected outcomes in detail so that we can better help you. If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

     

     
  • kjk4563 Profile Picture
    134 on at

    @v-yueyun-msft 

    I'm curious where and to what property you write the code.

    Ex) Onselect property of button

  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @kjk4563 

    Yes , i put this code on the Button - OnSelect property.

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 320

#3
Mohsin Ali Profile Picture

Mohsin Ali 246

Last 30 days Overall leaderboard