exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 8 question 5 discussion

Actual exam question from Microsoft's PL-400
Question #: 5
Topic #: 8
[All PL-400 Questions]

You are implementing business logic for a model-driven app form by using multiple JavaScript web resources.
The business logic, number of JavaScript files, and the columns that the business logic requires are expected to change frequently. Some form fields will not be visible. Occasionally, non-developers will also make changes to the form.
You need to prevent columns referenced by the JavaScript from accidentally being removed from the form based.
What should you do?

  • A. Hide columns that should not be displayed.
  • B. Set all columns as business required.
  • C. Add all columns as non-event dependencies to the form.
  • D. Add columns in each JavaScript file as a dependency.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
DimpleG
Highly Voted 2 years, 2 months ago
Selected Answer: D
By adding the columns that each JavaScript file references as dependencies, you can ensure that the columns required by the business logic will not be accidentally removed from the form. This will provide visibility into which columns are being used by the business logic, and make it easier to identify and update any dependencies if changes are made to the form or the JavaScript files. Additionally, you can use the dependency information to automate the process of adding or removing columns as needed.
upvoted 6 times
...
itmaxuser
Most Recent 4 days, 6 hours ago
Selected Answer: D
C. Add all columns as non-event dependencies to the form. Select the fields that are required by any external, non-event scripts. Fields in the Dependent Fields list will not be removable from the form.
upvoted 1 times
...
LEILA1234
1 week, 2 days ago
Selected Answer: C
To prevent columns referenced by the JavaScript from accidentally being removed from the form, you should: C. Add all columns as non-event dependencies to the form. This ensures that the columns are recognized as dependencies by the form, preventing them from being removed even if they are not directly visible or used in the form's events. This approach helps maintain the integrity of the business logic and the JavaScript web resources.
upvoted 1 times
...
Juan0414
1 month, 2 weeks ago
Selected Answer: D
Correct!
upvoted 1 times
...
Pl4002024
7 months, 3 weeks ago
You CANNOT ADD columns to js files. Only for the js events!!! The C is the right ans
upvoted 1 times
...
CRMBug
2 years, 5 months ago
Selected Answer: D
Correct
upvoted 4 times
...
kvargas90
2 years, 6 months ago
Selected Answer: D
Correct
upvoted 4 times
...
MarioM
2 years, 6 months ago
Selected Answer: C
Add all columns as non-event dependencies to the form.
upvoted 2 times
MarioM
2 years, 6 months ago
Ignore. Answer is correct. Starting with Dynamics 365 for Customer Engagement apps version 9.0, if your JavaScript web resource depends on an entity attribute value that you don’t want to display in the form, you can set the attribute as a dependency for the JavaScript web resource. This means that the attribute will be available within the client API attributes collection so you can get or set the value in your code. When you add a dependency this way, the controls collection of the attribute will be empty because there will be no control on the form. Before this feature you would need to manually add the attribute to the form and then configure the control to be hidden. Now you can establish this dependency more directly and eliminate the possibility that someone will remove the hidden field from the form.
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago