Splitting a pipe-delimited recordId parameter in a Power Apps custom page with Power Fx
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.
Community Votes
100% of anonymous learners picked answer AC. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
Left(Param('recordId'), Find('|', Param('recordId')) - 1) returns the substring from the start up to (but excluding) the pipe. Right(Param('recordId'), Len(...) - Find('|', ...)) returns the remainder after the pipe. Together they split the string into its two parameters.
A custom page receives two contextual parameters concatenated with a pipe in Param('recordId'). To extract both values you need a Left formula that grabs everything before the delimiter and a Right formula that grabs everything after it, using Find to locate the pipe position.
Mixing the Left/Right lengths — option B uses Len - Find for a Left (wrong length) and option D uses Find - 1 for a Right (wrong length). The correct pairing is Left with Find-1 and Right with Len-Find.
Community Discussion (4 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
The concatenated string has the form 'value1|value2'. Option A, Left(Param('recordId'), Find('|', Param('recordId')) - 1), returns all characters before the pipe, capturing the first parameter. Option C, Right(Param('recordId'), Len(Param('recordId')) - Find('|', Param('recordId'))), returns the characters after the pipe, capturing the second parameter. Together A and C fully extract both contextual parameters.Why the Other Options Are Wrong
Option B applies Len - Find as the length of a Left extraction, which yields the wrong (too-long) substring including the pipe. Option D applies Find - 1 as the length of a Right extraction, which yields almost the entire string instead of the tail. Neither B nor D correctly isolates a single side of the delimiter.Community Comment Notes
PRash3566 (likes=9) states the correct pair is A and C. DevInProgress (likes=3) explains A extracts the left part before the delimiter and C extracts the right part after it.Official Reference
Related Analysis
Practice All PL-400 Questions
Access 85 questions with complete answers and detailed explanations.
View Full PL-400 Practice Test →