Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Answered

Display column from related table on Form

(0) ShareShare
ReportReport
Posted on by 2,312 Super User 2025 Season 1

I have 2 Dataverse Tables. 

 

Requests

 - Request Name (Text)

- Request Type (Lookup)

 

Request Types

 - Request Type Name (Text)

-  Request Description (Text)

 

Do you know a way I can display the Request Definition field (From Requests Type table) to show on the Requests Form. 

 

Here is a mocked up screen to show what I want.

365Assist_0-1642476904471.png

 

Categories:
  • Ram Prakash Profile Picture
    5,179 Super User 2025 Season 1 on at
    Re: Display column from related table on Form

    Hello @dpoggemann 

     

    Alteration done ✅

  • Drew Poggemann Profile Picture
    9,278 Most Valuable Professional on at
    Re: Display column from related table on Form

    Hi @rampprakash ,

     

    It is actually Quick View vs. Quick Create 😀.  Microsoft and their names... 

  • Ram Prakash Profile Picture
    5,179 Super User 2025 Season 1 on at
    Re: Display column from related table on Form

    Hello @dpoggemann,

     

    Yes you are perfectly correct 🙂

     

    @365-Assist : You can use quick view form to display data without script. if you want to retrive value from script you can use below code

     

    https://powerusers.microsoft.com/t5/Power-Apps-Community-Blog/Retrieve-Quick-View-Value-using-JavaScript-in-Dataverse/ba-p/1391689

     

     

  • Verified answer
    Drew Poggemann Profile Picture
    9,278 Most Valuable Professional on at
    Re: Display column from related table on Form

    Hi @365-Assist ,

     

    Since the Requests table has a lookup column to the Request Types table you can utilize a Quick View Form to display any columns from the Request Types table on the Requests form.  Please see the following for details:  https://docs.microsoft.com/en-us/powerapps/maker/model-driven-apps/create-edit-quick-view-forms 

     

  • Ram Prakash Profile Picture
    5,179 Super User 2025 Season 1 on at
    Re: Display column from related table on Form

    Hello @365-Assist,

     

    You need to use Custom JavaScript to achieve this type of Behavior

     

     

    function getDescriptionField(executionContext){
    var formContext = executionContext.getFormContext();
    Xrm.WebApi.online.retrieveRecord("REQUEST ENTITY TYPE LOGICALNAME", formContext.getAttribute("REQUEST TYPE FIELD LOGICALANME").getValue().replace("{","").replace("}",""), "?$select=REQUEST DESCRIPTION FILD LOGICALNAME").then(
     function success(result) {
     formContext.getAttribute("DESTINATION ENTITY FIELD LOGICAL NAME").setValue(result["REQUEST DESCRIPTION FILD LOGICALNAME"]);
     },
     function(error) {
     Xrm.Utility.alertDialog(error.message);
     }
    );
    
    }

     

     

     

    As we are using inside Form it will be good to go with Async Call.

     

    You need to write this Script in OnChange Request Type Field.

     

    My Youtube Video for Step by Step behavior on how to Write JS : https://www.youtube.com/watch?v=x8kYNCkikgs&t=14s

     

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

     

     

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