The Office365 class is the entry point for calling the Microsoft Graph API in 4D NetKit. It is a facade that exposes four lazily-instantiated API clients:
user — read Azure AD user profilesmail — create, move, send, and manage emails and folderscalendar — manage calendars and eventscategory — read Outlook master categoriesEach client is instantiated on first access and reused for subsequent calls.
These operations can be performed after a valid token request (see OAuth2Provider).
The Office365 class can be instantiated in two ways:
New Office365 provider methodcs.NetKit.Office365.new() functionWarning: Shared objects are not supported by the 4D NetKit API.
The Office365 class can be instantiated using the New Office365 provider method.
See New Office365 provider for the complete method documentation.
The returned Office365 object exposes the following properties, each giving access to a dedicated API client:
| Property | Type | Description |
|---|---|---|
| user | Office365User | Microsoft Graph user client: read Azure AD user profiles. |
| Office365Mail | Microsoft Graph mail client: read, send, move, copy, reply, update, and delete messages and folders. | |
| calendar | Office365Calendar | Microsoft Graph calendar client: manage calendars and events. |
| category | Office365Category | Microsoft Graph category client: read Outlook master categories. |
Office365User
Office365Mail
Office365Calendar
Office365Category
OAuth2Provider