You can use a server side table script to check if a record exists before completing the insert. Here is a example script that checks if any item in the table has a matching
userId value and if so doesn’t do the insert.
The above script checks the
People table for a record with the same
userId and if it exists then a new record is not inserted. The existing record is updated.
For more details on getting started with Azure mobile services refer to this tutorial.