Installation of Siteshop Apps for Microsoft 365 Dynamics
Last updated: 05-07-2023
Creating a Dynamics 365 App
To grant the app access to your Dynamics API, an app needs to be created in the Azure Active directory. Go to https://portal.azure.com -> “Azure active directory”.
From here, navigate to “App registration” and click “New registration”.
Enter a fitting name. This could be specific to the app you are installing, so that you can keep track of what an app is used for. But this app registration can actually be used by all Siteshop apps made for Dynamics. This name can be changed later.
Make sure to pick the first Supported account type (“Accounts in this organizational directory only [Organization name] – Single tenant”).
Enter this redirect URL with the “Web” option: https://siscloud.azurewebsites.net/MicrosoftDynamicsRedirect
Register the app. You are now presented with a window containing most of the data Siteshop needs to install your integration. Save the essential values provided (Application (client) ID, Directory (tenant) ID, Object ID).
Creating a secret
Navigate to “API permissions” and click “Add permission”.
Choose the “Dynamics CRM” option, within that choose “Delegate permissions”, and make sure to check the “user_impersonation” checkbox such that it is selected.
Now navigate to “Certificates & secrets” and click “New client secret”.
Give the secret a fitting name and decide for how long it should be active (We recommend “never”, such that your integration will run seamless for as long as you need it).
IMPORTANT: The time of creation is the only time the full secret will be available to you. Make sure to save it, or supply it to Siteshop immediately to avoid having to redo steps.