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 Apps
Answered

undefined

(0) ShareShare
ReportReport
Posted on by 6

Hi

Anyone know how to create an auto-increment ID column for collection. I attach the screenshot of collection.

Categories:
I have the same question (0)
  • Verified answer
    KeithAtherton Profile Picture
    3,709 Most Valuable Professional on at

    Hi @Leo_yz,

     

    Yes, auto-incremented IDs can be applied using code similar to the following:

    ClearCollect(
     colAnimals,
     {Name: "Lion"},
     {Name: "Tiger"},
     {Name: "Bear"}
    );
    
    ClearCollect(
     colAnimalsWithNumbering,
     ForAll(
     Sequence(CountRows(colAnimals)),
     Patch(
     Index(
     colAnimals,
     Value
     ),
     {RowNumber: Value}
     )
     )
    )

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 429 Most Valuable Professional

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard