title: Get display name for logical name
body: <p>I have list of logical names for an entity for which I need to retreive the displayname.</p>
  
  <p>For eg I have </p>
  
  <pre><code>List&lt;string&gt; _list=new List&lt;string&gt;();
  _list.Add("address_City")
  _list.Add("first_name")
  </code></pre>
  
  <p>The display names for them are <strong>Address City</strong> and <strong>First Name</strong></p>
  
  <pre><code>RetrieveEntityRequest req = new RetrieveEntityRequest();
  req.RetrieveAsIfPublished = true;
  req.LogicalName = "account";
  req.EntityFilters = EntityFilters.Attributes;
  
  RetrieveEntityResponse resp = (RetrieveEntityResponse)_orgService.Execute(req);
  
  for (int iCnt = 0; iCnt &lt; resp.EntityMetadata.Attributes.ToList().Count; iCnt++)
  {
      if(resp.EntityMetadata.Attributes.ToList()[iCnt].DisplayName.LocalizedLabels.Count&gt;0)
      {
          string displayName = resp.EntityMetadata.Attributes.ToList()[iCnt].DisplayName.LocalizedLabels[0].Label;
          string logicalName = resp.EntityMetadata.Attributes.ToList()[iCnt].LogicalName;
  
      }
  }
  </code></pre>
  
  <p>This code retrieves all the record .Is there a way to create some custom query where I can just pass this <code>List&lt;string&gt;</code> and retrieve there display names?</p>