Sharepoint
Sharepoint service used for creating new list items.
SharePointClient
A client for interaction with SharePoint lists.
Source code in gso/services/sharepoint.py
__init__()
Initialise a new SharePoint client.
Source code in gso/services/sharepoint.py
get_site()
Get the SharePoint site that this orchestrator connects to.
get_list_items(list_name)
Get list items from a given list in SharePoint.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
list_name
|
str
|
The name of the list. |
required |
Source code in gso/services/sharepoint.py
add_list_item(list_name, fields)
Add a new entry to a SharePoint list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
list_name
|
str
|
The name of the list. |
required |
fields
|
dict[str, str]
|
Any pre-filled fields in the list item. Can be left empty. |
required |
Returns:
| Type | Description |
|---|---|
str
|
The URL of the list in which a new item has been created. |
Source code in gso/services/sharepoint.py
prompt_sharepoint_checklist_url(checklist_url)
Prompt the operator with the checklist in SharePoint for approving a new subscription.