N:1 custon related entitiy retrieval

Posted on 2009-04-30
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
Question by:jedibozz
    LVL 11

    Accepted Solution

    This link will be really helpful to you.Solution is  for crm 3.0  but query expression works in same way.

    Rakesh Agarwal
    LVL 11

    Assisted Solution

    also in the catch  before main exception

    // your code
    catch (System.Web.Services.Protocols.SoapException ex)
                    string errorMessage = ex.Message.ToString();
                    //Handle the error
    catch (Exception ex1)
                    //Handle the error

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    This is a walkthrough guide I wrote whilst upgrading my on-premise MS Dynamics CRM 3.0 deployment to 4.0. This covers the actual installation of the product to a working level for my system, I ran into a lot of issues that the steps below fixed so h…
    On Sep 22nd 2014 Microsoft released Update Rollup 1 for Microsoft Dynamics CRM 2013 Service Pack 1 and back in July Update Rollup 3 was released.  So we now have:   Update Rollup 1Update Rollup 2Update Rollup 3Service Pack 1Update Rollup 1 for S…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now