What should you do?
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?
A . In the JavaScript web resource, add the missing web resource as a dependency.
B . Add &ribbondebug=true to the app URL and run the Command Checker tool.
C . From the Ribbon Workbench, add the missing JavaScript web resource as a CustomRule in EnableRules.
Answer: C
Explanation:
When configuring ribbon elements, you can define specific rules to control when the ribbon elements are enabled.
Custom Rule uses the <CustomRule> element. Use this kind of rule to call a function in a Script (JScript) web resource that returns a Promise (Unified Interface) or boolean (Unified Interface and web client).
Reference: https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/define-ribbon-enable-rules
Latest PL-400 Dumps Valid Version with 171 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund