• de
  • en
    Search Results for

      Show / Hide Table of Contents

      Set Up Sharepoint as Cloud Storage

      This chapter describes how to connect your Business Central (using BeyondCloudConnector) to Sharepoint.
      Connecting Sharepoint allows you to directly access and edit files stored in the cloud without leaving Business Central.

      Note

      Adminstator Privileges required in Microsoft Azure
      The following descriptions require administrator privileges in Microsoft Azure. To set up the connection, you must have permission to create storage accounts, regsiter apps, add API permissions and create secret keys. If you need help with setup or have any questions in this regard, please feel free to contact us at info@beyondit.gbmh.

      Follow the steps below to connect Sharepoint in Business Central:

      • Register application in Microsoft Azure
      • Add API permissions
      • Prepare access data
        • Copy Application (Client) ID
        • Generate and copy secret
        • Copy Authorization URL
        • Create and copy Redirect URL
        • Copy Access Token URL
      • Connect BeyondCloudConnector with Sharepoint in Business Central

      Register application in Microsoft Azure

      This section describes how to register the application (BeyondCloudConnector) in Microsoft Azure.
      To do this, proceed as follows:

      1. Open the website http://www.portal.azure.com/ and log in.
      2. In the Microsoft Azure menu bar, click App Registrations.
        App Registrations
        App Registrations
      3. The App Registrations page is displayed. Click New Registration in the menu bar.
        Register New Application
        Register New Application
      4. Enter a suitable name for the new application under Name. We recommend using the name BEYOND CloudConnector.
      5. Under Supported Account Types, select the Accounts in this organizational directory only option.
      6. To complete the application registration, click Register.

      You have registered a new application in Microsoft Azure. You need to give this registered application (BEYOND CloudConnector) the appropriate API permissions to connect to Business Central, Microsoft Graph and Sharepoint.

      Add API permissions

      This section describes how to configure the API permissions required for data exchange (Read, Write and Manage). You need to configure permissions for three program interfaces (APIs). The interfaces used are Sharepoint, Dynamics 365 Business Central, and Microsoft Graph.

      To add the API permissions, do the following:

      1. If you have not yet opened the Microsoft Azure web page, click on the link below and log in:
        http://www.portal.azure.com/.
      2. In the Microsoft Azure menu bar, click the App Registrations menu item.
        App Registrations
        App Registrations
      3. The App Registrations page is displayed.
      4. In the App Registrations table that is displayed, click the application that you created in the Register application in Microsoft Azure section.
        Select App Registration
        Select App Registration
      5. The corresponding app registration page is displayed.
      6. To view the permissions for the registered app, click API Permissions in the menu.
        API Permissions
        API Permissions
      7. To add the permission for Dynamics 365 Business Central, click the Add a Permission option under the Configured Permissions section.
        Add a new Permission
        Add a new Permission
      8. The Request API Permissions window is displayed.
        Set Up an API permission for Microsoft Dynamics 365 Business Central
        Set Up an API permission for Microsoft Dynamics 365 Business Central
      9. Select Dynamics 365 Business Central from the available API permission options.
      10. Choose the permission type Delegated permissions.
      11. Select the Financials.ReadWrite.All checkbox.
        Add Financials.ReadWrite.All Permission
        Add Financials.ReadWrite.All Permission
      12. Click Add Permissions.
      13. You have granted permission for Dynamics 365 Business Central. This is displayed under the Configured Permissions section in your app registry.
      14. To add other required permissions (Sharepoint), click Add a Permission in the Configured Permissions area.
        Add a new API permission
        Add a new API permission
      15. Click on the SharePoint.
        Set Up Permissions for Sharepoint
        Set Up Permissions for Sharepoint
      16. Choose the permission type Delegated permissions.
      17. Select the AllSites.Manage checkbox.
        Add AllSites.Manage Permission
        Add AllSites.Manage Permission
      18. Click Add Permissions.
      19. You have granted permission for Sharepoint. Dynamics 365 Business Central and Sharepoint permissions are displayed under the Configured Permissions section in your app registration.
      20. To add the other required permissions (Microsoft Graph), click Add a Permission in the Configured Permissions area.
        Add more API Permissions
        Add more API Permissions
      21. Click on the API Microsoft Graph.
        Add API Permissions for Microsoft Graph
        Add API Permissions for Microsoft Graph
      22. Choose the permission type Delegated permissions.
      23. Select the Files.ReadWrite.All checkbox under the Files API Permissions.
        Add Files.ReadWrite.All permission
        Add Files.ReadWrite.All permission
      24. In addition to the Files.ReadWrite.All permission, scroll down to the Sites permission and select the checkbox for Sites.Read.All.
        Add Sites.Read.All permission
        Add Sites.Read.All permission
      25. Click Add Permissions.
      26. You have granted API permissions for Microsoft Graph.
        Dynamics 365 Business Central, Sharepoint, and Microsoft Graph permissions are displayed under the Configured Permissions section in your app registry.
        All required API permissions needed in Microsoft Azure to connect Sharepoint as a cloud storage
        All required API permissions needed in Microsoft Azure to connect Sharepoint as a cloud storage

      You have added all necessary permissions to connect Sharepoint via BeyondCloudConnector.

      Dynamics 365
      Business Central
      Microsoft
      Graph
      Sharepoint
      • Financials.ReadWrite.All • Files.ReadWrite.All • AllSites.Manage
      • Sites.Read.All
      • User.Read

      Prepare access data

      To make the setup easier for you, we have prepared a PDF file for you. The PDF file caches information from Microsoft Azure (e.g. Application (Client) ID, Access Tokens, etc.) that you will need later for setup in Business Central.

      Please download the file from the link below:
      Download PDF file

      After downloading, open the PDF file and proceed to the following sections:

      • Copy Application (Client) ID
      • Generate and copy secret
      • Copy Authorization URL
      • Create and copy Redirect URLCopy Application Access IDURL](#copy-access-token-url)

      Copy Application (Client) ID

      This subsection describes where to get the Aopplication (Client) ID information for the BeyondCloudConnector setup in Business Central.

      1. Open the website for Microsoft Azure http://www.portal.azure.com/ and log in.
      2. In the Microsoft Azure menu bar, click the App Registrations menu item.
        App Registrations
        App Registrations
      3. The App Registrations page is displayed.
      4. In the App registrations table that is displayed, click the application that you created in the Register application in Microsoft Azure section.
      5. Click Overview in the menu bar.
      6. Move the cursor to the Application (Client) ID value. An icon will appear that allows you to copy the value to the clipboard.
        Copy Application (Client) ID
        Copy Application (Client) ID
      7. Insert the value in the PDF file under the Client ID field.

      Generate and copy secret

      This subsection describes how to create a new secret key in your Microsoft Azure. The secret key (also called Client Secret) is required to secure the connection to Sharepoint and to authenticate yourself.

      To generate a secret key, proceed as follows:

      1. If you have not yet opened the Microsoft Azure web page, click on the link below and log in:
        http://www.portal.azure.com/
      2. In the Microsoft Azure menu bar, click the Certificates & Secrets menu item.
        Certficates & Secrets
        Certficates & Secrets
      3. Select New client Secret from the menu bar.
      4. Under the Description field, enter a name for the key (for example, BEYOND CloudConnector).
      5. Under the Expires field, define the validity period of the key. We recommend that you specify the validity period as 12 months. Please note that a new key must be regenerated after this period/date expires.
        Add new client secret
        Add new client secret
      6. To create the key, click Add.
      7. The new secret key (client secret) will be added to the Certificates & Secrets page.
        New secret created
        New secret created
      8. Move the mouse cursor to the displayed value under the Value column. An icon will appear that allows you to copy the value to the clipboard.
      9. Copy the value.
      10. Insert the value in the PDF file under the Client Secret field.
      Note

      Values of secret keys are displayed only immediately after creation
      The displayed value for the secret key is shown only in this session. When the browser window is closed or you log out, the value is made unrecognizable and can no longer be copied. You need the value of the key to connect Sharepoint/Beyond CloudConnector to Microsoft Dynamics 365 Business Central (see section Connect BeyondCloudConnector with Sharepoint in Business Central).

      Copy Authorization URL

      This subsection describes where to get the Authorization URL information for setting up BEYOND CloudConnector in Business Central.

      1. Open the website for Microsoft Azure http://www.portal.azure.com/ and log in.
      2. In the Microsoft Azure menu bar, click the App Registrations menu item.
        App Registrations
        App Registrations
      3. The App Registrations page is displayed.
      4. In the App registrations table that is displayed, click the application that you created in the Register application in Microsoft Azure section.
      5. Click Overview in the menu bar.
      6. In Microsoft Azure, under the overview for the registered application BEYOND CloudConnector, click Endpoints in the menu bar. The authorization URL is composed of the following components: https://login.microsoftonline.com/your-directory-id/oauth2/v2.0/authorize
        Save authorization URL
        Save authorization URL
      7. From Microsoft Azure, copy the field value for OAuth 2.0 authorization endpoint (v2) and paste it into the Authorization URL field in the PDF file.

      Create and copy Redirect URL

      This subsection describes where to get the Redirect URL information for BEYOND CloudConnector setup in Business Central.

      1. Open the website for Microsoft Azure http://www.portal.azure.com/ and log in.
      2. In the Microsoft Azure menu bar, click the App Registrations menu item.
        App Registrations
        App Registrations
      3. The App Registrations page is displayed.
      4. Klicken Sie in der angezeigten Tabelle App-Registrierungen auf die Anwendung, die Sie im Abschnitt Register application in Microsoft Azure erstellt haben.
      5. Click Authentication in the menu bar.
      6. Click Add Platform.
        Create Redirect URL
        Create Redirect URL
      7. A window will be displayed. Select Web from the options for the platform.
      8. Paste the following link in the Redirect URI field. Replace your-directory-id and database-name in the link.
        https://businesscentral.dynamics.com/your-directory-id/database-name?page=70838577.
      9. Copy the redirect URL into the PDF file under the Redirect URL field.
      10. Select the Access Tokens and ID Tokens checkboxes.
      11. To create the redirect URL, click Configure.
        Create Redirect URL
        Create Redirect URL

      Copy Access Token URL

      This subsection describes where to get the Access token URL information for BEYOND CloudConnector setup in Business Central.

      1. Open the website for Microsoft Azure http://www.portal.azure.com/ and log in.
      2. In the Microsoft Azure menu bar, click the App Registrations menu item.
        App Registrations
        App Registrations
      3. The App Registrations page is displayed.
      4. In the App registrations table that appears, click the application that you created in the Register application in Microsoft Azure section.
      5. Click Overview in the menu bar.
      6. In Microsoft Azure, under the overview of the registered application BEYOND CloudConnector, click Endpoints in the menu bar. The access token URL is composed of the following components:
        https://login.microsoftonline.com/your-directory-id/oauth2/v2.0/token
        Copy Access Token URL
        Copy Access Token URL
      7. From Microsoft Azure, copy the field value for OAuth 2.0 token endpoint (v2) and paste it into the Access token URL field in the PDF file.
      Note

      Ressource URL
      The Ressource URL is automatically added by the system when creating the cloud application.

      Connect BeyondCloudConnector with Sharepoint in Business Central

      This section describes how to connect Sharepoint to Microsoft Business Central using Beyond CloudConnector.

      To connect Sharepoint via the BeyondCloudConnector extension in Microsoft Dynamics 365 Business Central, proceed as follows:

      1. Open your Business Central and the PDF file with the collected data.
      2. From the role center, open the search function (ALT+Q) .
      3. Search for the Cloud Applications page and click the corresponding search result.
      4. The Cloud Applications page is displayed.
      5. To connect Sharepoint to your Business Central, click New in the menu bar.
      6. The Cloud Application page is displayed.
        Connect Sharepoint in Business Central
        Connect Sharepoint in Business Central
      7. In the Code field, specify the value Sharepoint.
      8. The information Resource URL is automatically added by the system.
      9. In the Application type field, select Sharepoint from the drop-down menu.
      10. In the Description field, you can enter a description for the new cloud application.
      11. Use the File Deletion Allowed slider to control whether files stored in the cloud can be deleted via Business Central.
      12. Open the PDF file with the saved data. You have already collected the information for the setup in the Prepare access data section.
      13. Copy the data from the PDF file and paste it on the Cloud Application page under the Sharepoint tab.
      14. When you are done with entering the data, click Select Drive from the menu bar.
      15. A window is displayed. Select the Sharepoint website (document libary in Sharepoint) which you want to connect to.
        Select Website
        Figure: Select Website
      16. Click OK.

      You have connected your Sharepoint to Microsoft Dynamics 365 Business Central.
      For a complete setup, you still need to define the tables on which you want the dropzones to be displayed for storing files from Business Central in Sharepoint. For more information on how to set up dropzones, see the Set up dropzone chapter.

      You can also set up automatic report archiving. For more information, see the chapter Set up report archiving.

      In This Article
    • Privacy Policy
    • Legal Notice
    • © 2022 BEYONDIT GmbH