I'm trying to connect my custom ASP.NET app to Dynamics 365. On a form submit, the app should create a new Lead record in Dynamics. The app doesn't need to have users authenticated into CRM. I probably just need one default user which will take the form submit data and insert it into CRM.
My first attempt was to register an Azure app in Active Directory and add it's ID into my ASP.NET app so that it can connect to Dynamics. After the registration I tried to give it all possible permissions so that I can at least make it talk to Dynamics but it still had problems. I tried both Native and Web app, as shown in the screenshot.
But now I'm wondering if this is the way to go or am I way off?