Hi @BCBuizer ,
Thanks for the response. I am still facing difficulty with creating the incremental number.
Yes, I am able to patch other fields from the form. I need help with the incremental number.
I tried the below code. The SharePoint VisitID is still empty after the below code is executed. VisitID is a number column in SharePoint list. I tried with and without "Text(Value" but no luck. I am sure missing something.
Patch(VisitorRequestList,LookUp(VisitorRequestList,Title=DataCardValue46_2.Text),{'Visit ID':Text(Value(Last(Sort(VisitorRequestList,'Visit ID')).'Visit ID'))+1})
and
Patch(VisitorRequestList,LookUp(VisitorRequestList,Title=DataCardValue46_2.Text),{'Visit ID':Last(Sort(VisitorRequestList,'Visit ID')).'Visit ID')+1})
If a single request is submitted, the database should have an incremental visit ID.
If multiple requests are submitted at the same time, the visit ID should be same for all requests.
Single Request:
Bob - Visit ID - 1
Multiple Requests:
Jim - Visit ID - 2
Ken - Visit ID - 2
Joe - Visit ID -2
I cannot use the above code in case of multiple record submission. Because I cannot check the title = datacardvalue. I need the VisitID to be same for all the records submitted in the multiple request form.