I would like to generate Unique ID from Powerapps on every new item creation. Right now I am using the below code but I did not find the way to do it, Any help would be appreciated.
I have a dropdown which is "DataCardValue80", I need to have the prefix defined based on dropdown selection software "s- "or Infrastructure "I-" in the textbox with unique ID generation
Ex: 1. S-01
2. I-02
If((DataCardValue80.Selected.Value="Software"),"S-",(DataCardValue80.Selected.Value = "Infrastructure"),"I-" && First(Sort('SPList','No.')).'No.'+ 1)