exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 2 question 61 discussion

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

You create a custom page that is used as a contextual dialog in a model-driven app.

The app must be able to receive two contextual parameters by passing a concatenated string. The string must use the pipe (|) symbol with the recordId parameter.

You need to compose the formulas to extract parameter information.

Which two formulas should you compose? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

  • A. Left(Param("recordId"), Find("|", Param("recordId")) - 1)
  • B. Left(Param("recordId"), Len(Param("recordId")) - Find("|", Param(“recordId")))
  • C. Right(Param("recordId"), Len(Param("recordId")) - Find("|", Param(“recordId")))
  • D. Right(Param("recordId"), Find("|", Param("recordId")) - 1)
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

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
PRash3566
Highly Voted 8 months, 1 week ago
Should be AC
upvoted 9 times
...
sugaSri
Most Recent 3 weeks, 5 days ago
Selected Answer: AC
If Param("recordId") = "abc123|xyz789": A returns "abc123" (everything before |) C returns "xyz789" (everything after |)
upvoted 1 times
...
loftuscheek
4 months ago
Selected Answer: AC
Summary Correct Formulas: Option A: Correctly extracts the left part (before the pipe). Option C: Correctly extracts the right part (after the pipe). Incorrect/False Approaches: Option B: Although it might yield the correct output in some cases, it is conceptually less clear and not the best approach. Option D: Incorrect because it does not reliably calculate the correct substring length for the second parameter. Final Answer: The two formulas you should use are Option A and Option C.
upvoted 2 times
...
rp2
5 months, 2 weeks ago
Selected Answer: AC
The correct formulas to extract the parameter information are: A. Left(Param("recordId"), Find("|", Param("recordId")) - 1) This formula extracts the part of the string before the pipe (|) symbol. C. Right(Param("recordId"), Len(Param("recordId")) - Find("|", Param("recordId"))) This formula extracts the part of the string after the pipe (|) symbol. These two formulas together will allow you to split the concatenated string into its two contextual parameters.
upvoted 2 times
rp2
5 months, 2 weeks ago
If you select A & B, you assume that EVERY TIME, the string is of the same length before and after the "|".
upvoted 1 times
rp2
5 months, 2 weeks ago
Correction: If you select B & C, you assume that ...
upvoted 1 times
...
...
...
DevInProgress
7 months ago
A and C are correct because: A: It extracts the left part before the delimiter |, which is essential to obtain the first parameter. C: Extracts the right part after the delimiter |, which is necessary to obtain the second parameter. The formulas exactly follow the logic for splitting a delimited string.
upvoted 3 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 ...