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 / Updating a field from ...
Power Automate
Unanswered

Updating a field from another table in dataverse

(0) ShareShare
ReportReport
Posted on by 20

I have a  dataverse table called "Teams", each row within the table has a column called teamid that contains a unique value, and teamstatus which has a a choice value. In a related PowerApp, I can update the teamstatus to change the selected choice.

 

I have another dataverse table called "Members",  each row is a member within a team and there can be multiple members within the same team. There is also a column called teamid and team status in the members table. I need to update the rows in "Members" so that the team status is updated to match the status in "Teams", using the teamid as the foreign key.

 

I have looked into creating a relationship between the two fields in dataverse, but it doesn't appear to be an option. I think I need to create a powerautomate flow that lists the rows in Teams where the team status is not null, and update the team status in the users table with apply to each to go through the records. I'm getting as far as listing the records, but am a bit stumped on the next step.

 

Is this possible and if so, please could someone point me in the right direction? I've had to replace the names of the tables, as they are linkable to my work.

 

Thanks in advance, 
Andy

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,325 Super User 2025 Season 2 on at

    Hi,

     

    You can certainly use a flow, but I am perplexed, can you please share exactly what the UI says when you try to create the relationship? It sounds like a very simple 1:M, because yes, you should just create the 1:M relationship and get the status directly from Teams. I wouldn't do any of this work below, but I'd need to know why you cannot create it to help with that part. So instead I will answer (as well)

     

    I would like to make a suggestion:

    A) I can answer as you asked (for your pseudo design)

    B) You can also do a Trigger on the Teams table. When the Status changes, it triggers and you update the Members table. Now you may need to do A) first to "catch up and then B) teh rest of the time

     

    Option A:

    Trigger: Reoccurring

    Step 1: Use List Rows and set the filter of columns to the TeamId and TeamStatus columns (no sense pulling back the rest)

     

    Step 2: Apply to Each, with an INPUT of the Dynamic Property called "value" from the Step 1 List action

    Step 3. Now you said you want to Update the Team status, so you need a List Rows, against the Members table, and filter on the TeamId that you get from the Apply to Each (value) property

    It seems like you will get 1:M rows back.

     

    Step 4: Add an Update a row Action (dataverse)

    Use the Row Id from the second Apply to Each(for members)

    and use the Status from the Teams (Apply to Each)

     

    Option B:

    Is exactly like A excely that instead of you doing a List Rows and an Apply to each YOU TAKE THOSE OUT and Step 3 above becomes Step 1, since you have the TeamId and TeamStatus from the Trigger properties.

     

    Step 4 (option A) is now Step 2

    And done


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Arcallah Profile Picture
    20 on at

    Thanks very much, I've not been able to look at this yet due to other priorities but will let you know when I've been able to have a look.

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard