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

Notifications

Announcements

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
    153,061 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
    153,061 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
    153,061 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard