nerdexam
Microsoft

PL-400 · Question #137

You are a Dynamics 365 developer working on a model-driven app. You add a button to an entity form and to the view for the entity that calls a JavaScript function. When you click the button, it…

The correct answer is A. In the JavaScript web resource, add the missing web resource as a dependency. Web resource dependencies You can define dependencies between other web resources. The primary purpose of this feature is to allow association of String (RESX) web resources with the JavaScript web resources that will use them. This is also the way that web resources required…

Submitted by hassan_iq· Apr 18, 2026

Question

You are a Dynamics 365 developer working on a model-driven app. You add a button to an entity form and to the view for the entity that calls a JavaScript function. When you click the button, it results in an error. You determine that the JavaScript function is calling another JavaScript function in a different web resource. You need to resolve the error. What should you do?

Options

  • AIn the JavaScript web resource, add the missing web resource as a dependency.
  • BAdd &ribbondebug=true to the app URL and run the Command Checker tool.
  • CFrom the Ribbon Workbench, add the missing JavaScript web resource as a CustomRule in

How the community answered

(31 responses)
  • A
    81% (25)
  • B
    13% (4)
  • C
    6% (2)

Explanation

Web resource dependencies You can define dependencies between other web resources. The primary purpose of this feature is to allow association of String (RESX) web resources with the JavaScript web resources that will use them. This is also the way that web resources required by HTML web resources for use offline can be configured to also be available offline. Within a solution you can define dependencies within solution components. Up until Mode-driven Apps the main purpose of these dependencies was to prevent the deletion of a solution component when another solution component depended on it. With Model-driven apps the behavior for JavaScript web resources is enhanced so that any other web resource listed as a dependency to the JavaScript web resource will be loaded along with the JavaScript web https://docs.microsoft.com/en-us/power-apps/developer/model-driven-apps/web-resource- https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/define-ribbon-enable-

Community Discussion

No community discussion yet for this question.

Full PL-400 Practice