For this integration you will need to create an application in your tenants azure account and provide some needed details regarding the application. Afterwards, you will need add the new application to you dynamics environment with the desired permission.
Log in to you azure account: https://portal.azure.com
Click on the `App registration` button
Click on the `New registration` button
Give you application a name for example `Reco for Dynamics` and click `Register`
You will be redirected to the application `Overview` page. In this page copy the `Application (client) ID` (this is your `client_id`), `Directory (tenant) ID` (this is you `tenant_id`)
Click on `Certificates & secrets`
In the `secrets` page click on `New client secret` and create a new secret, the expiration date should be as long as possible
Copy the `Value` of the new secret β this will be the needed field in the `secret` tab later. In this example the secret is 5k~β¦
Now that we created the app we will need to give it the needed authorization. Go to your admin powerapp environment page: https://admin.powerplatform.microsoft.com/environments and click on the dynamics environment
In this page copy the ` Environment URL` (this is your ` Environment URL` needed for the integration screen later)
Now click on Settings in the top menu -> Users + permissions -> Application users
Click `New app users`
Click on the `Add an app` button and search for the application you created and click `add`
In the ` Business unit` field fill in the subdomain of the dynamics site for this example ` org1b3582c0`
click on the edit button for the security and scroll down and click on `System Administrator` and click Save
This is how the application user creation form should look like β click save after you ensured everything is valid
Now go to the reco integration page and look for `dynamics` and fill in the needed fieldsdynamics` and fill in the needed fields