I'm creating an HttpClient request to post an object to an API endpoint. You can always jump to thenext step if you have already implemented (or you know) the currentstep. Create a user in Azure AD and configure it as an application user in Dynamics 365, Write C# code with ADAL (Active Directory Authentication Library) to generate the Access Token, Make requests to Dynamics 365 with the above-generated Access Token. I needed to code like this: HttpResponseMessage response = .; var responseBody = await response?.Content.ReadAsStringAsync(); Getting content/message from HttpResponseMessage, Making location easier for developers with new data primitives, Stop requiring only one assertion per unit test: Multiple assertions are fine, Mobile app infrastructure being decommissioned. this Graph API team blog post How do I set up HttpContent for my HttpClient PostAsync second parameter? Making statements based on opinion; back them up with references or personal experience. For B2C tenants, there are primarily two modes of communicating with the Graph API. Like other functions, they can also integrate with other Azure services such as Blob Storage, Event Hubs, queues and so on. By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. Are Githyanki under Nondetection all the time? When you invoke any of these commands, the B2CGraphClient will make a request to the Azure AD Graph API. the application's identity. Your application will use the client secret to authenticate to Azure What is the effect of cycling on weight loss? Try using, This answer is totally off-topic, the OP is using. & install the 64-bit Azure Active Directory Module for Windows Powershell. new MultiFormDataMediaTypeFormatter()); Here is a snippet of code (posted by imran_ku07) that might help you implement a custom formatter to handle the multipart/form-data: http://stackoverflow.com/questions/10036445/how-does-one-correctly-implement-a-mediatypeformatter-to-handle-requests-of-type. Why didn't they make it more obvious?