Skip to main content

Notifications

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

How to add a column from another table to a view in another table (and with correct mapping of values)

Posted on by

Right now I have two entities, let's say Entity A and Entity B.

I want to create a new column in Entity B with the values from an existing column in Entity A (a lookup field?), mapped by a common unique id column that both Entity A and Entity B have.

For example:

If Entity A contains a columnA that has unique IDs, and a columnB that has any random values.

And Entity B contains a columnC that has the same unique IDs as columnA.

I want to create a new columnD in Entity B that is a lookup to columnB from Entity A, using columnA and columnC as the mapping keys.

This seems like a very straightforward thing but I can't figure out how to do it and I could not find any answers online.

In SQL it would be a basic JOIN command to do this but I need to know how to do this on dynamics make.powerapps

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to add a column from another table to a view in another table (and with correct mapping of values)

    Hi JYSSB7,

    This would also update columns in the view. Actually, it would change the value of columns on the Server and both views and forms get these columns' value from Server.

    If the columns aren't updated in the view, please refresh your bowser to have a try.(Clear the cache would be better)

  • JYSSB7 Profile Picture
    JYSSB7 on at
    RE: How to add a column from another table to a view in another table (and with correct mapping of values)

    I'm following the link you sent and it seems to only be able to update the Form, I'd like to update the columns in a View, is this possible?

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to add a column from another table to a view in another table (and with correct mapping of values)

    Hi JYSSB7,

    No, it would keep working until you deactivate it or delete it. When you trick record is created, it would map that value to your Entity B when you create new Entity B record.

    pastedimage1650426350898v1.png

  • JYSSB7 Profile Picture
    JYSSB7 on at
    RE: How to add a column from another table to a view in another table (and with correct mapping of values)

    It seems to me this is a one time thing that copies all the existing data, correct? Meaning new entries created in the future won't get copied automatically to the view, correct?

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to add a column from another table to a view in another table (and with correct mapping of values)

    Hi JYSSB7,

    Which app are you using, Sales Hub or something else? If you are using model-driven app, I think this is easy to achieve. You could add a Lookup field on Entity B which is related to Entity A. And then you could create a workflow to map the value of columnB from Entity A to the columnD on the Entity B. Something like this blog: Dynamics CRM Workflow: Mapping Data Between Fields - Ledgeview Partners

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans