we have to upload an excel file in a case on click of upload button and then fetch the list of duplicate entry and non duplicate entry from that excel .

We have to upload an excel file on click of upload button on the UI and then fetch the list of duplicate entry and non duplicate entry from that excel and display the count of duplicate and non duplicate entry as well on the ui.How to configure this?

@TanyaS58

To achieve this, you can follow these steps:

  1. Use a File Upload control on your UI to allow the user to upload the Excel file.
  2. Once the file is uploaded, parse the data into a PageList using the MSOParseExcelFile activity or a similar approach. Each list object will correspond to a row in the Excel file.
  3. Create a temporary list by looping through the original PageList and concatenating all the properties that serve as the primary key for checking duplicates.
  4. Loop through this temporary list and for each iteration, check whether the same value exists or not using the CountInPageList function. If the count is less than or equal to 1, it’s a non-duplicate entry. If it’s more than 1, it’s a duplicate entry.
  5. Keep track of the count of duplicate and non-duplicate entries and display them on the UI.

Please note that this is a general approach and you may need to adjust it based on your specific requirements and application design.

:warning: This is a GenAI-powered tool. All generated answers require validation against the provided references

Duplicate Rows

Bulk Upload functionality -Excel Bulk Upload

How to check for duplicate values in Excel?

Upload Excel File and Populate the Data into Pagelist