How to receive messages in logic app from service bus queue with record of 500 and convert it to csv file and concat them to upload to sftp

Saman123 0 Reputation points
2024-02-16T19:03:01.6333333+00:00

I don't have the flow since I am new to azure

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,082 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Achraf Ben Alaya 1,056 Reputation points MVP
    2024-02-16T20:42:25.71+00:00

    To achieve this workflow in Azure Logic Apps, you can follow these general steps:

    1. Trigger on Service Bus Queue: Set up a trigger that fires when a message is received from the Service Bus Queue.
    2. Batch Processing: Since you want to process 500 records at a time, you'll need to implement a batch processing mechanism in your Logic App. Azure Logic Apps can be configured to process messages in batches using iterations or loops.
    3. Convert to CSV: Inside the loop or iteration, you'll need to accumulate the received messages and format them into CSV format. You can use the "Data Operations - Create CSV table" action in Logic Apps to format the data into CSV.
    4. Concatenation: After processing all the messages in the batch, you may need to concatenate the CSV files if you are uploading them as a single file to SFTP. Upload to SFTP: Once you have the final CSV file, you can use the SFTP connector in Logic Apps to upload the file to your SFTP server.
    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.