PL-400 · Question #322
Case Study 6 - Proseware, Inc Background Proseware, Inc. is an industry leading software company with several thousand employees. The company has had some trouble recruiting talented employees…
When registering a JavaScript function as a form event handler in Dynamics 365, select the 'Pass execution context as first parameter' option to provide the function with form-related properties and methods.
Question
Options
- APass ExecutionContext to the function in the action definition.
- BPass the value SelectedControl to the function in the action definition.
- CSelect the Pass execution context as first parameter option on the event registration
Why each option
When registering a JavaScript function as a form event handler in Dynamics 365, select the 'Pass execution context as first parameter' option to provide the function with form-related properties and methods.
Passing `ExecutionContext` to a function in an action definition is relevant for custom actions or APIs, not for configuring standard form event handlers in Dynamics 365.
The `SelectedControl` value is generally associated with ribbon or command bar controls, not the standard `executionContext` passed to form event handlers.
Concept tested: Dynamics 365 form event execution context
Source: https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/walkthrough-write-your-first-client-script
Community Discussion
No community discussion yet for this question.