cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AFWright
Helper III
Helper III

Sequential Number in Gallery - How to assign by row?

I need to add a sequential number for every item in a gallery. Does the Gallery object store that info somewhere?

 

Attached is the screenshot of the gallery. I need to submit a row number for each item (SQL table requirement).

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Hi @AFWright 

 

Ideally you should use row_number in your query to get row number from database.

 

https://docs.microsoft.com/en-us/sql/t-sql/functions/row-number-transact-sql?view=sql-server-2017

 

 

In case you want to generate the row number in PowerApps refer to below link

https://powerusers.microsoft.com/t5/Creating-Apps/Adding-a-rowid-to-Collection/m-p/322807#M11794

 

Thanks.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @AFWright 

 

Ideally you should use row_number in your query to get row number from database.

 

https://docs.microsoft.com/en-us/sql/t-sql/functions/row-number-transact-sql?view=sql-server-2017

 

 

In case you want to generate the row number in PowerApps refer to below link

https://powerusers.microsoft.com/t5/Creating-Apps/Adding-a-rowid-to-Collection/m-p/322807#M11794

 

Thanks.

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,722)