Note : this is for an Azure Function. The normal C# links on microsoft docs do not apply. It is for an Azure Function.
Scenario:
I need to have 1 entry only per Person, with the last date that this person logged in. This property gets updated every time.
Azure Functions still cannot do an upsert
Therefore I had to split my code into
Creating a new record.
I cannot simply run the update method for both creating and updating :
error CS1061: 'CloudTable' does not contain a definition for 'Add' and no extension method 'Add' accepting a first argument of type 'CloudTable' could be found (are you missing a using directive or an assembly reference?)
So at this point, I need to check if a item already exists, and then I need to call either the create or update function.
How do I use a Azure Function to query Table Storage to see if an item exists?