title: ApplicationInsightDataClient GetCustomEventWithHttpMessageAsync not loading custom dimension
body: <p>I am using Microsoft.Azure.ApplicationInsights 0.9.0 -preview version to get custom events from application insights</p>
  <pre><code>    public async Task&lt;ApplicationInsightsFooDto[]&gt; Foo(TimeSpan timeSpan)
      {
          var activeDirectoryServiceSettings = new ActiveDirectoryServiceSettings
          {
              AuthenticationEndpoint = new Uri(&quot;https://login.microsoftonline.com&quot;),
              TokenAudience = new Uri(&quot;https://api.applicationinsights.io/&quot;),
              ValidateAuthority = true
          };
  
          ServiceClientCredentials serviceCredentials = ApplicationTokenProvider.LoginSilentAsync(
              domain: ApplicationInsightConstants.DirectoryId,
              clientId: ApplicationInsightConstants.ClientId,
              secret: ApplicationInsightConstants.ClientSecret,
              settings: activeDirectoryServiceSettings
          ).GetAwaiter().GetResult();
  
          var applicationInsightsDataClient = new ApplicationInsightsDataClient(serviceCredentials)
          {
              AppId = ApplicationInsightConstants.AppId,
          };
          applicationInsightsDataClient.HttpClient.DefaultRequestHeaders.Add(&quot;X-Api-Key&quot;, &quot;&lt;myApiKey&gt;&quot;);
  
          var myEvents = await applicationInsightsDataClient.GetCustomEventsWithHttpMessagesAsync(search: &quot;LoginEvent&quot;, timespan: timeSpan);
  
          return new ApplicationInsightsFooDto[] { };
      }
  </code></pre>
  <p>The response current does not include CustomDimension as shown in image below:</p>
  <p><a href="https://i.stack.imgur.com/1KSDK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1KSDK.png" alt="enter image description here" /></a></p>
  <p>However if I directly make an api call I get customDimensions</p>
  <p>Example request:</p>
  <pre><code>GET https://api.applicationinsights.io/v1/apps/&lt;myAppId&gt;/events/customEvents?$search=LoginEvent&amp;timespan=PT1H HTTP/1.1
  User-Agent: Fiddler
  X-Api-Key: &lt;myApiKey&gt;
  </code></pre>
  <p>Example response:</p>
  <pre><code>{&quot;@odata.context&quot;:&quot;https://api.applicationinsights.io/v1/apps/&lt;myappId&gt;/events/$metadata#customEvents&quot;,
  &quot;@ai.messages&quot;:[{&quot;code&quot;:&quot;AddedLimitToQuery&quot;,&quot;message&quot;:&quot;The query was limited to 500 rows&quot;}],&quot;value&quot;: 
  [{&quot;id&quot;:&quot;...&quot;,&quot;count&quot;:1,&quot;type&quot;:&quot;customEvent&quot;,&quot;timestamp&quot;:&quot;...&quot;,
  &quot;customEvent&quot;:{&quot;name&quot;:&quot;LoginEvent&quot;},
  &quot;customDimensions&quot;:{&quot;AspNetCoreEnvironment&quot;:&quot;Development&quot;,&quot;DeveloperMode&quot;:&quot;true&quot;,&quot;UserId&quot;:&quot;...&quot;,&quot;...&quot;:&quot;...&quot;,&quot;UserName&quot;:&quot;Xyz&quot;,&quot;...&quot;:&quot;...&quot;,&quot;Company&quot;:&quot;N/A&quot;},&quot;customMeasurements&quot;:null,&quot;operation&quot;:{&quot;name&quot;:&quot;POST Account/Login&quot;,&quot;id&quot;:&quot;someData&quot;,&quot;p&quot;,&quot;syntheticSource&quot;:&quot;&quot;},...}}]}
  </code></pre>
  <p>Host: api.applicationinsights.io</p>
  <p>Any idea how I can fetch customDimension using C# sdk rather than building custom url and then making a request?</p>