?
Solved

N:1 custon related entitiy retrieval

Posted on 2009-04-30
2
Medium Priority
?
376 Views
Last Modified: 2012-05-07
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/
 
 
0
Comment
Question by:Larry Trimble
  • 2
2 Comments
 
LVL 11

Accepted Solution

by:
rakeshAgarwal earned 375 total points
ID: 24277125
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
 
LVL 11

Assisted Solution

by:rakeshAgarwal
rakeshAgarwal earned 375 total points
ID: 24277184
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

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part I
Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part II
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question