Demonstrates how to retrieve default properties of a SharePoint list
Reference
View source
from office365.sharepoint.client_context import ClientContext
from tests.settings import cert_path, cert_thumbprint, client_id, site_url, tenant
ctx = ClientContext(site_url).with_client_certificate(
tenant, client_id=client_id, thumbprint=cert_thumbprint, cert_path=cert_path
)
target_list = ctx.web.lists.get_by_title("Site Pages").get().execute_query()
print(f"List title: {target_list.title}")
← Back to Lists