ModelDrivenFormIntegration.DataSource: [@'PRAs'] //a custom Activity table
Each PRA has a polymorphic Regarding field that always refers to a custom Opportunity.
When I open the canvas app, the expected PRA record is displayed. But I'm having trouble getting the related Opportunity.
I've tried storing the Opportunity in a variable:
Set(CurrentOpportunity, AsType(ModelDrivenFormIntegration.Item.Regarding,Opportunities))
which gives me an empty Opportunity object.
And I've tried doing a lookup:
LookUp(Opportunities,Opportunity=AsType(ModelDrivenFormIntegration.Item.Regarding,Opportunities).Opportunity)
which gives this warning 'Delegation warning: The Lookup part of this formula might not work correctly on large data sets' and doesn't return anything.
How can I get the Opportunity object that is referred to in the polymorphic Regarding field of my PRA?

Report
All responses (
Answers (