I'm a newbie in Dynamics 365. We are using Dynamics 365 CRM online version. I need to dump a couple of entities to our local SQL server.
I've found many examples, but not with the entire entity (including lookup columns).
What is not working for me in this (most relevant) sample:
I need a list of all columns (Do I really need to specify the complete column list in new Contact{}?)
Get lookup values in result instead of IDs (guids)
`var orgContext = new OrganizationServiceContext(service); // Retrieve the Contact records that we created previously. List<Contact> contacts = (from c in orgContext.CreateQuery<Contact>() where c.Address1_City == "New York" select new Contact { ContactId = c.ContactId, FirstName = c.FirstName, LastName = c.LastName }).ToList<Contact>(); Console.Write("Contacts retrieved, ");'