Logic apps – Reading from Sharepoint and send to Azure Service Bus

In this post , we will understand how the data uploaded in sharepoint will be sent to Service Bus queue via logic apps.

What is Azure Service Bus?

I am not going to dive deep into the ASB concept , but will give a brief oeverview of it to understand how it is used and how it is implemented.

Azure Service Bus is a fully managed, cloud-based messaging service that enables reliable and scalable asynchronous communication between decoupled applications and services, whether they are online or offline. 

It acts as a broker to handle message transfer, eliminating the need for server management, and supports key messaging patterns like queues for distributing work and topics/subscriptions for publish/subscribe scenarios.

One advantage of ASB is sender and receiver need not be online during the process. Sender can send the message when ready and receiver can pick the message from the queue when available.

Let us understand how to read to data from Sharepoint and send to Queue.

  1. Create a new logic apps . I am using Consumption Logic apps in my case

2. Enter the Resource Group (create or use the existing one) and enter the name.

Hit Review+create. I leave the default for other options like Tags, networks etc.,

3. A new Logic apps is created. (It takes few seconds to get the LA deployed)

4. In my scenario, my flow should be triggered when the file is uploaded in sharepoint folder.So the starting trigger I opt as Sharepoint.

In the ‘Add a trigger’, search ‘Sharepoint’ and select the option highlighted below.

Sign in to the connection and select the Sharepoint site and folder from where the file has to be picked.

Chose the frequency to check the items from the Sharepoint folder.

Next step is to add the call to Queue. This is via ‘Send message’ in ASB connector.

Upon selecting the ‘Send message’ , a new connection has to be set up.

I selected the ‘Authentication Type’ as ‘Access Key’ where it expects the ASB Connection string. Where do you find this.

Go to ASB and select ‘Shared access policies’

Click ‘Root Manage Shared Access key’

Select the below

Now the connection is established to ASB.

I created a queue in the ASB which is shown in the look up. Select the value.

SessionID is given as GUID

The above flow doesn`t pass the contents of the file. So add a new step ‘Get file content’

Now the flow is ready.

I upload the file in sharepoint and wait for the trigger.

Run history shows a successful execution

Lets head to the ASB queue and check if the message is received.

Wow.. I could see a message

The message will be available in the queue until the receiver reads it from the queue,making ASB as one of the best asynchronous messaging system.

Original Post https://anithasantosh.wordpress.com/2025/10/05/logic-apps-reading-from-sharepoint-and-send-to-azure-service-bus/

0 Votes: 0 Upvotes, 0 Downvotes (0 Points)

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
October 2025
MTWTFSS
   1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31   
« Sep   Nov »
Follow
Search
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...