Write Cell
UiPath.MicrosoftOffice365.Activities.Excel.WriteCell
Description
Uses the Microsoft Graph Update range API to write a value (Cell Value) to a specified cell (CellAddress) in a workbook (Workbook) worksheet (SheetName).
Scopes
This activity requires the following scopes:
- Sites.ReadWrite.All
Project compatibility
Windows - Legacy | Windows
Configuration
Properties
Common
- DisplayName - The display name of the activity. This property supports
Stringvariables and string formatted values.
Input
- Cell Address - The address to the cell in which the data is inserted. Enter the address of a single cell in A1-style notation.This property does not support a range of cells (e.g., "A1:A5"). This property supports
Stringvariables and string formatted values. - Cell Value - The value written to the given cell. This property supports
Stringvariables and string formatted values. - Sheet Name - The name of the sheet from which data is read. This property supports
Stringvariables and string formatted values. - Workbook - The
DriveItemof the document to modify. This object can be retrieved using the Find Files And Folders activity. Use the output property variable from either the Find Files and Folders (First or Results) or Create Workbook (Workbook) activities. When using the Results output property from the Find Files and Folders activity, specify the item in the array that you want to use (e.g., myWorkbooks(0)).
Misc
- Private - If selected, the values of variables and arguments are no longer logged at Verbose level. This field supports Boolean values.
How it works
The following steps and message sequence diagram is an example of how the activity works from design time (i.e., the activity dependencies and input/output properties) to run time.
- Complete the steps.
- Add the Microsoft Office 365 Scope activity to your project.
- Add an activity or run an external process that outputs a
DriveItemobject (e.g., Find Files and Folders, Create Workbook, Copy Item). - Add the Write Cell activity inside the Microsoft Office 365 Scope activity.
- Enter values for the Input properties.
- Run the activity.
- Your input property values are sent to the UpdateRange API.
