Skip to main content
Roberty Studio
RPAExcel Online

Function > Execute a function

Function > Execute a function

Runs an Excel function in a specific cell of a file hosted on OneDrive or SharePoint.


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.

Spreadsheet tab name​

Enter the name of the tab where the function will be calculated, for example Sheet1.

Function to be executed​

Enter the Excel formula to execute, for example =SUM(A1:A10).

Returns​

Javascript code​

js
actions["action-id"].result // result of the executed function (Any)
actions["action-id"].success // indicates if the function was executed successfully (Boolean)

Field selection​

  • result — result of the executed function (Any)
  • success — indicates if the function was executed successfully (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.
  • Also required: Spreadsheet tab name and Function to be executed.
  • The function is calculated in a temporary Excel session, without saving changes to the file.
  • The function must be in a format accepted by Excel.
  • If Microsoft Graph rejects the operation (item not found, insufficient permission, etc.), the action fails with the error message returned by the API.