Hoe to read the uploaded excel from a storage blob and process the data using logic app

Pragiri 0 Reputation points
2024-10-01T07:13:53.8866667+00:00

How to read the excel file which is uploaded in storage bob and process the data and execute sql query using logic app

Azure SQL Database
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,117 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,212 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pinaki Ghatak 4,610 Reputation points Microsoft Employee
    2024-10-08T19:24:50.07+00:00

    Hello @Pragiri

    To read an Excel file uploaded in a storage blob and process the data and execute SQL query using Logic App, you can follow the below steps:

    1. Create a new Logic App in the Azure portal and select the trigger as "When a blob is added or modified (properties only)".
    2. Select the storage account and container where the Excel file is uploaded.
    3. Add a new action "Get blob content" and provide the path of the Excel file.
    4. Add a new action "List rows present in a table" and provide the Excel file content from the previous step.
    5. Select the table name and worksheet name from the Excel file.
    6. Add a new action "Execute a SQL query (V2)" and provide the SQL query to execute.
    7. Save and run the Logic App. This will read the Excel file uploaded in the storage blob, process the data and execute the SQL query. You can also add additional actions to perform other operations based on your requirement.

    I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.