Skip to main content
Community site session details

Community site session details

Session Id : LGTpauIpcqFdfpvgjh8GFJ
Power Apps - Microsoft Dataverse
Unanswered

Assign new record to a team automatically

Like (0) ShareShare
ReportReport
Posted on 26 Aug 2021 18:35:33 by

Hello

I am using a Canvas app connected to a table in the Dataverse.

When my users add new records, the Owner field shows their name.

I'd like the Owner field to be a team. The goal is that if people change from a business unit to another, the records stay in a team.

I know there are Owner/Access/AAD/O365 teams that exist but I'm not sure how this fits with my requirements.

Any help is appreciated! Thanks!

Categories:
  • Prakash4691 Profile Picture
    1,332 on 26 Aug 2021 at 23:07:47
    Re: Assign new record to a team automatically

    @Anonymous ,

     

    In power automate use list rows action of dataverse for Teams table. Generate fetch xml from advanced find. Attached screenshot below.

     

    Remove uiname, uitype and in value pass dynamic "Owning User (Value)" is nothing but unique identifier which you get from trigger stage of the flow(create of record). Set Row count to 1 in list rows action, hoping user belongs to one team. If not loop and get the required team.

     

    In select columns include team id and add another action to update owner of the record.

     

    If you are not familiar with using fetch xml in power automate. Please find below link

    https://carldesouza.com/use-fetchxml-the-in-power-automate-cds-connector-for-list-records/

     

    Prakash4691_0-1630019144609.png

     

    If it answers your question, please mark it as solution.

     

     

    Regards,

    Prakash

  • Community Power Platform Member Profile Picture
    on 26 Aug 2021 at 22:38:55
    Re: Assign new record to a team automatically

    Let's say User A is part of Team A, then I want the Flow to change the ownership of the record to Team A.

    If User B, who is part of Team B adds a record, then the Flow would have have to change the ownership of the record to Team B.

    In other word, it should be able to detect the Team the user is in and change the ownership of the record to that Team right away.

  • Prakash4691 Profile Picture
    1,332 on 26 Aug 2021 at 22:36:04
    Re: Assign new record to a team automatically

    @Anonymous ,

     

    Do you want to find user's team or want to associate user to a team?

  • Community Power Platform Member Profile Picture
    on 26 Aug 2021 at 22:24:15
    Re: Assign new record to a team automatically

    Sure but I would need the flow to be able to determine that User X belongs in Team X dynamically. How can I do that?

  • Prakash4691 Profile Picture
    1,332 on 26 Aug 2021 at 22:11:31
    Re: Assign new record to a team automatically

    @Anonymous ,

     

    Using power automate create automatic flow, that triggers when new record gets created. Update owner to a team.

     

    Even if user moves from one business unit to another still that record belongs to team not to a user. Whoever part of that team will have access to that record based on security role.

     

    If it answers your question, give kudo and mark it as solution.

     

     

    Regards,

    Prakash

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Featured topics