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 / Virtual Table Custom D...
Power Apps
Unanswered

Virtual Table Custom Data Provider Related record subgrid filtering

(1) ShareShare
ReportReport
Posted on by 4

Hi,

 

So I have implemented a Custom Data Provider for a Virtual Table and all is working up until I've started to implement filtering in the RetrieveMultiple plugin to handle quick find etc. On the virtual table I have created a lookup to a standard Dataverse table, the data provider stores this guid as a string so when I return records I simply populate the row and as an entity reference and it shows up in the standard grid as expected, all good. The problem comes when I add a subgrid on the standard entity to show the related records from the virtual table, the query that comes from the UI has a weird filter, it has the lookup field in the condition but it always comes through as "fieldname not null" rather that "{fieldname} eq {guid}"!

If I open the dev tools I can see the fetchxml in the network trace and it correctly has the filter, but in my plugin I output the query in the inputparameters and it's different, my understanding suggests the fetchxml I see is what would appear in stage 20, but then when the data provider runs in stage 30 (Core Operation) this is already converted so I should see that represented correctly in the QueryExpression.

I have made sure that all the search fields are correctly defined with in the quick find view which made no difference so I am stumped, I am sure it should work as I've used the provided SQL Data Provider for virtual tables previously and when doing the same thing that works just fine and correctly filters the subgrid based on the selected related record.

Any thoughts greatly appreciated.

I have the same question (0)
  • MichaelFP Profile Picture
    1,991 Moderator on at

    @mrmwinkwtw  you store the guid as string and apply in your plugin or you have this field as a lookup with the table in dataverse?

  • mrmwinkwtw Profile Picture
    4 on at

    Hi,

     

    The subgrid is using "show related records" which only works with tables that are linked using a relationship, so yes the virtual table column is the defined id column.....but I am not explicitly setting the fully qualified name as a separate attribute, I am doing
    {

    "id" : "00000000-1111-2222-3333-444444444444"
    }

    but I will try by setting the field id also

     

    {

    "id" : "00000000-1111-2222-3333-444444444444",

    "new_fullnameoffieldid" : "00000000-1111-2222-3333-444444444444"

    }

     

    Is that what you meant?

     

    Mike

  • mrmwinkwtw Profile Picture
    4 on at

    That didn't make any difference, but everything in Dataverse is lookups

  • MichaelFP Profile Picture
    1,991 Moderator on at

    My question is. Are you create a lookup for the relation ship or are you using a GUID as text field?

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
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard