Hi Everyone,
I'm really struggling with pulling data across a relationship in a canvas app and am hoping someone can help me.
I have two tables (at least just the two right now) - Approval and Placement. In the Approval Field is a columns labelled 'Regarding' which appears to have multiple relationships across multiple tables - including the Placement table. Following a video from PowerApps911 here:
Canvas Apps: CDS Gallery Items, Related Entities, Formatting Currency. - YouTube
My first thought was to look for the field in the field list, but the 'Regarding' field isn't list and nor are any of the fields in the related table. After doing some digging in the community I came across a similar post that led me here:
Understand record references and polymorphic lookups in canvas apps - Power Apps | Microsoft Docs
And looking at the number of tables that are related via the 'Regarding' column it looked like polymorphic lookups might be the way to go, but if I add the formula :
If( IsType( ThisItem.Regarding, Placements ),
"Placement: " & AsType( ThisItem.Regarding, Placements ).'PlacementID', "Not Linked")
All the items in my gallery are listed as 'Not Linked' so I must be missing something.
Can anyone help point me in the right direction for this? I'll need to traverse relationships across quite a few tables so if I can't get past this point I'm pretty stuck.
Thanks in advance!
You might also want to try posting to the Dataverse subsection as well (Microsoft Dataverse - Power Platform Community).
I believe I am in a minority but I have always thought that polymorphic relationships (I think now also called multi-table relationships) are a terrible idea that go against normalisation principles and create much unnecessary confusion for limited/questionable benefit. My understanding is that they are not well supported in canvas apps but as MS has recently doubled-down on them, there may be some new features in canvas apps to provide additional support either recently added or in the pipeline.
Last time I had to deal with these I seem to recall that the D365 team just put in redundant relationships / repeated fields across the entities to give us something we could run delegable filters on.
User | Count |
---|---|
148 | |
93 | |
82 | |
77 | |
57 |
User | Count |
---|---|
197 | |
175 | |
103 | |
95 | |
89 |