How to parse csv file records and append each record as a page into the pagelist?
Read the uploaded CSV file content into a text property using D_pxGetFileContent.
Then use the OOTB function @pxPageListFromStringCSV to convert the CSV records into a Page List.
Pass the CSV text property, target Page List property, column/property names, and the Page List class to the function. (Pega Support Center)
For example: @pxPageListFromStringCSV(.CSVContent,.ItemList,"ItemID,ItemName,Quantity,Price","Your-Data-Item").
Pega will create one new page in .ItemList for each record in the CSV file.
Make sure the CSV column order matches the properties specified in the function.