Re: Remove duplicates in subgrid or custom view
@pallavigade ,
the data in the subgrid (well, in every list) is the data from the dataverse. So, when the records are doubled it means, that you have them twice in the table (with diffrent guids).
Usually i highly recommend to avoid that kind of scenarios in the data as nobody will be able to distinguish between the right and wrong entry. So, this would mean that this is a problem of the business process within the crm/dataverse and should be revisited/clarified.
You could get this also by for example selecting the names and ids from a salesorderdetail and show the information about the salesorder (or whatever master-detail relation you have). In this case think about showing the data from the master table and not from the details table.
You could try to add a "distinct" option in the fetch (i think, this is not possible by standard custimizing, but not sure). But this only helps, if the resultentries are really the same.
If all else fails you could consider rendering the data on your own by for example creating a pcf for that (did not explore this option, just thought about it 🙂 ) or by creating a custom pagetemplate which renders things lik,me you want.
So, no real answer, may be you post a little bit more about the challenge 🙂
A happy new year to you,
Christian