Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 release wave 1 Discover the latest updates and new features to Dynamics 365 planned through September 2020
Release overview guides and videos Release Plan | Preview 2020 Release Wave 1 Timeline
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
Hello. I am administering a CRM 4.0 system. I have been running a number of SQL queries in SQL Server on the <my_org>_MSCRM database. The case (incident) entity has a lookup field which is linked to a custom entity called Town. There are a number of case records that have been created by end users with the Town field filled in. Using SQL queries on the CRM database server, I have been trying to retrieve the Town value (as it would appear in the end user's case when opened in CRM). The closest I have got is retrieving the GUID values for the Town field using IncidentExtensionBase.new_townid. I could not find a field which gives the Town name. Using an SQL query how could one retrieve the Town name?
Are you getting any error ? If you try to retrieve directly data from Town entity , did you get the data?
Try to retrieve from town and in the Town entity you will find incident id by which you will get the the IncidentExtensionBase data. So just do reverse process .
you should have a look at the "FilteredIncident" View. There should be a field like new_townidname.
Here is a good read about filtered views: community.dynamics.com/.../crm-2015-why-filtered-views-are-useful
Otherwise you could use the townid to join on the new_townbase table in your query if you want the "raw" data.
Each lookup is tied up with an entity and each entity has its won table. So you need to find the table for Town entity and then select the name from that table by passing the town id.
Please query on FilteredTown view based on townid
Business Applications communities