Hi Dear,
I am building an application to collect some information at the office, I am trying to generate a unique ID based on SharePoint List ID (called raID, auto increment, primary key).
The formula I used OnSelect event is:
UpdateContext({NewID:If(RapidAssessmentEditForm.Mode=FormMode.New, "BSA-00"& Last(listRapidAssessment).raID+1,NewID)});SubmitForm(RapidAssessmentEditForm)
Than assigned the NewID to Default value of a text box at the form RapidAssessmentEditForm:
If(RapidAssessmentEditForm.Mode=FormMode.New,NewID,Parent.Default)
If I used the application by one person, it works well but at the time we have two users, the NewID start duplicate.
Thanks for you support in advance!
Best Regards
Mahmoud