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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dynamic Report Does not work

(0) ShareShare
ReportReport
Posted on by 458

Hi there all experts.
I have created a custom entity named new_serviceds.
It has  N:1 relation with quote and sales order, which means every quote can has an number of new_serviceds records,so sales order can have.
I have created a report based on the filteredview.
When I try the record without filteredview in the MS SQL server it works fine and return the result set.
It is the query without filteredview :

 select new_serviceds.new_service_name, new_serviceds.new_estimated_day,
 new_serviceds.new_estimated_amt from new_serviceds
 inner join SalesOrder on (salesorder.QuoteId=new_serviceds.new_arvand_service_to_quoteId)
 where salesorder.SalesOrderId='xxxx-xxxxx-xxxxx-xxxxxx-xxxx';


the query works fine in sql server query.
I wanna run this report in the sales order record, in each record it returns me the result set.
Here is with the filtered view  :

 select  Filterednew_serviceds.new_service_name, 
 Filterednew_serviceds.new_estimated_amt, Filterednew_serviceds.new_estimated_day 
 from filterednew_serviceds
  inner join filteredsalesorder on
   (Filterednew_serviceds.new_service_to_quoteId = filteredsalesorder.QuoteId)
  where Filteredsalesorder.SalesOrderId = (@CRM_SalesOrderId) ;

And here is the query that returns CRM_SalesOrderId :

SELECT  salesorderid
FROM   FilteredSalesOrder AS CRMAF_SalesOrderId;



But with out the filtered view in the sql server management, the query return result.
Where I am doing wrong?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    gupta.ambar2009@gmail.com Profile Picture
    797 on at

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans