Вопрос

We are about to convert or CRM report to CRM online report using fetchXML The report is based on CRM database and my custom database Is it possible convert fetchXML result into a temp table so i can join the temp table with other queries. thanks for all the help

Это было полезно?

Решение

I believe your best bet will be to create a CLR stored procedure that retrieves the data via or (or ) then stores it in a temp table (or any other table), which you'd then be able to join to your own tables. The obvious drawback is that you have to pull in all the data from your CRM data source before you can filter it via a join, but you might be able to be creative about this to prefilter your CRM data to just the data that's pertinent to your actual query.

There's at least one post on the MSDN Forums that addresses fairly well the process of registering the requisite CRM assemblies to your database fairly well, so that should help to give you a fair head start.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top