Typescript function xlsx parsing

Hi,

To parse excel in TypeScript function, what libraries do I need? Is there any xlsx library?

How do I import it? Is there any library like “exceljs”? When I upload the excel file using media uploader, can I pass RID to the typescript function? Please provide sample code, if there is any.

Thanks a lot.

Hi there,

To parse an xlsx I would recommend using the SheetJS NPM package. You can import NPM libraries in both the Code Repos and Code Workspaces applications in Foundry

I would follow these steps to upload the xlsx and pass it into the function using an ontology object

let me know if you need further clarification, thanks

1 Like