Command Button to use multiple related tables in Model Driven app powerfx
Here is the code to act on related table records from command button on model driven app.
Watch the video below or scroll for powerfx.
Conditional Visibility Code
If(CountIf(Investments,Customer.Contact = Self.Selected.Item.Contact And Type = 'Type (Investments)'.'Fixed Deposit')>0,true,false)
Action Code
If(
Confirm("Are you sure to Delete All Fixed Deposits?",{Title:"Confirmation"}),
RemoveIf(Investments,Customer.Contact = Self.Selected.Item.Contact And Type = 'Type (Investments)'.'Fixed Deposit')
)
Hope this helps.