Hello
Set(varNextNumber, 1);
ClearCollect(
colGeneratedApplicationNumbers,
{
Value: "2023-ADM-0001"
}
);
UpdateContext({ varNextNumber: varNextNumber + 1 });
Collect(
colGeneratedApplicationNumbers,
{
Value: Concatenate(Year(Now()), "-ADM-", Text(varNextNumber, "0000"))
}
);
UpdateContext({ varNextNumber: varNextNumber});
I would like to have a field in my Power Apps form that automatically generates a sequence number when a new record is created. The sequence number should be based on the last submitted number in a SharePoint list and incremented by 1. This means that each time a new record is entered and saved in the SharePoint list, the sequence number should automatically increase to assign a unique number to the new entry.
Thank you in Advance