Skip to content

Excel New Row Node โ€‹

The Excel New Row node allows automation of inserting a new row of data into a specific worksheet of an Excel file stored in SharePoint Online. This task is executed using Microsoft Graph API via a registered Microsoft 365 service account.


๐Ÿง  Purpose โ€‹

Use this node when you need to programmatically add new rows of data to an existing Excel workbook located on SharePoint. It is useful for scenarios such as appending form data, logging task output, or updating tracking sheets.


โš™๏ธ Required Inputs โ€‹

LabelTypeDescription
Sharepoint Path to FileTextFull SharePoint-relative path to the target Excel file (e.g. /sites/mySite/Documents/myFile.xlsx).
Worksheet NameTextThe exact name of the worksheet (tab) within the Excel file.
Row Values to insertJSONA JSON array of string values representing the row to insert.
Example: ["Value1", "Value2", "Value3"]

๐Ÿ” Service Account Requirements โ€‹

This task requires a Microsoft 365 service account with appropriate permissions to access the SharePoint document library and modify Excel files using Microsoft Graph.

The service account must be linked via the ThirdParty-Microsoft configuration.


โœ… Output โ€‹

  • On success, the specified worksheet will have a new row appended with the provided values.
  • On failure, the task will return an appropriate error message detailing what went wrong (e.g., file not found, worksheet not accessible, or input validation failure).

๐Ÿงช Validation โ€‹

The task performs the following validations before execution:

  • Verifies presence and correctness of all required inputs.
  • Confirms that the SharePoint path is valid and can be parsed into site/document library/folder path.
  • Validates that the Excel file and worksheet exist.
  • Ensures that Row Values to insert is a non-empty array of strings.

๐Ÿ—‚ Data Cleanup โ€‹

After execution, the following inputs are removed from the taskParameters.data object to avoid unintended downstream use:

  • Sharepoint Path to File
  • Worksheet Name

๐Ÿ“ Notes โ€‹

  • The row is appended to the bottom of the worksheet.
  • Column alignment is based on the order of values in the provided array โ€” ensure consistency with the structure of your worksheet.
  • This task does not create the Excel file or worksheet if they do not already exist.

๐Ÿšซ Common Errors โ€‹

Error MessageCause
Sharepoint Folder not foundThe provided SharePoint path was invalid or improperly formatted.
File name not foundThe file portion of the path was not identified.
Row Values to insert not foundThe input key was missing or contained an empty list.
Failed to get Sharepoint locationsSharePoint parsing failed due to an invalid path or token issues.
Failed to Execute: -An unexpected runtime exception occurred.

Tentech 2024