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
I have native application, have proper secret key.
Next one - I have JAVA application which properly obtain token, using appId and secret key.
But, when I tried to obtain the data using HTTPClient and token - I always have 401 error.
If need, I present code example below:
String accesToken = result.getAccessToken();System.out.println(accesToken);Header odataMaxVersion = new BasicHeader("OData-MaxVersion", "4.0");Header odataVersion = new BasicHeader("OData-Version", "4.0");Header headerContentType = new BasicHeader("Content-type", "application/json;IEEE754Compatible=true");List<Header> headers = new ArrayList<>();headers.add(odataMaxVersion);headers.add(odataVersion);headers.add(headerContentType);HttpClientContext context = null;Header headerAuthentication = new BasicHeader("Authorization", "Bearer " + accesToken);headers.add(headerAuthentication);HttpClient client = HttpClients.custom().setDefaultHeaders(headers).build();HttpRequestBase request;HttpResponse response = null;String requestURLString = RESOURCE + "/api/data/v9.0/EntityDefinitions(LogicalName='invoice')/Attributes?$filter=IsValidForRead%20eq%20true";request = new HttpGet(requestURLString);response = client.execute(request, context);int responseCode = response.getStatusLine().getStatusCode();Finally, responseCode is 401.May be I'm an idiot
Try checking request with Postman once, might help you track exact issue.
Business Applications communities