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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Flow to count the number of open activities on a case

(0) ShareShare
ReportReport
Posted on by 54

Hi Guys

I'm a bit of a novice when it comes to designing flows - so any help would be greatly appreciated:

What I want to do is to have a tickbox\checkbox on a case that will be ticked if there are still any open activities for a Case. I'm assuming that I will need a flow designed that will count the number of open activities - and then if the sum total of that result is greater then zero, to have the checkbox ticked on the case? But I don't know how to write/design this.

Many thanks for your time.

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

    Hi,

    You can use roll-up and business rule.

    Set a roll-up field to calculate the count of open activity. The default update of roll-up is hourly.

    pastedimage1679377811703v1.png

    Then create a business rule.

    pastedimage1679377944215v2.png

    The logic are as follow.

    IF

    count of open activity greater than 0

    THEN
    Set Any open activities? to "Yes"
    ELSE IF

    count of open activity equals 0

    THEN
    Set Any open activities? to "No"

    pastedimage1679377988361v3.png

    Now this is the result.

    pastedimage1679378082836v4.png

    pastedimage1679378137772v5.png

    pastedimage1679378149611v6.png

  • MikeExeter Profile Picture
    54 on at

    Hi

    This is great! The only thing I can't find how to access the recurring system job to set the default as hourly - as it's not showing on the system jobs list for the case? Also when adding the 'count of open activities' rollup field, Power Apps is asking for the 'Format' and it's a required field - the options are Duration, Language Code, None and Time Zone??

    Please could you advise on the above - your help is greatly appreciated.

    Kind regards

    Mike

  • Verified answer
    Eiken Profile Picture
    on at

    HI,

    The logical name of case entity is incident. Please edit this system job

    pastedimage1679386420346v1.png

    pastedimage1679386545235v2.png

    pastedimage1679386581192v3.png

    And please choose none here when adding the roll-up field.

    pastedimage1679387088504v1.png

  • Verified answer
    Eiken Profile Picture
    on at

    Hi,

    Did my answer help you ?

    If yes, please don't forget to click Yes under "Did this answer your question?" to close this thread.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 74

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans