The case : CRUD Work Orders in Dynamics 365-Field Service through the Common Data Services OData
- I am trying to access to Dynamics 365 Field Service' fields.
I use Python, Flask to build the webapp
I need to CRUD Work orders : https://docs.microsoft.com/en-us/dynamics365/customer-engagement/web-api/msdyn_workorder?view=dynamics-ce-odata-9
I am using the multi-tenant server-to-server authentication mechanism: https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/use-multi-tenant-server-server-authentication
I have setup the App Registration on Azure: https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app
I have configured several permissions:
- Odata.FullAccess
- AX.FullAccess
- CustomService.FullAccess
- User.Read
- User.ReadBasic.All
I use the code-template provided by Microsoft to build my web app interacting with Active Directory and Dynamics 365
https://docs.microsoft.com/en-us/azure/active-directory/develop/scenario-web-app-call-api-overview
Error message
Login Failure
invalid_scope
The provided value for the input parameter 'scope' is not valid.
The scope 'Odata.FullAccess User.ReadBasic.All offline_access openid profile'
does not exist.
Do you have any idea?
Many thanks for the time you will invest in this issue
scope=user.read%20mail.read
– PGHE