Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Retrieving data from another entity using query expression CRM 2011

Posted on by Microsoft Employee

I have two entities , Assessment and Training. Assessment has an attribute assessor. Training has attributes training type(optionset) either assessor / reporter and person attribute

I want to retrieve records for training whose person equals to  assessor selected for assessment record when it is created. I want to know if we can use queryexpression to retrieve two different entities together.

*This post is locked for comments

  • EmployeeOcta Profile Picture
    EmployeeOcta on at
    RE: Retrieving data from another entity using query expression CRM 2011

    go through below link.

    msdn.microsoft.com/.../gg328149.aspx

  • Sreeekanth Profile Picture
    Sreeekanth 95 on at
    RE: Retrieving data from another entity using query expression CRM 2011

    HI Ashwini

    Can you explain in detail about how to Update Entity on Creation of another entity.

    I am new to the Dynamics CRM ,I have seen your code. But i did'd understand the code that you have written there.

    could you please help me to understand that code, it will be helpful for me.

    regards

    sreeekanth

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Retrieving data from another entity using query expression CRM 2011

    There is no relationship created, but we need to get the values dynamically and retrieve the records.

    In real time scenario the relation between them is that each training record will have a count of assessments created for the particular assessor.

  • EmployeeOcta Profile Picture
    EmployeeOcta on at
    RE: Retrieving data from another entity using query expression CRM 2011

    Can you write what is the relationship between these two entities.

    if you can bring the connectivity to these two entities then it's very easy to use queryexpression with linkentity.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans