Throw the text into a text box or label.
Drop a button on the screen - In the OnSelect property of the button:
Clear(col_DocNames);
ForAll(
Split(
TextInput1.Text,
Char(10)
),
Collect(
col_DocNames,
{
index: Value(Last(FirstN(Split(Value,"|"), 2)).Value),
identifier: Last(FirstN(Split(Value,"|"), 3)).Value,
docName: Last(FirstN(Split(Value,"|"), 4)).Value
}
)
);
Now you can get a document name via it's id:
LookUp(col_DocNames, index = 2, docName)