N:1 custon related entitiy retrieval

N:1 relationships between custom entities
Could we get an example (in c#preferrably) of retrieving a list of custom entities that have a N:1 relationship to another custom entity.  The criteria would only be the parent entity guid.
We know the metadata name of the custom entity, therefore it does not need to use DynamicEntities.
 
I have tried a RetrieveMultipleRequest using a QueryExpression with one LinkEntity defined but am getting "Server was unable to process request" errors.
Tried to follow the example of N:N from http://blogs.javista.com/2008/02/17/crm-40-relationships-explained-many-to-many/
 
 
Larry TrimbleAsked:
Who is Participating?
 
rakeshAgarwalCommented:
Hi
This link will be really helpful to you.Solution is  for crm 3.0  but query expression works in same way.

http://stunnware.com/crm2/topic.aspx?id=FindingData3

Regards
Rakesh Agarwal
0
 
rakeshAgarwalCommented:
also in the catch  before main exception

try
{
// your code
}
catch (System.Web.Services.Protocols.SoapException ex)
            {
                string errorMessage = ex.Message.ToString();
                //Handle the error
            }
catch (Exception ex1)
            {
           
                //Handle the error
            }
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.