Microsoft Power Platform Developer — Question 30
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.
Answer options
- 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)
Correct answer: A, C
Explanation
The correct answers are A and C. Option A correctly extracts the portion of the string before the pipe symbol, which is the first parameter, while option C extracts the portion after the pipe, representing the second parameter. Options B and D do not correctly extract the intended parameters based on the requirements outlined in the question.