Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Answered

Copy a record from one column to another in the same row in Model-driven app and Dataverse

(0) ShareShare
ReportReport
Posted on by 19

Hi All,

 

I'd like to understand what are the different solutions to copy the record of a lookup column to another column in the same row, in a model-driven app or directly in Dataverse.
And which one would be the most efficient in my example below?

Let's use the below example.
I have an Account and a Contact table both related to the Enrollment table with a 1:N relationship.
When I create a new enrollment row, I would like to copy the record of Account and Contact to columns in the Enrollment table.

JosLand_0-1663405620472.png


The goal is to preserve the data recorded when the row is created, even if in the future the related Account or Contact info changes.

Thank you for your help

  • JosLand Profile Picture
    19 on at
    Re: Copy a record from one column to another in the same row in Model-driven app and Dataverse

    Hi @dpoggemann ,

     

    Thanks a lot for your reply.

    I see that for background workflows they recommend the use of Flow

    JosLand_0-1663418023235.png

    While for Real-time workflows they don't give this recommendation. Is it because there isn't yet an equivalent in Microsoft Flow?

    JosLand_1-1663418182867.png

     

    Thanks

     

  • Verified answer
    Drew Poggemann Profile Picture
    9,278 Most Valuable Professional on at
    Re: Copy a record from one column to another in the same row in Model-driven app and Dataverse

    Hi @JosLand ,

     

    The easiest way to do this is to create a classic real-time workflow that will be triggered on Create and maybe when the the Account or Contact field changes on the Enrollment table (I will explain this in a second).  

     

    Create the real time workflow (https://learn.microsoft.com/en-us/power-apps/maker/data-platform/overview-realtime-workflows

    1. Trigger on creation of the record for sure and the reason I was saying on the Account and Contact change is in case you can create the Enrollment record without these populated.  If you can add the Account and Contact later (for the first time) and you want to track these values, then you need to trigger on these field changes as well.
    2. Utilize If Logic in the workflow to check if the Account Copy column does not contain data and the Account field contains data then do an update step on the Enrollment table and set the Account Copy field
    3. Same thing as #2 with Contact

    This should do it.  

    Note:  You can also look at Auditing in Dataverse where you can audit a field and see the historical values anytime they change and who changed them where if this met your needs you would not need these additional fields.  https://learn.microsoft.com/en-us/power-platform/admin/manage-dataverse-auditing 

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Microsoft Dataverse

#1
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 19

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 15 Super User 2025 Season 1

Overall leaderboard

Featured topics