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
Over 2 million developers have joined DZone.
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

  • What Is Lambda Architecture? Ultimate Guide to Getting Started
  • Throughput vs Goodput: The Performance Metric You Are Probably Ignoring in LLM Testing
  • Building Enterprise-Grade Real-Time IoT Dashboards with Vue 3, MQTT, and Kafka
  • The Network Attach Problem Nobody Warns You About
  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 user avatar
Nagaraju Kshathriya
·
Jan. 12, 21 · Tutorial
Likes (3)
Comment
Save
Tweet
Share
8.5K Views

Join the DZone community and get the full member experience.

Join For Free

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

The likes didn't load as expected. Please refresh the page and try again.

  • 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