DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • SharePoint Integration With MuleSoft
  • Mastering Multi-Cloud Integration: SAFe 5.0, MuleSoft, and AWS - A Personal Journey
  • Commonly Occurring Errors in Microsoft Graph Integrations and How To Troubleshoot Them (Part 7)
  • Revolutionize Your MuleSoft Deployments With GitOps

Trending

  • Beyond the Endpoint: How Agent Cards Enable Discovery, Interoperability, and Trust
  • Solving Comprehension Debt in AI-Generated Codebases
  • Giving AI Agents Safe Access to Legacy Systems: Introducing legacy2mcp
  • Evals in CI: How to Catch Agent Regressions Before Production Does

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  1. DZone
  2. Software Design and Architecture
  3. Integration
  4. How to Integrate SharePoint With MuleSoft

How to Integrate SharePoint With MuleSoft

In this tutorial, learn how to integrate SharePoint with MuleSoft (Mule 4) and perform some basic operations.

By 
Nagaraju Kshathriya
·
Jan. 12, 21 · Tutorial
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
8.7K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

This tutorial will help you integrate SharePoint with MuleSoft (Mule 4) and perform some basic operations. 

Microsoft SharePoint Connector supports both SharePoint 2013 and SharePoint Online for the use in the cloud and on-premises. 

It is used to manage content and documents. We can perform multiple operations with SharePoint like file upload, folder creation, reading files, etc.

Integrating SharePoint With MuleSoft

Before get started, make sure to have access to SharePoint. If not, please create a free trial account and obtain the credentials.

Once you have access to SharePoint, follow the below steps to connect SharePoint with MuleSoft in Mule 4. 

SharePoint Global Configuration: 

Now, let’s perform a few basic operations such as “Create folder” and “Upload a sample file to folder.” 

Follow the below steps to create the folder and upload a sample PNG file to the SharePoint folder. 

Step 1: Drag and drop HTTP Listener and configure accordingly to trigger a request. 

Step 2: Add SharePoint Folder create node and configure as shown below: 

Here, the connector configuration and the URL (Folder location) is mandatory. For example, /Share Documents/Vanchiv creates a new folder Vanchiv under Shared Documents 

Step 3: Now add File Read node and configure to read a sample PNG file as shown below: 

Step 4: Now add SharePoint File add node to upload the retrieved file to folder. 


Step 5: Finally, add a transform message to send a success response to users/clients.

JSON
 




x


 
1
%dw 2.0 
2
output application/json
3
---
4
{     
5
     "message": "The file has been uploaded to SharePoint"
6
}


The flow would look like: 

Now, run the application and fire a sample request, then verify the whether the folder and file present in SharePoint or not. 

There, you can see a new folder Vanchiv and a PNG file SharePoint-config has been uploaded. You can perform other operation in a similar way. 

Conclusion

We hope this article helped you to integrate SharePoint with MuleSoft in Mule 4 and also perform a few basic operations using SharePoint connector.

SharePoint MuleSoft Integration

Published at DZone with permission of Nagaraju Kshathriya. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • SharePoint Integration With MuleSoft
  • Mastering Multi-Cloud Integration: SAFe 5.0, MuleSoft, and AWS - A Personal Journey
  • Commonly Occurring Errors in Microsoft Graph Integrations and How To Troubleshoot Them (Part 7)
  • Revolutionize Your MuleSoft Deployments With GitOps

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook