WordonlinebusinessClient
Attributes
Classes
CreateFileItemInput
dataclass
GetSourcesResponse
dataclass
Response for Get sources
GetDrivesResponse
dataclass
Response for Get drives
GetFileSchemaResponse
dataclass
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, file_locator: Optional[str] = None)
Definition: BlobMetadata
Attributes
id
class-attribute
instance-attribute
The unique identifier 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.
is_folder
class-attribute
instance-attribute
A boolean value (true, false) to indicate whether or not the blob is a folder.
ContentBody
dataclass
WordonlinebusinessClient
WordonlinebusinessClient(connection_runtime_url: str, token_provider: Optional[TokenProvider] = None, options: Optional[ConnectorClientOptions] = None)
Bases: ConnectorClientBase
Typed client for wordonlinebusiness connector.
Initialize a WordonlinebusinessClient.
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_file_item_async
async
Populate a Microsoft Word template
Reads a Microsoft Word template to then fill the template fields with selected dynamic values to generate a Word Document.
create_word_file_with_content_async
async
create_word_file_with_content_async(input: ContentBody, file_name: Optional[str] = None) -> dict[str, Any] | None
Create a Microsoft Word document with the given content
Creates a Microsoft Word file with the given content in the root directory (use only from Copilot Studio)
get_file_pdf_async
async
get_file_pdf_async(source: str, drive: str, file: str, extract_sensitivity_label: Optional[bool] = None, fetch_sensitivity_label_metadata: Optional[bool] = None) -> bytes
Convert Word Document to PDF
Gets a PDF version of the selected file
get_sources_async
async
Get sources
Get a list of sources.