Update/Delete Table entries in HttpTrigger (Java)

Liam Metzger 21 Reputation points
2022-10-09T15:45:22.793+00:00

I am currently working on a project, where I'm creating a Todo Application with Azure Functions in Java.
To store the Todos im using the @TableInput and @TableOutput Bindings to create Rows in the table storage and read from it.

But the users should also be able to complete and delete their Todos.
I have searched for a bit but haven't found a way to update or delete rows in the HttpTriggers.
Is there a way to update and delete rows frome the table storage in the HttpTrigger?

Azure Table Storage
Azure Table Storage
An Azure service that stores structured NoSQL data in the cloud.
163 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,636 questions
0 comments No comments
{count} votes

Accepted answer
  1. MuthuKumaranMurugaachari-MSFT 22,271 Reputation points
    2022-10-12T00:20:25.993+00:00

    @Liam Metzger Thank you for reaching out to Microsoft Q&A. Based on your statement, you want to update or delete table entities in HttpTrigger Azure function (Java).

    Unfortunately, output binding only supports creating new entities in a table and you would need to use Azure SDK directly (refer Azure Tables output bindings for Azure Functions).

    249496-image.png

    Here are some sample code snippets for Update an entity and Delete an entity which use Azure Tables client library for Java. This would help you in writing custom code in your HttpTrigger Functions. I hope this answers your question and feel free to reach if you face any issues or have any questions. I would be happy to assist you.

    If you have any feedback or suggestion to our product team, feel free to post it in Azure Functions so that others can also upvote it too.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community.

    0 comments No comments

0 additional answers

Sort by: Most helpful