title: Find dependencies for Dynamics CRM entity's attribute
body: <p>I'm struggling to find dependencies for CRM entity attribute from C# code, but I cannot find the right way.</p>
  
  <p>The code like this:</p>
  
  <pre><code>var attributeRequest = new RetrieveAttributeRequest
  {
      EntityLogicalName = "invoice",
      LogicalName = "billto_city"
  };
  
  var attributeResponse = (RetrieveAttributeResponse)proxy.Execute(attributeRequest);
  
  var dependenciesRequest = new RetrieveDependenciesForDeleteRequest
  {
      ObjectId = (Guid)attributeResponse.AttributeMetadata.MetadataId,
      ComponentType = (int)attributeResponse.AttributeMetadata.AttributeType
  };
  
  var dependenciesResponse = (RetrieveDependenciesForDeleteResponse)proxy.Execute(dependenciesRequest);
  </code></pre>
  
  <p>Gives negative result. I suppose it's incorrect to use attribute <code>MetadataId</code> as <code>ObjectId</code>. But it seems it is impossible to find out <code>ObjectId</code> for attribute.</p>
  
  <p>Does anybody faced with similar task before? How did you solve it?</p>