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 Action Code Hope this helps.