You are here:
Set Up a SharePoint Integration in Agentforce Supply Chain
Create a SharePoint integration in Agentforce Supply Chain so you can access your SharePoint files.
Required Editions
| License Required |
|---|
This feature is a workspace that’s external to your Salesforce org and requires an Agentforce Supply Chain license. To purchase an Agentforce Supply Chain license, contact your Salesforce account executive. |
| User Permissions Needed | |
|---|---|
| To manage integrations in Agentforce Supply Chain: | Admin role or Data Source Admin role |
To use SharePoint with Agentforce Supply Chain, you register an app in Azure, add the SharePoint integration in Agentforce Supply Chain, and then verify the setup.
Register an App in Azure
Get the SharePoint integration information and set up permissions in Azure.
- Log in to Azure Admin at https://portal.azure.com/.
- In the Azure services section, click App registrations.
- Click + New registration.
- Enter the name for your application.
-
For Who can use this application or access this API, select Accounts in
this organizational directory only, and then click
Register.
The app page opens.
-
Get the client ID.
- In the Essentials section, copy the value of the Application (client) ID field.
- Paste the value somewhere to save it for later and label it as the client ID.
-
Get the endpoint.
- Click Endpoints.
- Copy the value of the OAuth 2.0 Token Endpoint (v2) field.
- Paste the value somewhere to save it for later and label it as the endpoint URL.
-
Create a client secret.
- In the navigation side panel, click Certificates and secrets.
- Click + New client secret.
-
Enter a description and then click Add.
The system saves the client secret. It now shows in the Client secrets list.
- Copy the new client secrets' value for the Value field.
- Paste the value somewhere to save it for later and label it as the client secret.
-
Add API permissions.
- In the navigation side panel, click API Permissions.
- In the Configured permissions section, click + Add a permission.
-
In the Microsoft APIs tab, click Microsoft Graph and then
click Application permissions.
The list of permissions shows.
- Enter sites in the search bar.
- In the Sites section, select Sites.FullControl.All
- Click Add Permission, scroll down, and click SharePoint.
-
Click Application permissions.
The list of permissions shows.
- Enter sites in the search bar.
- Select Sites.FullControl.All.
- On the main API permissions page, in the Configured permissions section, click Grant admin consent for {your org}. For example if your org is called Acme, click Grant admin consent for Acme.
- Verify that all consents show a Granted status.
Add the SharePoint Integration in Agentforce Supply Chain
Add a SharePoint integration in Agentforce Supply Chain using information copied from Azure.
- Log in to Agentforce Supply Chain.
- In the navigation sidebar, click Admin.
- Click the Integration tab.
- Click + Add integration.
- Select SharePoint and then click Next.
- Click Save files to folder and then click Next.
-
Add a new connection.
- Click Add new connection.
- Enter the name of the integration.
- For Access token URL, paste the endpoint URL value you copied in step 7 of Register an App in Azure.
- For Client ID, paste the client ID you copied in step 6 of Register an App in Azure.
- For Client secret, paste the client secret value you copied in step 8 of Register an App in Azure.
-
Click Create.
The new connection shows in the list of connections.
- Confirm that the connection shows in the list and has a green circle.
- Select the new connection and click Next.
- Enter a name and description and then click Add.
The integration is complete.
Test the SharePoint Integration
Create fields to hold an uploaded document and to hold the document location in SharePoint. Create a blueprint that uploads a document and uses a SharePoint action to save the file. Then create and run a workflow from the blueprint and verify that the file is saved to SharePoint.
-
Create a document field to hold the uploaded document.
- In the navigation side panel, click Fields.
- Click + Add field.
- Enter a name. For example, Uploaded Document.
- For Type, select Document.
- Click Create.
-
Create a document field to hold the uploaded document's location in SharePoint.
- In the navigation side panel, click Fields.
- Click + Add field.
- Enter a name. For example, SharePoint Document.
- For Type, select Document.
- Click Create.
-
Create a blueprint.
- Click + Create.
- Click Blueprint.
- Click From scratch.
-
Add a stage.
- Click + Add stage
- Enter a name for the step and then click Add stage.
-
Add a task to request a document upload.
- Add a stage.
- Click + Task.
- Complete the fields with test data. For example, for Name, enter Get Document from User
- In the Request Information section, click +Add field or role and then search for and select the test document field you created. For example, select Uploaded Document.
- Click Save changes.
-
Add an automation for the SharePoint action.
- In the same stage, click + Automation.
-
Click SharePoint and then click Save file to
folder.
The Add automated task window opens.
-
For Start, select After another task ends.
A new field shows.
- In the new field, select the task from step 5.
- For SharePoint Site, select the name of your site.
- For Folder, select the SharePoint folder where you want to save the file.
- For File, select the uploaded document from step 5. For example, select Uploaded Document.
- In the SharePoint outputs section, for File URL, select your SharePoint document. For example, click Sharepoint Document.
- Click Add.
-
Create and start a workflow to test the integration.
- Click Create workflow.
-
Enter a name for the workflow and then click Create.
The workflow starts running.
-
Upload a file and complete the task.
- Open the first task.
- Click Attach.
- Select a file to upload.
- Click Complete.
The automation runs and saves the file to SharePoint. -
Verify the file in SharePoint.
- Open the automation step and check if your SharePoint document field has a link to the uploaded file as its value.
- Click the link to open the file from SharePoint.
- Open SharePoint and check that the uploaded file shows in the folder that you specified .

