ExcelonlinebusinessClient
Classes
TableMetadata
dataclass
TableMetadata(name: Optional[str] = None, title: Optional[str] = None, x_ms_permission: Optional[str] = None, x_ms_capabilities: Optional[TableCapabilitiesMetadata] = None, schema: Optional[ObjectEntity] = None, referenced_entities: Optional[ObjectEntity] = None, web_url: Optional[str] = None)
Response for Create table
Attributes
x_ms_permission
class-attribute
instance-attribute
Table permission
ItemsList
dataclass
CommentsList
dataclass
Comment
dataclass
Comment(id: Optional[str] = None, content: Optional[str] = None, content_type: Optional[str] = None)
Response for Get a comment present in a workbook
Attributes
id
class-attribute
instance-attribute
The unique identifier for the comment.
content
class-attribute
instance-attribute
The content of the comment.
GetItemResponse
dataclass
GetItemResponse(dynamic_properties: Optional[Dict[str, Any]] = None, sensitivity_label_info: Optional[List[SensitivityLabelMetadata]] = None)
Response for Get a row
GetAllWorksheetsResponse
dataclass
GetAllWorksheetsResponse(value: Optional[List[WorksheetMetadata]] = None, sensitivity_label_info: Optional[List[SensitivityLabelMetadata]] = None)
Response for Get worksheets
CreateWorksheetInput
dataclass
WorksheetMetadata
dataclass
WorksheetMetadata(id: Optional[str] = None, name: Optional[str] = None, position: Optional[int] = None, visibility: Optional[str] = None)
Response for Create worksheet
Attributes
GetTablesResponse
dataclass
GetTablesResponse(value: Optional[List[Dict[str, Any]]] = None, sensitivity_label_info: Optional[List[SensitivityLabelMetadata]] = None)
Response for Get tables
RunScriptProdInput
dataclass
RunScriptProdResponse
dataclass
GetSourcesResponse
dataclass
Response for Get sources
GetDrivesResponse
dataclass
Response for Get drives
GetColumnsResponse
dataclass
Response for Get table columns
GetSingleScriptResponse
dataclass
Response for Gets one script
CreateFileMetadata
dataclass
Definition: CreateFileMetadata
Attributes
file_name
class-attribute
instance-attribute
Name of the newly created file
DataSetsMetadata
dataclass
DataSetsMetadata(tabular: Optional[TabularDataSetsMetadata] = None, blob: Optional[BlobDataSetsMetadata] = None)
Definition: DataSetsMetadata
TabularDataSetsMetadata
dataclass
TabularDataSetsMetadata(source: Optional[str] = None, display_name: Optional[str] = None, url_encoding: Optional[str] = None, table_display_name: Optional[str] = None, table_plural_name: Optional[str] = None)
Definition: TabularDataSetsMetadata
Attributes
display_name
class-attribute
instance-attribute
Dataset display name
url_encoding
class-attribute
instance-attribute
Dataset url encoding
table_display_name
class-attribute
instance-attribute
Table display name
BlobDataSetsMetadata
dataclass
BlobDataSetsMetadata(source: Optional[str] = None, display_name: Optional[str] = None, url_encoding: Optional[str] = None)
Definition: BlobDataSetsMetadata
Attributes
display_name
class-attribute
instance-attribute
Blob dataset display name
TablesList
dataclass
Table
dataclass
Table(name: Optional[str] = None, display_name: Optional[str] = None, dynamic_properties: Optional[Dict[str, Any]] = None)
Definition: Table
Attributes
name
class-attribute
instance-attribute
The name of the table. The name is used at runtime.
display_name
class-attribute
instance-attribute
The display name of the table.
TableToCreate
dataclass
TableToCreate(table_name: Optional[str] = None, range: Optional[str] = None, columns_names: Optional[str] = None)
Definition: TableToCreate
Attributes
table_name
class-attribute
instance-attribute
Enter the Excel table name.
range
class-attribute
instance-attribute
Enter the table address using A1 notation.
TableCapabilitiesMetadata
dataclass
TableCapabilitiesMetadata(sort_restrictions: Optional[TableSortRestrictionsMetadata] = None, filter_restrictions: Optional[TableFilterRestrictionsMetadata] = None, select_restrictions: Optional[TableSelectRestrictionsMetadata] = None, is_only_server_pagable: Optional[bool] = None, filter_function_support: Optional[List[str]] = None, server_paging_options: Optional[List[str]] = None)
Definition: TableCapabilitiesMetadata
Attributes
is_only_server_pagable
class-attribute
instance-attribute
is_only_server_pagable: Optional[bool] = field(default=None, metadata={'wire_name': 'isOnlyServerPagable'})
Server paging restrictions
ObjectEntity
dataclass
TableSortRestrictionsMetadata
dataclass
TableSortRestrictionsMetadata(sortable: Optional[bool] = None, unsortable_properties: Optional[List[str]] = None, ascending_only_properties: Optional[List[str]] = None)
Definition: TableSortRestrictionsMetadata
Attributes
sortable
class-attribute
instance-attribute
Indicates whether this table has sortable columns
TableFilterRestrictionsMetadata
dataclass
TableFilterRestrictionsMetadata(filterable: Optional[bool] = None, non_filterable_properties: Optional[List[str]] = None, required_properties: Optional[List[str]] = None)
Definition: TableFilterRestrictionsMetadata
Attributes
filterable
class-attribute
instance-attribute
Indicates whether this table has filterable columns
TableSelectRestrictionsMetadata
dataclass
CommentDetails
dataclass
Definition: CommentDetails
TabularItemsList
dataclass
TabularItem
dataclass
Definition: TabularItem
ScriptParameters
dataclass
ScriptReturnValues
dataclass
RawAndFormattedTableSchema
dataclass
Definition: RawAndFormattedTableSchema
BlobMetadata
dataclass
BlobMetadata(id: Optional[str] = None, name: Optional[str] = None, display_name: Optional[str] = None, path: Optional[str] = None, media_type: Optional[str] = None, is_folder: Optional[bool] = None)
Definition: BlobMetadata
Attributes
id
class-attribute
instance-attribute
The unique id of the file or folder.
name
class-attribute
instance-attribute
The name of the file or folder.
display_name
class-attribute
instance-attribute
The display name of the file or folder.
path
class-attribute
instance-attribute
The path of the file or folder.
media_type
class-attribute
instance-attribute
The media type of the file or folder.
SensitivityLabelMetadata
dataclass
SensitivityLabelMetadata(sensitivity_label_id: Optional[str] = None, name: Optional[str] = None, display_name: Optional[str] = None, tooltip: Optional[str] = None, priority: Optional[int] = None, color: Optional[str] = None, is_encrypted: Optional[bool] = None, is_enabled: Optional[bool] = None, is_parent: Optional[bool] = None, parent_sensitivity_label_id: Optional[str] = None)
Definition: SensitivityLabelMetadata
Attributes
sensitivity_label_id
class-attribute
instance-attribute
sensitivity_label_id: Optional[str] = field(default=None, metadata={'wire_name': 'sensitivityLabelId'})
SensitivityLabel Id.
display_name
class-attribute
instance-attribute
SensitivityLabel displayName info
tooltip
class-attribute
instance-attribute
SensitivityLabel details on tooltip.
priority
class-attribute
instance-attribute
SensitivityLabel priority.
is_encrypted
class-attribute
instance-attribute
is SensitivityLabel Encrypted.
is_enabled
class-attribute
instance-attribute
Whether SensitivityLabel is Enabled.
is_parent
class-attribute
instance-attribute
Whether SensitivityLabel is Parent.
WorkbookRange
dataclass
WorkbookRange(address: Optional[str] = None, address_local: Optional[str] = None, cell_count: Optional[int] = None, column_count: Optional[int] = None, row_count: Optional[int] = None, column_index: Optional[int] = None, row_index: Optional[int] = None, values: Optional[List[List[Any]]] = None, text: Optional[List[List[str]]] = None, formulas: Optional[List[List[str]]] = None, number_format: Optional[List[List[str]]] = None, value_types: Optional[List[List[str]]] = None)
Definition: WorkbookRange
Attributes
address
class-attribute
instance-attribute
Range address including the sheet name, e.g. Sheet1!A1:D10.
values
class-attribute
instance-attribute
2-D array of cell values.
text
class-attribute
instance-attribute
2-D array of display text.
formulas
class-attribute
instance-attribute
2-D array of formulas.
ExcelonlinebusinessClient
ExcelonlinebusinessClient(connection_runtime_url: str, token_provider: Optional[TokenProvider] = None, options: Optional[ConnectorClientOptions] = None)
Bases: ConnectorClientBase
Typed client for excelonlinebusiness connector.
Initialize a ExcelonlinebusinessClient.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
connection_runtime_url
|
str
|
The connection runtime URL from Azure Portal. |
required |
token_provider
|
Optional[TokenProvider]
|
Optional token provider. Defaults to ManagedIdentityTokenProvider. |
None
|
options
|
Optional[ConnectorClientOptions]
|
Optional connector client options. |
None
|
Methods:
create_table_async
async
create_table_async(input: TableToCreate, drive: str, file: str, source: str) -> dict[str, Any] | None
Create table
Create a new table in the Excel workbook.
create_id_column_async
async
create_id_column_async(drive: str, file: str, table: str, source: str, id_column: Optional[str] = None) -> None
Add a key column to a table
Add a key column to an Excel table. The new column will be appended to the right.
get_items_async
async
get_items_async(drive: str, file: str, table: str, source: str, filter: Optional[str] = None, orderby: Optional[str] = None, top: Optional[int] = None, skip: Optional[int] = None, select: Optional[str] = None, date_time_format: Optional[str] = None, extract_sensitivity_label: Optional[bool] = None, fetch_sensitivity_label_metadata: Optional[bool] = None) -> dict[str, Any] | None
List rows present in a table
List rows present in a table.
get_comments_async
async
List all comments present in a workbook
List all comments present in a workbook.
get_comment_async
async
get_comment_async(drive: str, file: str, commentid: str, source: Optional[str] = None) -> dict[str, Any] | None
Get a comment present in a workbook
Get a comment present in a workbook.
reply_comment_async
async
reply_comment_async(input: CommentDetails, drive: str, file: str, commentid: str, source: Optional[str] = None) -> dict[str, Any] | None
Reply to a comment present in a workbook
Reply to a comment present in a workbook.
get_item_async
async
get_item_async(drive: str, file: str, table: str, id: str, source: str, id_column: str, date_time_format: Optional[str] = None, extract_sensitivity_label: Optional[bool] = None, fetch_sensitivity_label_metadata: Optional[bool] = None) -> dict[str, Any] | None
Get a row
Get a row using a key column.
delete_item_async
async
Delete a row
Delete a row using a key column.
patch_item_async
async
patch_item_async(input: Item, drive: str, file: str, table: str, id: str, source: str, id_column: str, date_time_format: Optional[str] = None) -> dict[str, Any] | None
Update a row
Update a row using a key column. The input value will overwrite the specified cells and columns left blank will not be updated. In order to append (instead of overwrite) a value, use the "Get a row" action to retrieve the content first.
get_all_worksheets_async
async
get_all_worksheets_async(drive: str, file: str, source: str, extract_sensitivity_label: Optional[bool] = None, fetch_sensitivity_label_metadata: Optional[bool] = None) -> dict[str, Any] | None
Get worksheets
Get a list of worksheets in the Excel workbook.
create_worksheet_async
async
create_worksheet_async(input: CreateWorksheetInput, drive: str, file: str, source: str) -> dict[str, Any] | None
Create worksheet
Create a new worksheet in the Excel workbook.
get_tables_async
async
get_tables_async(drive: str, file: str, source: str, extract_sensitivity_label: Optional[bool] = None, fetch_sensitivity_label_metadata: Optional[bool] = None) -> dict[str, Any] | None
Get tables
Get a list of tables in the Excel workbook.
add_row_async
async
add_row_async(input: Item, drive: str, file: str, table: str, source: str, date_time_format: Optional[str] = None) -> dict[str, Any] | None
Add a row into a table
Add a new row into the Excel table.
run_script_prod_async
async
run_script_prod_async(input: RunScriptProdInput, drive: str, file: str, script_drive: str, script_id: str, source: str, script_source: str) -> dict[str, Any] | None
Run script from SharePoint library
Runs an Office Script against an Excel workbook. Use this action when the script is saved outside of the default location.
get_sources_async
async
Get sources
Get a list of sources.
get_drives_async
async
Get drives
Get a list of drives.
get_columns_async
async
Get table columns
Get table columns.
get_table_async
async
Get metadata of a table
Get metadata of a table.