Skip to main content
Roberty Studio
RPAExcel Online

Worksheet > Update a worksheet

Worksheet > Update a worksheet

Updates the properties of a tab in an Excel file hosted on OneDrive or SharePoint, such as name, visibility and position.


Options​

Drive type​

Select where the Excel file is stored: SharePoint or OneDrive. The selected option defines which source field is shown next.

SharePoint or OneDrive drive​

Shown when the Drive type is SharePoint. Select the action that gets the SharePoint drive where the file is stored: Get a drive from the list or Get drive by name.

OneDrive account​

Shown when the Drive type is OneDrive. Select the OneDrive Login action set up in the flow.

Excel path in the drive​

Enter the path of the Excel file from the root of the drive, including the name and extension, for example Reports/sales.xlsx.

Current tab name to be updated​

Enter the current name of the tab to update.

New tab name​

Enter the new name of the tab. Leave it empty to keep the current name.

New tab visibility​

Select the new visibility of the tab: Keep current, Visible or Hidden.

New tab position​

Enter the new position of the tab (number). Leave it empty to keep the current position.

Returns​

Javascript code​

js
actions["action-id"].success // indicates if the Excel worksheet was successfully updated (Boolean)

Field selection​

  • success — indicates if the Excel worksheet was successfully updated (Boolean)

Rules and Conditions​

  • The Drive type, Excel path in the drive fields and the matching source (SharePoint or OneDrive drive or OneDrive account) are required.
  • The Current tab name to be updated field is also required.
  • Only the filled properties are changed; the others stay as they are.
  • If Microsoft Graph rejects the operation (item not found, insufficient permission, etc.), the action fails with the error message returned by the API.