web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Auto Populate a column based on existing records on another Table

(0) ShareShare
ReportReport
Posted on by 5

Hi Guys, 
I have two tables, Slope_lookup and Roof.

slope_lookup has been pre-populated with data hence the name Lookup. 
It consists of 4 columns 
Column 1, Column 2, Column 3, and Column 4. which contains data provided by a governing body to help guide our operations.

On the roof Table, I collect Data for Columns 1,2, and 3 and need to populate column 4 accordingly. 
I am looking for a function that says if columns 1,2 and 3 are the same as that on Slope_lookup set the value of column 4 to the record value. any ideas?

I have the same question (0)
  • Simon001 Profile Picture
    5 on at
    RE: Auto Populate a column based on existing records on another Table

    Thanks @Bipin the space was the issue

    the flow is firing now

    pastedimage1667470922774v1.png

  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: Auto Populate a column based on existing records on another Table

    Hi,

    Space is missing after operator operator="eq" Value="xyz"

    Also,

    Condition attribute field name ends with underscore _ is this correct?

    en_si_orientation_

  • Simon001 Profile Picture
    5 on at
    RE: Auto Populate a column based on existing records on another Table

    Hi Leah here it is

    pastedimage1667462650088v1.png

    pastedimage1667462687003v2.png

  • Leah Ju Profile Picture
    Microsoft Employee on at
    RE: Auto Populate a column based on existing records on another Table

    Hi Simon001,

    Could you share code about your fetch xml query?

    You need to check that the xml query created is correct and does not contain special characters:

    https://d365demystified.com/2021/05/04/invalid-xml-issue-in-dataverse-connector-for-list-rows-action-fetch-xml-query-power-automate/ 

  • Simon001 Profile Picture
    5 on at
    RE: Auto Populate a column based on existing records on another Table

    Hi Leah, I have tried to recreate this flow, but it fails with an invalid XML error, can you help check if I've missed something?

    I have also tried to create the flow using just the filter query, but it runs successfully without pulling out the required record.
    pastedimage1667406144060v1.png

    [quote user="Simon001"]

    Hi Guys, 
    I have two tables, Slope_lookup and Roof.

    slope_lookup has been pre-populated with data hence the name Lookup. 
    It consists of 4 columns 
    Column 1, Column 2, Column 3, and Column 4. which contains data provided by a governing body to help guide our operations.

    On the roof Table, I collect Data for Columns 1,2, and 3 and need to populate column 4 accordingly. 
    I am looking for a function that says if columns 1,2 and 3 are the same as that on Slope_lookup set the value of column 4 to the record value. any ideas?

    [/quote]
  • Verified answer
    Leah Ju Profile Picture
    Microsoft Employee on at
    RE: Auto Populate a column based on existing records on another Table

    Hi Simon001,

    You can use power automate to create one flow:

    Then you can use 'list rows' action to retrieve records, then update records with 'Update a row' action:

    pastedimage1666777146265v1.png

    pastedimage1666777173761v2.png

    pastedimage1666777198420v3.png

  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: Auto Populate a column based on existing records on another Table

    Hi,

    You will write javascript to find record is slop_lookup based on 3 fields value

    learn.microsoft.com/.../retrievemultiplerecords

    Based on the result you will set the column 4 field

    Make sure you register your code on onchange of 3 fields.

    Make sure to clear the Column 4 field value when no match is found

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
DAnny3211 Profile Picture

DAnny3211 134

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 115

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans