Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Add blank/empty values to SSRS parameter that get value from Query that using Microsoft dynamics 365 Fetch XML

Posted on by Microsoft Employee

1563.Untitled.png

I'm trying to write a report For CRM Online in FetchXML. I want to use pre-filtering to force users to run the report from the Account form so the results are limited to one account because my database is quite large and if they use the Advanced Find  they are likely to break the report. 
So ,

Building DS uses a query which includes a pre-filtering parameter, '@AccountNo' &
Floor DS uses a query which includes a pre-filtering parameter, '@Building'  &

Room DS uses a query which includes a pre-filtering parameter, '@Floor'  and so on.

My Issue for example  if Floor not have any Room i need to add empty value to Room DS to get the result .

  • Suggested answer
    Darshik Profile Picture
    Darshik 295 on at
    RE: Add blank/empty values to SSRS parameter that get value from Query that using Microsoft dynamics 365 Fetch XML

    Hi Mina Tawdros,

    In Dataset Query define the parameter on the top of the Query.

    SET @startDate = COALESCE(@startDate,'1900-01-01')

    SET @endDate = COALESCE(@endDate,GETDATE(

    also in report parameter select option as pass null value in the parameter.

    Regards,

    Darshik

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans