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 questionsDomain 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.
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
LeftandFindto 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
RightandLento 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.
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.
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.
Keep practicing
Take the free PL-400 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other PL-400 practice questions
- Question 4You are designing a one-way integration from Microsoft Dataverse to another system. You m…
- Question 6You need to configure the trigger for account records. Which expression should you use?
- Question 8You are building a custom application in Azure to process resumes for the HR department. …
- Question 12You need to add the script to populate event data on the form. Which code segment should …
- Question 14A company plans to create an order processing app. When orders are created, the app will …
- Question 15You are creating a model-driven app. You create JavaScript code to display a message when…
