I am currently using Azure Logic App, Blob storage and stored procedure in Azure SQL. I am trying to upload a csv present in container in Blob storage to SQL Azure using steps in Logic Apps. Currently the stored procedure has hard coded name of CSV file present in Blob storage and the stored procedure uses Bulk Insert SQL command. All this is working fine.
I now need to generalize my Stored procedure, so that when Logic App runs it should look at the Blob storage and pick the whatever file name is there (it is guaranteed to have CSV extension) and pass it as a parameter to Stored Procedure for bulk insert of data present in CSV to Azure SQL.
Please help.
Thanks