web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

D365 LINQ query does not retrieve related records

(1) ShareShare
ReportReport
Posted on by 655

Hi all,

I have old legacy code that works perfectly with Dynamics 2011.  The query retrieves a contact record and when i inspect the variable it returns all related records.

0310.success.png

Now same code, i've upgraded it to work with D365 and it returns NULL.  Data is there, I've checked.  It should be getting related records but it's not.

fail.PNG

WHY?? I've been trying to figure this out for the last week.

This is what i've done:

1.  Upgraded SDK Dlls to latest

2.  Modified connection to use 'CrmServiceClient'.  I can CRUD.

3.  Regenerated early bound classes to work with 365.

4.  Used different users in the connection string (admins) 

Any other ideas?  

I have the same question (0)
  • Suggested answer
    SavvyLuke Profile Picture
    655 on at

    With help the answer is it's DISABLED by default

    futurezconsulting.com/.../

    So you must do it manually

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans