![]()
Exports selected items to excel spreadsheet in xlsx format, with the columns from the current modern list view.
Open this sample in the gallery (popup panel): Open in gallery
Source: https://github.com/pnp/sp-dev-fx-extensions/tree/main/samples/js-command-selecteditems-export