PL-400 · Question #223
You are a Power App maker. You are developing an app in a development environment. You create the following custom forms in the Account entity: - FormB contains a message that appears in the OnLoad…
The correct answer is C. The web resources were not added to the solution before exporting. When forms reference JavaScript in OnLoad or OnSave event handlers, those scripts are stored as web resource components in Dataverse. Web resources are separate solution components from the forms themselves. When you add a form to a solution, the form component is included, but…
Question
Options
- AThe web resources were not added to the form before adding the form to the solution.
- BThe solution must be exported as an unmanaged solution.
- CThe web resources were not added to the solution before exporting.
- DA copy of the form must be made before adding to the solution.
How the community answered
(26 responses)- A4% (1)
- B15% (4)
- C77% (20)
- D4% (1)
Explanation
When forms reference JavaScript in OnLoad or OnSave event handlers, those scripts are stored as web resource components in Dataverse. Web resources are separate solution components from the forms themselves. When you add a form to a solution, the form component is included, but any web resources it references are not automatically added - they must be explicitly added to the solution as separate components. When the managed solution is exported without the web resources, the import fails because the target environment cannot find the referenced components. The fix is to add the JavaScript web resources to the solution before exporting. Exporting as unmanaged (B) would not resolve a missing dependency. Making a copy of the form (D) is irrelevant. The web resources must be added to the solution (C), not just to the form (A) - adding them to the form only links them, it does not include them in the solution.
Community Discussion
No community discussion yet for this question.