Personalized Community is here!
Quickly customize your community to find the content you seek.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
To call a dynamimcs CRM web API on a android device programmaticallySteps to reproduce:
2. Replace the MS Graph API to Dynamics CRM web API
Sample D365 CRM web API : https://organization.crm5.dynamics.com/api/data/v9.1/WhoAmI
Current Scenario/Issue/Result : 401 Unathorized
Reference to Microsoft Docs: 1. https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-v2-android
Can you try ADAL library for java named "ADAL4J"?https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/authenticate-oauth#use-adal-libraries-to-connect
Thanks for the input.
All versions are ADAL are deprecated, and MSAL is now in use.
No versions of MSAL have access to call any API other than Microsoft Graph API.
I want to integrate other Microsoft Web APIs using the access token of MSAL and integrate a Android mobile app (not a Web app)
Could try some integrating the above mentioned links.
I have tried to request via Postman. Posted http headers on the request below.
Can you try plane http request on java (like HttpUrlConnection) with below headers ? I suppose to Authorization header is the point.
# you can try postman with this docs: https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/webapi/use-postman-web-api
I have also followed the Postman way and it works for desktop client.
The headers are those as mentioned in the docs.
But the API does not work on a mobile client.
If the actual http request from Android app and the request from Postman are completely same, both requests should be succeeded.
1) Is any request to other service web api or internet access from the Android app succeeded?
2) If you use a token string that same with Postman request in "Authorization" header, is it succeeded? (use literal string instead of programmatically authorization)
3) Try to capture actual http request from Android app and compare with postman request. I suppose to you can capture with Fiddler https://www.telerik.com/blogs/how-to-capture-android-traffic-with-fiddler
Both the requests are not completely same but are similar
Ans 1. Yes, The API integration of MS Graph API is successful
Ans 2. Yes, The access token token generated from AuthenticationResult is added to API using Volley.
Ok, I will try to capture fiddler traces and compare.
Business Applications communities