Hi all,
I can't get the syntax right of what i'm trying to achieve, when building a visitor sign in app.
I've got a SP list called VisitorSignIn
A text column in that list called VisitorName
I've got a textbox called tb_visitorname.
Basically, onselect of the sign in button, I want to check the SP list to see if a record exists matching the type in name from the textbox, and if it does, update a few different columns with other values the user will select on the screen.
If the users typed in name doesnt exist, it creates a new record
I can't get my head around the syntax of using Patch, lookup to see if it exists and if so, update it, and if not, create a new record.
I tried creating a collection of the splist, patching the changes to the collection and just using collect(collection, splist) but it kept adding new and wouldn't update existing even though the "visitor name" already existed in another record.
Thanks!