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 :
Customer experience | Sales, Customer Insights,...
Answered

Create Dashboard or Search query for cases with no open tasks

(0) ShareShare
ReportReport
Posted on by 15

Hi, 

I want to be able to retrieve cases which are assigned to specific user and have no uncompleted or open tasks? 

Ideally this would be a dashboard but having tried there and the advanced find I think im more likely to have success on advanced find but every time i test a search it doesnt work. 

Appreciate any help you can provide. 

Thanks, 

Mortoncj

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Hi Mortoncj,

    I have used below screenshot for query case with not open activity, but it still bring up cases with tasks that open, and cases without any tasks can't be returned.

    pastedimage1628742518883v1.png

    For example, case-qw1 has two tasks, one is open, another is completed, it has been returned with above query.

    pastedimage1628742933735v2.png

    Maybe you can do two steps to achieve it indirectly.

    (1)Query all cases that are assigned to specific user.

    pastedimage1628743452641v4.png

    (2)Query all cases that are assigned to specific user and related task is open.

    pastedimage1628743333461v3.png

    So qw3 and qw4 are cases you want.

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Mortoncj,

    Or you can download Sql 4ds tool of XrmToolBox to use sql to query it.

    SQL 4 CDS  Â· XrmToolBox

    pastedimage1628750714800v1.png

    SELECT   DISTINCT e.title,
                      e.owneridname
    FROM     incident AS e
    WHERE    e.ownerid = '73988725-b8a1-eb11-b1ac-002248045db0'
             AND (NOT EXISTS (SELECT *
                              FROM   incident
                                     INNER JOIN
                                     task AS aa
                                     ON incident.incidentid = aa.regardingobjectid
                              WHERE  aa.statecode = 0
                                     AND title = e.title))
    ORDER BY e.title ASC;
    

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Community Member Profile Picture
    on at

    Hi Partner,

    Please click Yes under "Did this answer your question?" to close this thread if the answer is helpful.

     pastedimage1628818036684v1.png

    Thanks. 

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 120 Super User 2026 Season 1

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 46 Most Valuable Professional

#3
NeerajPawar Profile Picture

NeerajPawar 41

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans