Custom Row Number to generate sequential number , using spreadsheet function

Sequential number is not officially supported with AppSheet, but this easy tricks could help some particular business requirement where the app creators need to generate the seq custom number or ID based on the rows, although there would not give much of flexibilities for numbering.

Solution.

Use Googlespreadsheet Expression of

ROW()

3X_7_4_746bb6196ae16f52b41d2ec26cd8016410aded4d.png

3X_9_4_946bfacefec19f0af6fa2feda824f9c10ee34dd2.png

Even we have concurrent users, the added new rows will assing ID under usual [ID] field using uniqueid() expression. But spreadsheet formula will give the sequential number.

Even after row is deleted explicitely from app, the given row number will stay the same. But when we delete row from the spreadsheet directly, the expression will be revaluated naturally, then in turn give the new number.

@Takuya_Miyai

7 6 1,634
6 REPLIES 6

This is why you donโ€™t use spreadsheet formulas for ID values; as long as theyโ€™re not used as the actual KEY youโ€™re fine.

This does not work sometimes when you create a report on creation of new record. It returns something like this in our sheets order acceptance/NaN-V1.pdf. โ€œNaNโ€ is actually the number inside sheet using an arrayformula.

That s because workflow is firing before the spreadsheet calc is returning the value.

I understood that and do you know any work around to tackle that ?

Also i have an expression like this- โ€œ300โ€&year(today())&0&[_RowNumber]

but its returning the value like this

[_rowNumber] is better to be avoided to use for any expressions, otherwise it would be duplicated among the concurrent users.

Top Labels in this Space