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:
  • WarrenBelz Profile Picture
    156,545 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
    156,545 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
    156,545 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

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 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard