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

Announcements

No record found.

News and Announcements icon
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)
  • Suggested answer
    Bipin D365 Profile Picture
    28,985 Moderator on at

    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

  • Verified answer
    Leah Ju Profile Picture
    Microsoft Employee on at

    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

  • Simon001 Profile Picture
    5 on at

    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]
  • Leah Ju Profile Picture
    Microsoft Employee on at

    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

    Hi Leah here it is

    pastedimage1667462650088v1.png

    pastedimage1667462687003v2.png

  • Suggested answer
    Bipin D365 Profile Picture
    28,985 Moderator on at

    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

    Thanks @Bipin the space was the issue

    the flow is firing now

    pastedimage1667470922774v1.png

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 192 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 129

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans