Skip to main content

Open workbook

Open a workbook once: the Excel online steps after it may leave the workbook, the sheet and the cell empty and use the open one (G3).

Command in the Microsoft 365 toolkit · id ooa.microsoft365/excel_open · 6 inputs (1 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialNoMicrosoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
Remote pathStringYesWorkbook path in the drive (e.g. Finance/budget.xlsx), or id:{item-id}.
SheetStringNoThe sheet to start on; the first sheet when empty.
DriveStringNome/driveWhose files: me/drive (your OneDrive), a person (ann@acme.com), a SharePoint site (contoso.sharepoint.com:/sites/Finance), a library of a site by name (contoso.sharepoint.com:/sites/Finance:/Invoices), or sites/{site-id}/drive or drives/{drive-id}. With an app sign-in, name a person or site.
Endpoint addressStringNohttps://graph.microsoft.com/v1.0Graph endpoint; change only for national clouds or testing.
ShareBooleanNofalseAgents this one runs use the same open workbook.

Outputs​

OutputTypeWhat it is
sheetsListThe workbook's worksheet names.
active_sheetStringThe sheet the steps after it use.