How do I register a model-driven form handler and get the correct form context?
Add a JavaScript web resource as a library on the target model-driven form.
PUBLIC BETA OFFER
Save 50% off on an Eligible Learning PlanValid for 1-month plan, 3-month plan, 12-month plan · Code LPXBETA50 · Ends Dec 6, 2026
852 published articles
Add a JavaScript web resource as a library on the target model-driven form.
Use Power Fx when a supported formula can express the command's action or visibility. Choose JavaScript for an action that needs the model-driven Client API or explicit asynchronous coordination.
For a JavaScript command on a model-driven main form, configure PrimaryControl and use it directly as the form context.
Reproduce one slow interaction with the same release, browser, user and synthetic dataset. Compare browser Network timing with a Performance recording to separate remote waits from main-thread work.
Use the Power Apps CLI pa from the approved starter's project root. Initialize the app in an environment where code apps are enabled, then open its Local Play address from a browser profile signed into the intended Power Platform tenant.
Use an isolated solution with a user-or-team-owned request table, a separate organization-owned receipt table, a manual parent and child flow, and one custom connector operation to a disposable HTTP Azure Function.
Build the code app and use pa app push --solution-id <solution-id> to publish it into a specific solution when the configured environment has Dataverse. The argument is the solution GUID.
Use a standard Dataverse table when you need strong consistency, relational joins or coordinated transactions. Evaluate a virtual table when another system owns the data and a table-shaped interface fits.
For region-specific access, use a user-or-team-owned Dataverse table and grant recurring privileges through roles scoped to the intended business units. Use sharing or an access team for a specific temporary exception.
Inspect the affected component's solution layers. Its effective behavior can include an active unmanaged customization above the imported managed layers.
Use the generated table service's getMetadata method to request the table properties, column definitions and relationships your code app needs. This is a read of definitions.
For a supported tabular connector, use @envvar:<schema-name> in the data source's dataset and table arguments. The references persist in power.config.json, and the app resolves them from the target environment.