2. OVERVIEW
Microsoft SharePoint is a web application platform for content and document management, intranet
portals, collaboration, extranets, websites, and enterprise search.
The Microsoft SharePoint connector for Anypoint platform enables integration with SharePoint 2013
through its REST API.
Supported operations:
Lists and List Items API: Create, delete, retrieve, and update lists and list items.
Files and Folders API:
Files: Add, retrieve content, retrieve metadata, delete, check out, undo check out, check in,
publish, unpublish, approve, deny, recycle, and copy files.
Folders: Create, delete, and retrieve folders.
Supported Microsoft SharePoint versions:
Microsoft SharePoint 2013
Microsoft SharePoint Online
2
3. AUTHENTICATION
The Microsoft SharePoint connector supports different
authentication schemes based on which
Microsoft SharePoint that you access:
Supported Microsoft SharePoint authentication on-premise:
NTLM
Claims-based authentication
Supported Microsoft SharePoint authentication online:
Claims-based authentication
Unsupported authentication: Kerberos
3
4. PREREQUISITES
Username and password for users granted access to SharePoint
Organization Service URL - usually in the
format:https://SharePoint.mycompany.com/MyOrganization/Services/2
011/Organization.svc
4
5. INSTALLATION
In Anypoint Studio, click Help > Install New Software.
In the Work with drop down, click Anypoint Connectors Update
Site.
Expand Standard and click Microsoft SharePoint Connector.
Click the checkbox on the left for the SharePoint connector you
want to install, and click Next.
Review the details of the item you selected, and click Next.
Select I accept the terms of the license agreements and then
click Finish.
Click Restart Now to complete the installation.
5
6. MULE CONNECTOR
Step 1: Create a New Mule Project
To configure:
In Anypoint Studio, click File > New > Mule Project.
Specify a Project Name and click Finish.
6
7. MULE MS SHAREPOINT CONNECTOR
Step 2: Configure the Global Element
To configure:
In Anypoint Studio, click File > New > Mule Project.
Specify a Project Name and click Finish.
Click the Global Elements tab.
Click Create.
In the Search text box, type sharepont.
Click Microsoft SharePoint and click OK.
Choose the Global Type to configure:
7
8. MULE MS SHAREPOINT CONNECTOR
Step 3: Configure the Global
Element
Fill in the Username, Password,
and Site URL.
For authentication:
To connect to SharePoint
Online, leave NTLM and
Claims inputs empty. Just
specify
a Username, Password,
and Site URL.
Click Test Connection to ensure
the connection works correctly:
8
9. MULE FLOW
From Anypoint Studio, click File > New > Mule Project.
Specify a Project Name and click Finish.
In the Search box, type http and drag an HTTP Endpoint from the Connectors section
to the canvas.
In the Search box, type sharepoint and drag a Microsoft SharePoint connector instance
next to the HTTP Endpoint connector.
In the Search box, type json and drag an Object to JSON transformer next to the
Microsoft SharePoint connector.
9
10. MULE FLOW (CONT ..)
Double-click the HTTP Endpoint. Make sure Host is set to localhost and Port is set
to 8081. Set the Path to query. Click OK.
Double-click the Microsoft SharePoint connector and click the green plus symbol.
Update the following configuration values:
From the Connector Configuration list, click the Microsoft
SharePoint configuration that was previously created.
From the Operation list, click List query.
Note: The List query option only appears in the Operation list after you have
successfully connected to a SharePoint instance.
From the Language list, click DataSense Query Language.
10
11. MULE FLOW (CONT ..)
Click Query Builder:
- From the list of Types, click Documents.
- From the list of Fields, click ID, and Title.
- From Order By, click Title.
- From Direction, click DESCENDING
11
12. RUNNING MULE PROJECT
In Package Explorer, right click on sharepoint2013-demo and select Run
As > Mule Application.
Check the console to see when the application starts. You should see the
following message if no errors occurred:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Started app 'sharepoint2013-demo' +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Open an Internet browser and visit http://localhost:8081/query
The list of documents are ordered by descending title and returns in JSON
format (results vary according to your SharePoint 2013 instance).
12
13. RUNNING MULE PROJECT
(CONT…)
Open an Internet browser and visit http://localhost:8081/query
The list of documents are ordered by descending title and returns in JSON
format (results vary according to your SharePoint 2013 instance).
13
Hinweis der Redaktion
Follow Do's and Do Not'sCommon Profile PicFollow Company and Geography:HydAdd followers from peers and WW, MuleSoftHave a Note about yourselfAsk Questions in live BrightTalk Webinars using #tweetsTweet/Retweet Articles on Mule. WW blog, G+ and Forum Links
Follow WW and Mulesoft....