© 2026 InterSystems Corporation. All rights reserved.Privacy & TermsGuaranteeSection 508Contest Terms
Publish in Package Manager
Make sure you have git and Docker desktop installed.
Clone/git pull the repo into any local directory
$ git clone https://github.com/oliverwilms/excel-py-iris.git
Open the terminal in this directory and run:
$ docker-compose up -d
$ curl -v -u <username>:<password> -F "description=test.xlsx" -F "file=@Downloads\batch-1-products.xlsx" https://<server>/csp/files/upload-file
$ docker-compose exec -it iris python3 /usr/irissys/mgr/python/iter_excel.py /opt/irisapp/excel/excel_python_iris.xlsx
Set obj = {}.%FromJSONFile("/irisdev/app/openapi/upload_file_openapi_v2_spec.json")
zw ##class(%REST.API).CreateApplication("api.file",obj,.features,.new,.err)
Remember to create a web application with api.file.disp as Dispatch class.
USER>d ##class(api.file.config).CreateWebApp()
USER>d ##class(otw.iris.testproduction).Run()
USER>d ##class(otw.iris.workbook).importWorkbook()
1
USER>w ##class(otw.iris.excel).importExcel(-1)
1
I added -1 above because I want to start importing with sheet 0. In my personal Excel workbook, I want to skip the first five workbooks.
USER>do ##class(dc.iris.count).Count()
11592 Transactions counted.
USER>do $System.OBJ.Export("wbook.GBL","/opt/irisapp/global_workbook.xml",,.errors)
Exporting to XML started on 07/12/2026 23:01:23 Exporting global: ^wbook Export finished successfully.