HOW-TO App Registration

HOW-TO App Registration

Quote
Login to your Azure Portal
Quote
Search for App registrations
Quote
Select New registration

 Fill in Name
 Select Register

You will now see a page like this
Info
The Application (client) ID value will be used in SharePoint setup in Business Central.


 Save value as we are going to use it in Business Central
 Click on the "Add a Redirect URI" link

You will then see a page like this:

 Click on option
 Select Web option

You will then see a page like this:


 Fill in value with: https://businesscentral.dynamics.com/OAuthLanding.htm
 Select Configure

You will then see a page like this:

 Enter line as shown. Replace tenant ID with your Business Central tenant ID. Then select save.

Info
You can find your tenant ID from the URL in your browser. Looks like this:


THE APP IS NOW REGISTERED AND WE JUST NEED TO ADD PERMISSIONS
Quote
Select Certificates & secrets

 Select option
 Select New client secret

A new page will show:

 Enter a description
 Select from the list. In this example I select 730 days before the secret need renewal.

You will then see a page like this:


 Description as entered in the previous step
 This is the secret we are going to use in Business Central. Make a note of it!

Warning
Once you leave the page you can no longer see the value!
Quote
Search for API Permissions
You will the see a page like this:

Info
We are now going to add permissions for 
- Dynamics 365 Business Central
- Microsoft Graph
Click on Add a Permission


 First assign Dynamics 365 Business Central permissions
 The assign Microsoft Graph permissions

Info
When assigning permissions select Application permissions

The permissions should look like this:


Alert
Once permissions selected make sure to grant admin consent! 
Idea
YOU HAVE NOW COMPLETED APP REGISTRATION
Notes
UPDATE BUSINESS CENTRAL 


Enter values you saved during App registration.


 Now request Access Token from SharePoint
 Check that you have access to SharePoint

You should now see a page like this:

You can now select Site settings


Idea
YOU HAVE NOW COMPLETED SETUP