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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Pre-populate Subgrid o...
Power Apps
Answered

Pre-populate Subgrid on Main Form with Values From a Lookup Table

(0) ShareShare
ReportReport
Posted on by 156

Hi all,

 

I have a Service lookup table that contains a list of services that can have an status of Active or Inactive.

 

Every day the user needs to enter a tally for each of the active services. On my main form (based on separate master-child tables), the customer will enter a date and save the record; at this point a subgrid shows up and I'm running a Power Automate process on Create Record to retrieve all the Active Services from the lookup table and pre-populate the subgrid.

 

The power automate process works as expected, however I'm trying to find a better solution to accomplish the same. Right now, there is no visual indication for the user to know that there is a process running in the background and when it's done. The user has to get out and reopen or refresh the record to see the data on the subgrid and sometimes the data is incomplete because the process is still running but the user doesn’t know that.

 

I found a few samples on the web using the subgrid FetchXML with JavaScript but, from what I understand this is currently not supported.

 

Anyone has an idea on how to improve this process? I'm new to Power Platform so any suggestion is more than welcome.

 

Thank you,

 

Erick

I have the same question (0)
  • Verified answer
    Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @ErickDiaz,

     

    I have done this exact approach a number of times and the flow works great to create the records but the async nature of the flow does not help with the UI experience as you mentioned.

     

    What I have done with a number of customers is actually create a real time workflow instead to go through and create the child records for the parent.  If you do through a real time workflow (https://docs.microsoft.com/en-us/powerapps/maker/data-platform/overview-realtime-workflows) it will show up immediately after complete without needing to refresh the screen (although you need to wait until it completes since it is synchronous vs. asynchronous).  Depending on your entities you might need to write a custom workflow action to go and find the records you need or information you need to create the child records, this will depend on your system...  

     

    Hope this helps, worked for me a number of times and much better user experience.

     

    Thanks,

     

    Drew

  • ErickDiaz Profile Picture
    156 on at

    Hi Drew,

     

    That's great, I'm relatively new to Power Platform and didn't know about real-time workflows.


    It looks like this is exactly what I need, thank you very much for your help!


    Best,

     

    Erick

  • ErickDiaz Profile Picture
    156 on at

    Hi @dpoggemann,

     

    Do you happen to have an example or an article showing how to loop through a Service lookup table inside the workflow to get all the active services GUID so I can assign them to the Daily Service table where the users will enter the tally?

     

    Any help is appreciated!

     

    Thank you,

     

    Erick

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 Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard