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 Apps / Autopopulate lookup co...
Power Apps
Unanswered

Autopopulate lookup column based on another lookup column

(0) ShareShare
ReportReport
Posted on by 232

Hi all,

 

In my dataverse I have Organisations, applications and buildings.

One organisation can have many applications. One application can have many buildings. 

 

On my building table i have two columns that are lookups looking at applications and organisations.

 

When creating a new building row, how can i make the organisation lookup field automatically populate based on the application that is linked to it? 

I think it is possible to do with relationships but I'm not sure which relationship i have to change between each of the tables.

 

I'm using a model driven app to present my data.

Thanks.

 

I have the same question (0)
  • steeevid Profile Picture
    323 Super User 2024 Season 1 on at

    I did this with power automate.

     

    Cons: it takes 1min to populate 10 items

     

    Stevieed_0-1684413827321.png

     

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @MD7 ,

     

    There are couple of approach:

    1) You can do this using JavaScript when creating building on the Form. (Its faster and quick on the Form)

    2) You can use Plugins when creating and saving the Building. (This is still better considering if you Import Records using Excel, CSV or Power Automate) 

    3) Power Automate Flows are async actions that won't notify the Users in Real-Time. Also, if connection breaks then your process might break but still a decent method.

    4) I'm not sure with this one, but you can use Field Mapping that can pass the value from 1 table to another as long as it is linked or created from Application form itself.

     

    Hope this helps

  • md7 Profile Picture
    232 on at

    Thanks for all of your answers. I'm not too sure on how to do the javascript or what plugsin to use so have opted for the power automate flow which @Stevieed mentioned. It seems to work fine, albeit a bit slow. 

  • md7 Profile Picture
    232 on at

    @Ethan_R @Stevieed 

    Is it possible to filter the list rows action to speed things up?

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @MD7 ,

     

    You can do the following to make it little faster:

    1. Use appropriate fetchXML (proper connection of tables) with only those attributes that you want. (Reason is, collecting many unwanted fields might result in delay for get entire row)

    2. If you don't need additional column then you list all necessary fields in 'Select Columns' parameter on Trigger or 'Get row by ID' if used.

     

    Hope this improves the execution up to some extent.

  • steeevid Profile Picture
    323 Super User 2024 Season 1 on at

    Just use filter row in the list row action

  • md7 Profile Picture
    232 on at

    For some reason it is picking the wrong organisation.

    Here's my building:

    MD7_2-1685011095120.png

     

    Here is my application.

    MD7_1-1685011021057.png

     

    The building organisation should be the same as the application project owner.

    I think i need to use the filter rows field in the flow but unsure what to put. 

     

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @MD7 ,

     

    How is the FetchXML configured?

    I think Project Owner also has other records and the last record's Organization is been set in your Buildings record.

    Check the Flow history, where it has captured total number of records from 'Applications' table. 

     

    Let me know 

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard