Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Regular email with unassigned cases count

Posted on by 3,962

Hey,

 

We are trying to create a flow that will query and count all cases assigned to a specific user and then email the number of cases currently assigned to said user - every 30min (if statement to not send the email if count is 0 will be created later).

 

I'm assuming its a scheduled flow. We have this and then an action to list cases from dynamics.

Here we get stuck. How do we convert the queried data to a simple number/variable to use for the if/email?

 

We are new to Flow and are learning quickly (our developer had custom workflows, but has since left the company and we are trying to migrate it all to Flows.)

 

Thanks in advance.

  • RE: Regular email with unassigned cases count

    Thanks a bunch, didn't even know about compose. Just went through and replaced tons of variables in my other flows as well!

  • Suggested answer
    Linn Zaw Win Profile Picture
    Linn Zaw Win 3,405 on at
    RE: Regular email with unassigned cases count

    You can use the expression to count the number of the records

    length(body('List_records')?['value'])

    pastedimage1591871062910v2.png

  • RE: Regular email with unassigned cases count

    Hey,

     

    Thank you for the info, but this is specific for our dynamics environment.

    In short, we have all autogenerated cases auto-assign to the "Support Queue" team as owner.

     

    What we need is an email every 30m that just reminds users to check the queue if it's not empty and show the count of cases assigned to "Support Queue".

     

    I thought this should be quite easy to achieve with flow, but I'm struggling to find a way to filter and count cases that are assigned to "Support Queue" and then dump it into an email body.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Regular email with unassigned cases count
    [deleted]
  • RE: Regular email with unassigned cases count

    bump

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans