PL-400 practice question 24 of 35

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…

Full set: 391 questions

Domain Create and configure Power Apps

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 recordld 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.

Answer options
A:

A. exam question

Correct answer
B:

B. exam question

C:

C. exam question

Correct answer
D:

D. exam question

Correct Answer:
A. A. https://kxbjsyuhceggsyvxdkof.supabase.co/storage/v1/object/public/file-images/PL-400/page_329_img_5.jpg; C. C. https://kxbjsyuhceggsyvxdkof.supabase.co/storage/v1/object/public/file-images/PL-400/page_330_img_2.jpg
Explanation

To extract two parameters from a single concatenated string (e.g., Value1|Value2) passed via the recordId parameter, you must find the position of the delimiter (|).

  • Formula A uses Left and Find to capture all characters before the pipe. By subtracting 1 from the pipe's position, it correctly identifies the length of the first value.
  • Formula C uses Right and Len to capture the second value. It calculates the remaining character count by subtracting the position of the pipe from the total string length, effectively isolating everything to the right of the delimiter. Together, these formulas parse the composite string into its original distinct parts.

Why Incorrect

B: This formula attempts to use Left with a length calculation meant for the right side of the string, resulting in the wrong substring or a truncated value.

D: This formula uses Right but provides the length of the first parameter (minus one), which would return the end of the second parameter rather than the full string.

References

Microsoft Power Fx Formula Reference: "Left, Mid, and Right functions in Power Apps." Detailed usage of string manipulation for extracting substrings.

Microsoft Power Fx Formula Reference: "Find function in Power Apps." Specifically regarding locating the starting position of a text string within another string.

Microsoft Learn: "Use a custom page as a dialog in a model-driven app." Documentation on passing and retrieving parameters using the Param function.

Microsoft Power Fx Formula Reference: "Len function in Power Apps." Section on calculating string length for dynamic indexing.

Scroll to Top