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 / PowerApps Item ID in a...
Power Apps
Answered

PowerApps Item ID in a gallery.

(0) ShareShare
ReportReport
Posted on by 71

Hey,

I need help with and Item ID.  I have a gallery in my app that shows reimbursement requests.  Each item in the gallery has its own ID.  The formula I am using right now is: Text(CountRows('Reimbursement Request Gallery')+1)

 

Reimbursement Request Gallery is the name of my gallery.  The problem with this is that if I have more than one Item in a gallery, lets say two, if I delete item #1, then the next item I add will have an Item ID of two.  Because I had two items in the gallery to begin with, there is already an item with the ID of 2.  I need to know how to not make this happen.

 

I would appreciate any help you could give me.  Thanks.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,791 Most Valuable Professional on at

    Hi @FranzCarson3 

    Try

    Text(
     First(
     Sort(
     'Reimbursement Request Gallery'
     ID,
     Descending
     )
     )+1
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

     

  • FranzCarson3 Profile Picture
    71 on at

    Thank you for your suggestion.  I decided that I would just use a GUID(Global Unique Identifier).  I appreciate it.

  • Verified answer
    WarrenBelz Profile Picture
    154,791 Most Valuable Professional on at

    Hi @FranzCarson3 ,

    As long as the GUID is sequentially numeric it will work. You did not mention your data source type, so I assumed SharePoint.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • FranzCarson3 Profile Picture
    71 on at

    You are correct.  Thank you for your help.

  • WarrenBelz Profile Picture
    154,791 Most Valuable Professional on at

    Thanks @FranzCarson3 ,

    Please click Accept as solution if my post helped you solve your issue.

    This will help others find it more readily and also closes the item.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard