Scenario: Recruiters report that the command button to score a candidate is not working. The context input parameter is null.
A function called from a command (ribbon) action does not receive the execution context automatically. The form context is passed by adding the PrimaryControl CRM parameter to the action definition; the function then receives it as its first argument.
" Pass execution context as first parameter " applies to form event handlers, not to command actions, and SelectedControl refers to the grid or subgrid a command runs against.
[Reference:, https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/pass-data-page-parameter-ribbon-actions, , ]
Submit