Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

how to query crm data model and orm/xrm pattern?

$
0
0

Hello - I've been assigned to take a look at a custom report that was written against the CRM database. This report is built piece-by-piece against an object model of the database.  When I right-click and go to metadata I see the following namespace: MyCompany.CRM.Common.Xrm.PhoneCall.

I think Xrm provides an API to use against the CRM data model. I have a background in other ORM's like Linq-to-SQL and Entity Framework. These tools create a linked object model based on FK references to 1-to-N tables and N-to-N tables.

The custom report I'm looking at has an ORM reference of PhoneCall.Campaign_Phonecalls. However, I'm not sure how this reference is established.  For example, I can't find a Campaign_Phonecalls table in the database. Can you explain the pattern I should use to find associated Campaign-PhoneCalls directly through SQL Server? 


Viewing all articles
Browse latest Browse all 82002

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>