How To Set Up Communication Methods
It is possible to set which method should be used to communicate with an external system to exchange data. It is, for example, possible to specify S/Ftp, Ftp, Azure File Storage, Azure Blob Storage and SharePoint Online.
Tip
Choose the Select file and Import action on the Integrations and Integration Queue page for a quick and easy way to import a file without setting up a communication method.
SharePoint Online
The steps for setting communication to SharePoint Online can be done in different ways. Step 3 and Step 4 is only necessary if you want to use a custom app registration instead of the app registration provided by SmartApps and the default settings created automatically.
Step 1: Create New Communication Method
Start by creating a new communication method and with the Type SharePoint:
- Choose the search icon (ALT+Q), enter Communication Methods, and then choose the related link.
- Select New.
- Enter a Code and select SharePoint in the Type field.
- Change the Description if necessary.
Step 2: Enter Details for SharePoint
- Select the Edit action on the Communication Method page.
- Enter the full address of the site on which the document library is located in the Site URL field.
- Enter the path to the document library located on the site, in the Site Relative URL field.
- It is possible, but not necessary, to specify a File Filter.
- A Credential Code with default settings is created automatically after the Site URL is specified. It is possible to create a Credential Code, but it is only necessary if you want to use a custom app registration.
Note
Field - Site URL
The Site URL must contain the full address of the site on which the document library is located (don´t include the document library). Example: If the document library is located on "SubSite":https://YourDomain.sharepoint.com/sites/SubSite/
Field - Site Relative URL
Enter the path to the folder in the document library (don´t include the Site URL). Example: If the document library on "SubSite" (see above) is named "Shared Documents" and contains a subfolder, then the Site Relative URL field should (only) contain: Shared Documents/SubFolder/
Summary of Fields - Site URL & Site Relative URL
Site URL and Site Relative URL should together contain the address of the SharePoint site and document library. Copy both fields and paste into the browser to check that you entered them correctly.
Field - File Filter
You can distinguish files imported from the same folder by adding a File Filter. It can be useful when the same folder is used for files belonging to different companies or integrations.
Action - Show Files
You can use the Show Files action to verify that you can access the specified location with the current settings and permissions. It is also useful for checking that the specified File Filter works as intended.
Step 3: Create a Credential Code
This only applies if you want to use a custom app registration. Otherwise you can skip this step (and step 4) and use the app registration from SmartApps and the default settings instead.
- Select New on the drop down list in the Credential Code field.
- Enter a Code and a Description.
- Select Microsoft OAuth2 Authorization Code in the Authorization Method field.
- Enter the Client Id and Client Secret from the Azure App Registration.
- Enter the AAD Tenant Id of the SharePoint Site.
- It is not necessary to enter the Redirect Url.
- Select the OAuth Scopes and action and the choose the Add Scope for SharePoint Online action to add the scope for connecting to SharePoint Online.
Note
Field - Client Id
Copy the Application (client) ID from the App Registration on the Overview page.
Field - Client Secret
Copy the Value from the App Registration on the Certificates & secrets page.
Field - AAD Tenant Id
A Tenant ID (tenant identifier) is a unique identifier or alias for the tenant. Copy the Microsoft Entra tenant ID guid in Business Central on the Help & Support page under Report a problem if the SharePoint site is on the same tenant as Business Central.
Step 4: Create Azure App Registration
This step (and step 3) only applies if you want to use a custom app registration. Otherwise you can skip this step (and step 3) and use the app registration from SmartApps and the default settings instead.
Perform the steps below to create a custom Application (client) ID and secret to use for the SharePoint Communication Method in Spider.
- Create a new App Registration in the Microsoft Entra admin center.
- For the new registration:
- Enter a suitable name.
- Select account type:
- Spider supports Single tenant and Multitenant.
- Add Redirect URI:
- Select platform Web.
- Enter https://businesscentral.dynamics.com/OAuthLanding.htm as URI.
- Add API permissions for the created app registration:
- Select the SharePoint API.
- Select Delegated Permissions.
- Add permission: AllSites.Write.
- Select the SharePoint API.
- Create a new secret.
Note
Copy the Application (client) ID and secret since they are needed to set up the SharePoint Communication Method in Business Central on the Communication Method Credential page.
Step 5: Check The Settings
You can use the Show Files action on the SharePoint Communication Method Card to verify that you can access the specified location with the current settings and permissions.
Ftp and S/Ftp
Create New Communication Method
Start by creating a new communication method and with the Type Ftp or S/Ftp:
- Choose the search icon (ALT+Q), enter Communication Methods, and then choose the related link.
- Select New.
- Enter a Code and select Ftp or S/Ftp in the Type field.
- Change the Description if necessary.
- Select the Edit action on the Communication Method page and fill in the fields as necessary. Hover over a field to read a short description.
Note
If the Use Custom API field on the Custom API FastTab is left disabled the API provided by SmartApps will be used. The Ftp and S/Ftp services provided by SmartApps is behind a fixed IP address: 20.105.42.47. This can be used to only allow the selected IP to connect to the server.
Tip
You can use the Show Files action to verify that you can access the specified location with the current settings. It is also useful for checking that the specified File Filter works as intended.
See Also
How To Set Up File Imports
External Systems
Integration Queue
Extra Fields
Web Services
Integrations