Hello,
I have an issue where I am creating duplicate request ID
In the Onvisible of the request screen the RequestID is set by reading the list and taking the RequestID item value from the last submitted item.
If(
frmRequestDetails.Mode = FormMode.New,
"REQ" & First(
Sort(
AddColumns(
'Freight Requests',
"NewRequestID",
Trim(
Substitute(
RequestID,
"REQ",
""
)
) * 1
),
NewRequestID,
Descending
)
).NewRequestID + 1,
Parent.Default
)
I then increment the Request ID + 1
It seems that following the SubmitForm there is quite a delay in the time that the item is written to the list and the user navigating back to submit a second request which results in the item not being present in the list. This then results in the the new request generating the same Request ID.
Can anyone help?
Many Thanks