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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Auto create cases for ...
Power Automate
Answered

Auto create cases for child accounts when a case was created for their parent account

(0) ShareShare
ReportReport
Posted on by 8

Hello.

I am trying to build an automated flow and I need some help on how to construct this flow. Here is the scenario:

 

A case is created in Dataverse. If the account has children accounts (where the Parent Account field is populated with the account who had a case created), then the flow will automatically create a case (with the matching fields populated Eg. customer, case type, year) for each child account.

 

Any assistance you can provide would be greatly appreciated.

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @SK12,

     

    You can use a List rows with a filter rows query to find the matching child accounts of the customer. After that you can use an apply to each to add a new row in the cases table for each child account.

     

    Below is an example

     

    Filter rows

    _parentaccountid_value eq '@{triggerOutputs()?['body/_customerid_value']}'

     

    parentaccountvalue.png 

  • SK-29040614-0 Profile Picture
    8 on at

    Thank you @Expiscornovus 

    This is great. I can't believe it's this simple 😀

     

    Couple of questions:

    1. Should I include a condition that if the length of list of rows is not null/0, then Apply to each?
    2. In the trigger, under filter, can I add a condition where case type eq "requests"? (so that it only looks at cases with that type of condition)
    3. Under Customer (Accounts), what was the dynamic Account item that you had selected?
  • Verified answer
    Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @SK12,

     

    1. If it hasn't found any matches (if the account has no child accounts) it will simply skip the add new row action within the apply to each. No need to add that condition action.

     

    skipped_addnewrow.png

     

    2. You can use the casetypecode attribute for this. 3 should be the Request label.

    casetypecode eq 3

     

    cases_request.png

     

    3. I used the unique identifier of the account from the List rows action.

    /accounts/@{items('Apply_to_each')?['accountid']}

     

    uniqueidentifieraccount.png

     

     

  • SK-29040614-0 Profile Picture
    8 on at

    Thank you @Expiscornovus 

    I've created the flow and it works correctly.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard