# How to connect to Sharepoint using the HTTP Service destination steps

**URL:** <https://community.synatic.com/t/how-to-connect-to-sharepoint-using-the-http-service-destination-steps/225>\
**Category:** Flows\
**Tags:** helper-functions\
**Created:** [May 12, 2022, 12:27pm UTC](https://community.synatic.com/t/how-to-connect-to-sharepoint-using-the-http-service-destination-steps/225 "2022-05-12T12:27:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![navessa](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.synatic.com/navessa/32/58_2.png) [@navessa](https://community.synatic.com/u/navessa)\
**Post date:** [May 12, 2022, 12:27pm UTC](https://community.synatic.com/t/how-to-connect-to-sharepoint-using-the-http-service-destination-steps/225/1 "2022-05-12T12:27:16Z")

</div>

We currently do not have a Sharepoint connector available. To connect to Sharepoint, the following needs to be done:

**NB: Our developers are developing a Sharepoint connector. Once it is released, this article will no longer be available.**

Illustrated in the image below is an example of how the base flow will look.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/1X/9b1e6381812a45f798da801522585a4e0a2e645f.png)

To **obtain the access token** to Sharepoint, you can use a Record Generator as a source step and and the HTTP Service destination step to retrieve the access token. Below is an example of what the HTTP Service destination step will look like.

![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/1X/a29b4ba5121c82fe2e5579cacc725d344c4edaca.png)

Then add a Calculator step after the HTTP Service destination step to parse the access token by using the code in the below image.

![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/1X/d80188fc6a90ef99d46353897665824bd8d3fb71.png)

The below link assists with retrieving the **access token** :

> [https://docs.microsoft.com/en-us/graph/auth-v2-user?view=graph-rest-1.0#token-request](https://docs.microsoft.com/en-us/graph/auth-v2-user?view=graph-rest-1.0#token-request)

Once the access token is retrieved, you can then **upload to Sharepoint** by adding a HTTP Service destination step as shown in the image below.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/1X/09dac66c178d51748fa62a5a69d6c4786c0dd2c7.png)

The below link assist with the authorization code oAuth flow for SharePoint add-ins/ scopes:

> [Authorization Code OAuth flow for SharePoint Add-ins | Microsoft Learn](https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/authorization-code-oauth-flow-for-sharepoint-add-ins)

The below link assists with uploading or replacing contents in Drive Item:

> [Upload small files - Microsoft Graph v1.0 | Microsoft Learn](https://docs.microsoft.com/en-us/graph/api/driveitem-put-content?view=graph-rest-1.0&tabs=http)

[How to add a return limit in Sharepoint’s API URL](https://community.synatic.com/t/how-to-add-a-return-limit-in-sharepoints-api-url/224)
