CData Cloud は、クラウドホスト型のソリューションで、複数の標準サービスやプロトコルにまたがるMicrosoft Office 365 へのアクセスを実現します。SQL Server データベースに接続できるアプリケーションであれば、CData Cloud を介してMicrosoft Office 365 に接続できます。
CData Cloud により、他のOData エンドポイントや標準SQL Server と同じように、Microsoft Office 365 への接続を標準化し、構成することができます。
このページでは、CData Cloud でのMicrosoft Office 365 への接続の確立 のガイド、利用可能なリソースに関する情報、および使用可能な接続プロパティのリファレンスについて説明します。
接続の確立 は、CData Cloud にデータベースを作成するためのMicrosoft Office 365 への認証方法と必要な接続プロパティの設定方法について示します。
利用可能な標準サービスを経由してMicrosoft Office 365 からデータにアクセスする方法と、CData Cloud の管理については、CData Cloud ドキュメント で詳しく説明します。
Database タブで対応するアイコンを選択して、Microsoft Office 365 に接続します。必須プロパティはSettings にリストされています。Advanced タブには、通常は必要ない接続プロパティが表示されます。
Microsoft Office 365 はOAuth 認証標準を利用しています。OAuth を使って認証するには、アプリケーションを作成してOAuthClientId、OAuthClientSecret、およびCallbackURL 接続プロパティを取得する必要があります。
Note:Microsoft はAzure AD をEntra ID にリブランドしました。ユーザーがEntra ID 管理サイトを操作する必要があるトピックでは、Microsoft が使用している名称と同じものを使用します。ただし、名前または値が"Azure AD" を参照しているCData 接続プロパティは、依然として存在します。
Microsoft Entra ID は、マルチテナント型のクラウドベースのID およびアクセス管理プラットフォームです。 OAuth ベースの認証フローに対応しており、ドライバーによるMicrosoft Office 365 エンドポイントへのセキュアなアクセスを実現します。
Web アプリケーションを介したEntra ID への認証には、必ずはじめにカスタムOAuth アプリケーションを作成して登録する必要があります。 これにより、アプリケーションは独自のリダイレクトURI を定義し、クレデンシャルのスコープを管理し、組織固有のセキュリティポリシーに準拠することができるようになります。
カスタムOAuth アプリケーションの作成および登録方法の詳細については、Entra ID(Azure AD)アプリケーションの作成 を参照してください。
AuthScheme をAzureAD に設定した後の認証手順は、環境によって異なります。 デスクトップアプリケーション、Web ベースのワークフロー、またはヘッドレスシステムから接続する方法の詳細については、以下のセクションを参照してください。
Note:Microsoft はAzure AD をEntra ID にリブランドしました。ユーザーがEntra ID 管理サイトを操作する必要があるトピックでは、Microsoft が使用している名称と同じものを使用します。ただし、名前または値が"Azure AD" を参照しているCData 接続プロパティは、依然として存在します。
Azure サービスプリンシパルは、ロールに基づいたアプリケーションベースの認証です。これは、認証がユーザーごとではなく、アプリケーションごとに行われることを意味します。
アプリケーションで実行されるすべてのタスクは、デフォルトユーザーコンテキストなしで、割り当てられたロールに基づいて実行されます。
リソースへのアプリケーションのアクセスは、割り当てられたロールの権限によって制御されます。
Azure サービスプリンシパル認証の設定方法については、Entra ID(Azure AD)でのサービスプリンシパルアプリの作成 を参照してください。
Azure VM 上でMicrosoft Office 365 を実行しており、マネージドID(MSI)認証情報を自動的に取得して接続したい場合は、AuthScheme を AzureMSI に設定します。
VM に複数のユーザーが割り当てられたマネージドID がある場合は、OAuthClientId も指定する必要があります。
CData Cloud を使用して、管理タスクを実行できます。これは、CUD 操作を実行するためにUserId カラムを指定することで行います。
多くのテーブルは特別なUserId カラムを公開しています。これは、管理者が他のユーザーアカウントのレコードを変更するために使用するようにデザインされています。
自分が管理者ではない場合、またはこの動作を望まない場合は、INSERT / UPDATE / DELETE 操作を実行するときにUserId を指定しないでください。
例えば、次のコマンドを実行すると、他のユーザーの連絡先が挿入されます。
INSERT INTO Contacts (displayName, CompanyName, UserId) VALUES ('Bill', 'Bob Co', '12345')
上記のリクエストは、/users/12345/contacts のリソースの下に連絡先を追加しようとする全体的な効果があります。UserId が指定されていない場合、 影響を受けるリソースは代わりに/users/me/contacts の下に変更されます。一般的に、管理者でない場合は/users/me 下のレコードにしか影響を与えたり 表示したりできないので、管理者でない場合はUserId を設定することはお勧めできません。
デフォルトでは、Cloud はサーバーとのTLS のネゴシエーションを試みます。サーバー証明書は、デフォルトのシステム信頼済み証明書ストアで検証されます。SSLServerCert 接続プロパティを使用して、証明書の検証方法をオーバーライドできます。
別の証明書を指定するには、SSLServerCert 接続プロパティを参照してください。
HTTP プロキシへの認証には、以下のように設定します。
次のプロパティを設定します。
CData Cloud は、テーブル、ビュー、ストアドプロシージャを使用してMicrosoft Office 365 オブジェクトを使いやすいSQL データベースとしてモデル化します。これらは、スキーマファイルで定義されます。スキーマファイルは、データの構造と構成を定義する、シンプルで読みやすいテキストファイルです。テーブル定義は動的に取得されるため、リモートデータへのあらゆる変更はクエリに即時に反映されます。
Note: Cloud はMicrosoft Office 365 API を使用してサポート対象のフィルタを処理します。その他のフィルタはクライアント側で処理されます。
テーブル セクションには標準SQL テーブルの詳細が、ビュー セクションには読み取り専用SQL テーブルの一覧が記載されています。これらには、サンプルOffice 365 サイトのサンプルがが含まれています。実際のデータモデルは、ユーザー資格情報とOffice 365サイトに基づいて動的に取得されます。
サンプルサイトには以下のテーブルがあります。
| テーブル | 説明 |
| CalendarView | Returns a filtered list of calendar events such as occurrences, exceptions, and single instances, within a specified time range from a user's calendar. |
| Calendars | Provides details about calendars associated with users, including names, time zones, and ownership metadata. Maps dynamically to the API fields. |
| Contacts | Contains user contact records, including names, email addresses, job titles, and business phone numbers synced from Office365. |
| Conversations | Stores threaded conversations from Microsoft 365 Groups, including messages and participants. |
| EventAttachments | Displays attachments related to calendar events, including file metadata and associated event identifiers. |
| EventOccurrences | Provides a flattened view of recurring event instances, enabling analysis of each occurrence individually. |
| Events | Captures core details of calendar events, such as start and end times, locations, organizers, and recurrence rules. Maps dynamically to API fields. |
| Files | Lists files stored in OneDrive or SharePoint, with metadata including file names, locations, last modified times, and sharing status. |
| Groups | Includes metadata about Microsoft 365 Groups, such as group names, descriptions, email aliases, and visibility settings. |
| MessageAttachments | Retrieves email message attachments with metadata like attachment names, sizes, and parent message IDs. |
| Messages | Contains email messages from user mailboxes, including subjects, senders, timestamps, and read status. |
| Plans | Displays task plan data from Microsoft Planner, including plan names, owners, and associated group IDs. |
| Tasks | Lists individual tasks from Microsoft To Do or Planner, with details like titles, due dates, and completion status. |
| Users | Supports reading, creating, updating, and deleting Office365 user accounts. Includes profile and licensing details. |
ストアドプロシージャ は、標準的なCRUD 操作を超える機能を持つSQL スクリプトです。これらを使用して、Office365内の情報を検索、更新、および変更できます。
Cloud はMicrosoft Office 365 のデータを、標準のSQL ステートメントを使用してクエリできるリレーショナルデータベースのテーブルのリストとしてモデル化します。
| Name | Description |
| BookingAppointments | Provides details about the appointments that are and can be scheduled for a business that is determined by the field bookingBusinessId. |
| BookingBusinesses | Provides details about calendars associated with users, including names, time zones, and ownership metadata. Maps dynamically to the API fields. |
| BookingCustomers | Information about the customer that is interacting with a business. |
| BookingCustomQuestions | Custom questions that may be asked to a customer booking an appointment. |
| BookingServices | The services that a business makes available to customers. |
| BookingStaffMembers | Information about the staff members of a business. |
| Calendars | Provides details about calendars associated with users, including names, time zones, and ownership metadata. Maps dynamically to the API fields. |
| Contacts | Contains user contact records, including names, email addresses, job titles, and business phone numbers synced from Office365. |
| Conversations | Stores threaded conversations from Microsoft 365 Groups, including messages and participants. |
| Events | Captures core details of calendar events, such as start and end times, locations, organizers, and recurrence rules. Maps dynamically to API fields. |
| Files | Lists files stored in OneDrive or SharePoint, with metadata including file names, locations, last modified times, and sharing status. |
| Groups | Includes metadata about Microsoft 365 Groups, such as group names, descriptions, email aliases, and visibility settings. |
| MailFolders | Lists all mail folders within user mailboxes, such as Inbox, Sent Items, and custom folders. It enables folder-level message organization and navigation in Office365. |
| Messages | Contains email messages from user mailboxes, including subjects, senders, timestamps, and read status. |
| Tasks | Lists individual tasks from Microsoft To Do or Planner, with details like titles, due dates, and completion status. |
| Users | Supports reading, creating, updating, and deleting Office365 user accounts. Includes profile and licensing details. |
Provides details about the appointments that are and can be scheduled for a business that is determined by the field bookingBusinessId.
| Name | Type | ReadOnly | References | Description |
| additionalInformation | String | False |
Any additional information linked to this appointment. | |
| anonymousJoinWebUrl | String | False |
A URL that allows a participant to join the appointment. | |
| appointmentLabel | String | False |
A label that was applied to this business. May be any string value. | |
| createdDateTime | Datetime | False |
The date and time that this appointment was created. | |
| customerEmailAddress | String | False |
The email address of the customer that will be participating in this appointment. | |
| customerName | String | False |
The name of the customer. | |
| customerNotes | String | False |
Notes on the customer that are linked to this appointment. | |
| customerPhone | String | False |
The customer's phone numbe.r | |
| customers | String | False |
The customers that will be attending this appointment. | |
| customerTimeZone | String | False |
The timezone that the customer operates in. | |
| duration | String | False |
The duration of this appointment. | |
| endDateTime_dateTime | Datetime | False |
The datetime value of the scheduled end of the appointment. | |
| endDateTime_timeZone | String | False |
The timezone of the scheduled end of the appointment. | |
| filledAttendeesCount | Boolean | False |
The number of attendees to this appointment. | |
| isCustomerAllowedToManageBooking | Boolean | False |
A flag that indicates if the customer can control the attendees or cancel the appointment | |
| isLocationOnline | Boolean | False |
A flag that indicates if the appointment is held in a physical location or online. | |
| joinWebUrl | String | False |
The URL to join the appointment. | |
| lastUpdatedDateTime | Datetime | False |
The last time this appointment was updated. | |
| maximumAttendeesCount | Boolean | False |
The maximum number of people allowed to attend the appointment. | |
| optOutOfCustomerEmail | Boolean | False |
A flag that indicates if opting out of customer email. | |
| postBuffer | String | False |
The post buffer. | |
| preBuffer | String | False |
The pre buffer. | |
| price | Float | False |
The price attached to the appointment. | |
| priceType | String | False |
The type of price. | |
| reminders | String | False |
The reminders that occur for this appointment. | |
| selfServiceAppointmentId | String | False |
The ID for self-service for this appointment. | |
| serviceId | String | False |
The identifier for the service that is attached to this appointment. | |
| serviceLocation_address_city | String | False |
The city portion of the address for the service. | |
| serviceLocation_address_countryOrRegion | String | False |
The county or region portion of the address for the service. | |
| serviceLocation_address_postalCode | String | False |
The zip code portion of the address for the service. | |
| serviceLocation_address_state | String | False |
The state portion of the address for the service. | |
| serviceLocation_address_street | String | False |
The street portion of the address for the service. | |
| serviceLocation_coordinates_accuracy | Float | False |
The accuracy of the coordinates attached to the service | |
| serviceLocation_coordinates_altitude | Float | False |
The altitude of the service location. | |
| serviceLocation_coordinates_altitudeAccuracy | Float | False |
The accuracy of the altitude of the service location. | |
| serviceLocation_coordinates_latitude | Float | False |
The latitude of the service location. | |
| serviceLocation_coordinates_longitude | Float | False |
The accuracy of the latitude of the service location. | |
| serviceLocation_displayName | String | False |
The name that will be displayed when viewing this location | |
| serviceLocation_locationEmailAddress | String | False |
The email address attached to the service location. | |
| serviceLocation_locationType | String | False |
The type of location. | |
| serviceLocation_locationUri | String | False |
The URI of the location. | |
| serviceLocation_uniqueId | String | False |
A unique identifier that refers to a specific location. | |
| serviceLocation_uniqueIdType | String | False |
The type of ID. | |
| serviceName | String | False |
The name that will be displayed when viewing this service. | |
| serviceNotes | String | False |
The notes attached to this service. | |
| smsNotificationsEnabled | Boolean | False |
A flag that indicates if notifications will be sent via SMS for this service. | |
| staffMemberIds | String | False |
The ID values representing the staff assigned to this service. | |
| startDateTime_dateTime | Datetime | False |
The datetime representing the start of the service without a timezone. | |
| startDateTime_timeZone | String | False |
The timezone of the start of the service. | |
| bookingbusinessid | String | False |
A foreign key representing the business that this appointment was booked for. | |
| Id [KEY] | String | False |
A unique identifier for this appointment. |
Provides details about calendars associated with users, including names, time zones, and ownership metadata. Maps dynamically to the API fields.
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | String | True |
Unique identifier for the business. Typically will be in the format of the email address used to set it up. | |
| address_city | String | False |
The city portion of the business's address. | |
| address_countryOrRegion | String | False |
The country portion of the businesses's address. | |
| address_postalCode | String | False |
The zipcode portion of the business's address. | |
| address_state | String | False |
The state portion of the business's address. | |
| address_street | String | False |
The street location of the business. | |
| bookingPageSettings_accessControl | String | False |
A descriptor of the access control of this booking business's page. | |
| bookingPageSettings_bookingPageColorCode | String | False |
The color code for the page of this business. | |
| bookingPageSettings_businessTimeZone | String | False |
The time zone in which the business operates. | |
| bookingPageSettings_customerConsentMessage | String | False |
The message used to get customer consent. | |
| bookingPageSettings_enforceOneTimePassword | Int | False |
Whether to force the usage of a one-time password. | |
| bookingPageSettings_isBusinessLogoDisplayEnabled | Int | False |
Shows whether the business logo will be displayed on the page. | |
| bookingPageSettings_isCustomerConsentEnabled | Int | False |
Indicates whether the customer will be prompted with the consent message. | |
| bookingPageSettings_isSearchEngineIndexabilityDisabled | Int | False |
Indicates whether the search engine indexability is enabled. | |
| bookingPageSettings_isTimeSlotTimeZoneSetToBusinessTimeZone | Int | False |
Indicates whether the bookings for this business will all operate on the business's timezone. | |
| bookingPageSettings_privacyPolicyWebUrl | String | False |
A link to the business's privacy policy. | |
| bookingPageSettings_termsAndConditionsWebUrl | String | False |
A link to the business's terms and conditions. | |
| businessHours | String | False |
A string representation of the hours of operation for this business. | |
| businessType | String | False |
A string representation of what type of business this is. | |
| createdDateTime | Datetime | False |
A timestamp representing the instant the business was created. | |
| defaultCurrencyIso | String | False |
The default currency that this business uses. | |
| displayName | String | False |
The name that will be displayed. | |
| String | False |
The email that can be used to contact the business. | ||
| languageTag | String | False |
The language that this business typically operates in. | |
| lastUpdatedDateTime | Datetime | False |
The last time that any field for this business has been updated. | |
| phone | String | False |
The phone number that can be used to contact the business or business owner. | |
| publicUrl | String | False |
The URL that would be used to reach the business's public website. | |
| schedulingPolicy_allowStaffSelection | Int | False |
A flag that indicates whether staff selection is possible when scheduling. | |
| schedulingPolicy_customAvailabilities | String | False |
The custom availabilities for scheduling. | |
| schedulingPolicy_generalAvailability_availabilityType | String | False |
The scheuling policy's availability type. | |
| schedulingPolicy_generalAvailability_businessHours | String | False |
The business hours that are used for scheduling purposes. | |
| schedulingPolicy_isMeetingInviteToCustomersEnabled | Int | False |
A flag that indicates if customers can be invited to meetings with this business. | |
| schedulingPolicy_maximumAdvance | String | False |
The maximum advance avilable during scheduling. | |
| schedulingPolicy_minimumLeadTime | String | False |
The minimum lead time available during scheduling. | |
| schedulingPolicy_sendConfirmationsToOwner | Int | False |
Indicates whether the scheduling confirmations are sent to the business owner. | |
| schedulingPolicy_timeSlotInterval | String | False |
The available time slot intervals that appear during scheduling for this business. | |
| webSiteUrl | String | False |
The URL of the business website. |
Information about the customer that is interacting with a business.
| Name | Type | ReadOnly | References | Description |
| addresses | String | False |
The addresses that the customer has attached to their profile. | |
| createdDateTime | Datetime | False |
The date and time when the customer profile was created. | |
| displayName | String | False |
The name of the customer. | |
| emailAddress | String | False |
An email address at which the customer can be reached. | |
| lastUpdatedDateTime | Datetime | False |
The last time when this customer record was modified. | |
| phones | String | False |
The phone numbers that may be used to reach this customer. | |
| bookingbusinessid | String | False |
A foreign key representing the business that owns this profile. | |
| Id [KEY] | String | False |
A unique identifier representing this customer profile. |
Custom questions that may be asked to a customer booking an appointment.
| Name | Type | ReadOnly | References | Description |
| answerInputType | String | False |
The type of answer input that is allowed. | |
| answerOptions | String | False |
The options for the answer to this question. | |
| createdDateTime | Datetime | False |
The datetime when this question was created. | |
| displayName | String | False |
The name that will be seen when displaying this question. | |
| lastUpdatedDateTime | Datetime | False |
The datetime when this quest last had a field modified. | |
| bookingbusinessid | String | False |
null | |
| Id [KEY] | String | False |
The unique identifier for this question. |
The services that a business makes available to customers.
| Name | Type | ReadOnly | References | Description |
| additionalInformation | String | False |
Additional details or information about the booking business. | |
| createdDateTime | Datetime | False |
The date and time when the booking business was created. | |
| customQuestions | String | False |
Custom questions or forms related to the booking process. | |
| defaultDuration | String | False |
The default duration for bookings, in minutes or hours. | |
| defaultLocation_address_city | String | False |
City of the default location for the booking business. | |
| defaultLocation_address_countryOrRegion | String | False |
Country or region of the default location for the booking business. | |
| defaultLocation_address_postalCode | String | False |
Postal code of the default location for the booking business. | |
| defaultLocation_address_state | String | False |
State or province of the default location for the booking business. | |
| defaultLocation_address_street | String | False |
Street address of the default location for the booking business. | |
| defaultLocation_coordinates_accuracy | Float | False |
Accuracy of the geographic coordinates of the default location. | |
| defaultLocation_coordinates_altitude | Float | False |
Altitude of the default location's geographic coordinates. | |
| defaultLocation_coordinates_altitudeAccuracy | Float | False |
Accuracy of the altitude measurement for the default location. | |
| defaultLocation_coordinates_latitude | Float | False |
Latitude of the default location's geographic coordinates. | |
| defaultLocation_coordinates_longitude | Float | False |
Longitude of the default location's geographic coordinates. | |
| defaultLocation_displayName | String | False |
The display name of the default location for the booking business. | |
| defaultLocation_locationEmailAddress | String | False |
Email address associated with the default location. | |
| defaultLocation_locationType | String | False |
The type of location (e.g., physical, virtual) for the booking business. | |
| defaultLocation_locationUri | String | False |
URI or URL of the default location for the booking business. | |
| defaultLocation_uniqueId | String | False |
A unique identifier for the default location. | |
| defaultLocation_uniqueIdType | String | False |
The type of the unique identifier for the default location. | |
| defaultPrice | Float | False |
The default price for a booking at this business. | |
| defaultPriceType | String | False |
The pricing model used by the business (e.g., flat, hourly). | |
| defaultReminders | String | False |
Default reminder settings for bookings, such as time before appointment. | |
| description | String | False |
A brief description of the booking business. | |
| displayName | String | False |
The name of the booking business or service. | |
| isAnonymousJoinEnabled | Int | False |
Indicates whether anonymous users can join the booking. | |
| isCustomerAllowedToManageBooking | Int | False |
Indicates if the customer can manage their own booking. | |
| isHiddenFromCustomers | Int | False |
Indicates if the booking business is hidden from customers. | |
| isLocationOnline | Int | False |
Indicates if the default location is currently online or available. | |
| languageTag | String | False |
The language or locale used for the booking business interface. | |
| lastUpdatedDateTime | Datetime | False |
The date and time when the booking business was last updated. | |
| maximumAttendeesCount | Int | False |
The maximum number of attendees allowed for a booking. | |
| notes | String | False |
Additional notes or instructions related to the booking business. | |
| postBuffer | String | False |
Time buffer after an appointment, before another can be scheduled. |
Information about the staff members of a business.
| Name | Type | ReadOnly | References | Description |
| availabilityIsAffectedByPersonalCalendar | Int | False |
Indicates if the availability of the user is affected by their personal calendar. | |
| createdDateTime | Datetime | False |
The date and time when the entity was created. | |
| displayName | String | False |
The display name of the entity or user. | |
| emailAddress | String | False |
The email address associated with the entity or user. | |
| isEmailNotificationEnabled | Int | False |
Indicates if email notifications are enabled for this entity. | |
| lastUpdatedDateTime | Datetime | False |
The date and time when the entity was last updated. | |
| membershipStatus | String | False |
The current membership status of the user or entity (e.g., active, inactive). | |
| role | String | False |
The role or position of the user within the system or organization (e.g., admin, user). | |
| timeZone | String | False |
The time zone of the entity or user. | |
| useBusinessHours | Int | False |
Indicates if the business hours setting is used for scheduling. | |
| workingHours | String | False |
The working hours of the entity or user, usually in a daily or weekly format. | |
| bookingbusinessid | String | False |
The identifier associated with the booking business. | |
| Id [KEY] | String | False |
A unique identifier for the entity. | |
| BookingBusinessId | String | False |
The unique identifier for the booking business. |
Provides details about calendars associated with users, including names, time zones, and ownership metadata. Maps dynamically to the API fields.
You can query Calendars by specifying an Id or selecting all:
SELECT * FROM Calendars WHERE Id = 'your Calendar Id goes here'
Select a certain column from the entity and filter by that column:
SELECT id FROM Calendars WHERE name LIKE 'Calendar%'
Specify a Name as a minimum in order to create a new Calendar:
INSERT INTO Calendars (Name) VALUES ('John')
Note: In case of client credentials, UserId is required in order to create a new Calendar:
INSERT INTO Calendars (Name, UserId) VALUES ('Test123', '92dfdfc6-f1d4-4965-9f71-30e4da4fa7fe');
| Name | Type | ReadOnly | References | Description |
| id [KEY] | String | True |
Unique identifier for the calendar object within the user's mailbox. | |
| Etag | String | False |
Entity tag used for version control of the calendar object. | |
| allowedOnlineMeetingProviders | String | False |
List of online meeting providers (with 1 space after each comma) that are allowed for this calendar, such as Teams, Skype, Webex. | |
| canEdit | Bool | False |
Indicates whether the user has permission to edit events on this calendar. | |
| canShare | Bool | False |
Indicates whether the user has permission to share this calendar with others. | |
| canViewPrivateItems | Bool | False |
Indicates whether the user can view events marked as private on this calendar. | |
| changeKey | String | False |
Token used to identify the version of the calendar object and detect changes. | |
| color | String | False |
Predefined color name assigned to this calendar for visual differentiation. | |
| defaultOnlineMeetingProvider | String | False |
Specifies the default provider used when scheduling online meetings from this calendar. | |
| hexColor | String | False |
Hexadecimal color code associated with the calendar (for example, #FF5733) for custom coloring. | |
| isDefaultCalendar | Bool | False |
Indicates whether this calendar is the user's default calendar. | |
| isRemovable | Bool | False |
Indicates whether this calendar can be removed by the user. | |
| isTallyingResponses | Bool | False |
Specifies whether responses to event invitations on this calendar are being tracked. | |
| name | String | False |
Display name assigned to the calendar, such as 'Work' or 'Personal'. | |
| owner_address | String | False |
Email address of the owner of the calendar. | |
| owner_name | String | False |
Display name of the calendar owner. | |
| UserId [KEY] | String | False |
Identifier of the user associated with the calendar entry. |
Contains user contact records, including names, email addresses, job titles, and business phone numbers synced from Office365.
Id を指定するかすべてを選択することで、Contacts をクエリできます。
SELECT * FROM Contacts WHERE Id = 'your Contact Id goes here'
エンティティから特定のカラムを選択して、そのカラムでフィルタします。
SELECT GivenName FROM Contacts WHERE GivenName LIKE 'John%'
新しいContact を作成するには、GivenName とSurname を最低限に指定します。
INSERT INTO Contacts (GivenName, Surname) VALUES ('John', 'Smith')
Note: In case of client credentials, UserId is required in order to create a new Contact:
INSERT INTO Contacts (GivenName, Surname, UserId) VALUES ('John', 'Smith', '92dfdfc6-f1d4-4965-9f71-30e4da4fa7fe')
| Name | Type | ReadOnly | References | Description |
| id [KEY] | String | True |
Unique identifier for the contact record. | |
| Etag | String | False |
Entity tag used to determine whether the contact has changed since it was last retrieved. | |
| categories | String | False |
List of categories assigned to the contact for organization or filtering. | |
| changeKey | String | False |
Version key that updates each time the contact is modified. | |
| createdDateTime | Datetime | False |
Timestamp indicating when the contact was created in the system. | |
| lastModifiedDateTime | Datetime | False |
Timestamp indicating the last time the contact was updated. | |
| assistantName | String | False |
Full name of the contact's assistant. | |
| birthday | Datetime | False |
The contact's date of birth. | |
| businessAddress_city | String | False |
City portion of the contact's business address. | |
| businessAddress_countryOrRegion | String | False |
Country or region of the contact's business address. | |
| businessAddress_postalCode | String | False |
Postal code of the contact's business address. | |
| businessAddress_state | String | False |
State or province of the contact's business address. | |
| businessAddress_street | String | False |
Street portion of the contact's business address. | |
| businessHomePage | String | False |
URL of the contact's business home page. | |
| businessPhones | String | False |
One or more business phone numbers associated with the contact. | |
| children | String | False |
Names of the contact's children, separated by commas. | |
| companyName | String | False |
Name of the company where the contact works. | |
| department | String | False |
Department within the company to which the contact belongs. | |
| displayName | String | False |
The contact's full display name as shown in the address book. | |
| emailAddresses | String | False |
List of email addresses associated with the contact. | |
| fileAs | String | False |
Text used to file and sort the contact in address books. | |
| generation | String | False |
Suffix denoting generational titles such as Jr., Sr., III. | |
| givenName | String | False |
The contact's first name or given name. | |
| homeAddress_city | String | False |
City portion of the contact's home address. | |
| homeAddress_countryOrRegion | String | False |
Country or region of the contact's home address. | |
| homeAddress_postalCode | String | False |
Postal code of the contact's home address. | |
| homeAddress_state | String | False |
State or province of the contact's home address. | |
| homeAddress_street | String | False |
Street portion of the contact's home address. | |
| homePhones | String | False |
One or more home phone numbers associated with the contact. | |
| imAddresses | String | False |
Instant messaging (IM) addresses associated with the contact. | |
| initials | String | False |
The contact's initials, typically derived from given and family names. | |
| jobTitle | String | False |
The contact's job title or position within the organization. | |
| manager | String | False |
Name of the contact's manager or supervisor. | |
| middleName | String | False |
The contact's middle name. | |
| mobilePhone | String | False |
Primary mobile phone number for the contact. | |
| nickName | String | False |
Nickname or informal name used for the contact. | |
| officeLocation | String | False |
Location or room number of the contact's office. | |
| otherAddress_city | String | False |
City portion of an alternate address for the contact. | |
| otherAddress_countryOrRegion | String | False |
Country or region of the contact's alternate address. | |
| otherAddress_postalCode | String | False |
Postal code of the contact's alternate address. | |
| otherAddress_state | String | False |
State or province of the contact's alternate address. | |
| otherAddress_street | String | False |
Street portion of the contact's alternate address. | |
| parentFolderId | String | False |
Identifier of the folder that contains the contact. | |
| personalNotes | String | False |
Freeform notes or annotations the user has added about the contact. | |
| profession | String | False |
The contact's profession or area of expertise. | |
| spouseName | String | False |
Name of the contact's spouse or partner. | |
| surname | String | False |
The contact's family name or surname. | |
| title | String | False |
Courtesy title or salutation for the contact such as Mr., Ms., Dr. | |
| yomiCompanyName | String | False |
Phonetic spelling of the contact's company name in Japanese kana. | |
| yomiGivenName | String | False |
Phonetic spelling of the contact's first name in Japanese kana. | |
| yomiSurname | String | False |
Phonetic spelling of the contact's last name in Japanese kana. | |
| UserId [KEY] | String | False |
Identifier for the user to whom the contact belongs. |
Stores threaded conversations from Microsoft 365 Groups, including messages and participants.
グループConversations を取得するには、GroupId が必要です
SELECT * FROM Conversations WHERE GroupId = 'your GroupId goes here'
また、GroupId とConversation Id を使ってグループConversations を取得することもできます。
SELECT * FROM Conversations WHERE Id = 'conversation Id here' AND GroupId = 'your GroupId goes here'
新しいConversation を作成するには、GroupId、Topic、Content、およびNewParticipants を指定します。NewParticipants は複合型です。フォーマットは次のとおりです:'name1, email1; name2, email2'。
INSERT INTO Conversations (GroupId, Topic, Content, NewParticipants) VALUES ('GroupId here', 'This is a test topic.', 'Hi, How Are you?', 'someone, [email protected]')
| Name | Type | ReadOnly | References | Description |
| id [KEY] | String | True |
Unique identifier for the conversation thread. | |
| Etag | String | False |
Entity tag used to detect changes to the conversation since it was last retrieved. | |
| hasAttachments | Bool | False |
Indicates whether any messages in the conversation contain attachments. | |
| lastDeliveredDateTime | Datetime | False |
Timestamp of the most recent message delivered in the conversation. | |
| preview | String | False |
Text snippet providing a short preview of the latest message in the conversation. | |
| topic | String | False |
The subject or topic line associated with the conversation. | |
| uniqueSenders | String | False |
Comma-separated list of unique senders who have contributed to the conversation. Each sender is listed once. For example: [email protected], [email protected]. | |
| GroupId [KEY] | String | False |
Identifier of the Microsoft 365 group associated with the conversation. | |
| Content | String | False |
Full content of the conversation, including messages and attachments where applicable. | |
| NewParticipants | String | False |
Comma-separated list of participants who have joined the conversation since the last message. For example: [email protected], [email protected]. |
Captures core details of calendar events, such as start and end times, locations, organizers, and recurrence rules. Maps dynamically to API fields.
デフォルトで、ドライバーはUserId 入力にMicrosoft Graph エイリアス'me' を使用し、サインインしているユーザーのイベントを返します。
これをオーバーライドするには、イベントを返すWHERE 句でUserId を指定します。
SELECT * FROM Events WHERE UserId = 'abc123' AND subject LIKE '%test%'
GroupId にはカレンダータイプのId またはグループId を指定できます。例:
SELECT * FROM Events WHERE GroupId = 'enter your group Id here'
新しいイベントを作成するには、start_dateTime、start_timeZone、end_dateTime、およびend_timeZone を指定する必要があります。
INSERT INTO Events (subject, body_content, start_DateTime, start_TimeZone, end_DateTime, end_TimeZone) VALUES ('New Test Event', 'Event created using Office365Provider', '2016-01-01T10:00:00', 'UTC', '2016-01-01T11:00:00', 'UTC')
Note:デフォルトで、このステートメントはイベントをデフォルトカレンダー内に作成します。
クライアント資格情報を使用して新しいイベントを作成するには、UserId を指定する必要があります。
INSERT INTO Events (subject, body_content, start_dateTime, start_timeZone, end_dateTime, end_timeZone, UserId) VALUES ('New Test Event', 'Event created using Office365Provider', '2016-01-01T10:00:00', 'UTC', '2016-01-01T11:00:00', 'UTC', '92dfdfc6-f1d4-4965-9f71-30e4da4fa7fe')
非プリミティブコレクションフィールド(例:attendees)は、イベントを挿入する際に完全なJSON 集計として提供する必要があります。
INSERT INTO Events (
attendees,
subject,
body_content,
start_dateTime,
start_timeZone,
end_dateTime,
end_timeZone,
UserId
)
VALUES (
'[{"emailAddress":{"address":"[email protected]","name":"Existing attendee"},"type":"required"},
{"emailAddress":{"address":"[email protected]","name":"Another New Person"},"type":"optional"}]',
'New Test Event',
'Event created using Office365Provider',
'2025-10-10T10:00:00',
'UTC',
'2025-10-10T11:00:00',
'UTC',
'a9920804-3212-4f9d-aac7-f55c697fa2bc'
);
非プリミティブコレクションフィールド(例:attendees)は、イベントを更新する際に完全なJSON 集計として提供する必要があります。
UPDATE Events
SET subject = 'Test subject',
attendees = '[{"emailAddress":{"address":"[email protected]","name":"Required attendee"},"type":"required"},
{"emailAddress":{"address":"[email protected]","name":"Another New Person"},"type":"optional"}]'
WHERE Id = 'AAMkADAxN2QyZTIwLTY0YjEtNDZiNy04ZjFhLTU2MzA0ZWNjMGNjYwBGAAAAAADpUZiyrqBVQpCowL_0uo9dBwBhzddEbK9VR5ygMcniqu-UAAAAAAENAABhzddEbK9VR5ygMcniqu-UAACrGWckAAA=';
| Name | Type | ReadOnly | References | Description |
| id [KEY] | String | True |
Unique identifier for the event record. | |
| Etag | String | False |
Entity tag used to identify changes to the event data since it was last retrieved. | |
| categories | String | False |
List of categories assigned to the event for organization or filtering. | |
| changeKey | String | False |
Version key that updates every time the event is changed. | |
| createdDateTime | Datetime | False |
Timestamp indicating when the event was created. | |
| lastModifiedDateTime | Datetime | False |
Timestamp indicating the most recent update to the event. | |
| allowNewTimeProposals | Bool | False |
Indicates whether attendees are allowed to propose a new meeting time. | |
| attendees | String | False |
List of attendees invited to the event. For example: [email protected], [email protected]. | |
| body_content | String | False |
Full message body or description of the event. | |
| body_contentType | String | False |
Format of the body content, such as text or HTML. | |
| bodyPreview | String | False |
Short preview or snippet from the event description. | |
| end_dateTime | Datetime | False |
End time of the event in local time. | |
| end_timeZone | String | False |
Time zone associated with the end time. | |
| hasAttachments | Bool | False |
Indicates whether the event has associated file attachments. | |
| hideAttendees | Bool | False |
True if attendee information is hidden from other participants. | |
| iCalUId | String | False |
Unique identifier used to synchronize the event across calendar systems. | |
| importance | String | False |
Importance level of the event, such as low, normal, or high. | |
| isAllDay | Bool | False |
True if the event spans the entire day without specific start or end times. | |
| isCancelled | Bool | False |
True if the event has been canceled. | |
| isDraft | Bool | False |
True if the event is a draft and has not been finalized. | |
| isOnlineMeeting | Bool | False |
True if the event includes an online meeting component. | |
| isOrganizer | Bool | False |
True if the current user is the organizer of the event. | |
| isReminderOn | Bool | False |
Indicates whether a reminder is enabled for the event. | |
| location_address_city | String | False |
City component of the event's location. | |
| location_address_countryOrRegion | String | False |
Country or region of the event's location. | |
| location_address_postalCode | String | False |
Postal code for the event location. | |
| location_address_state | String | False |
State or province of the event location. | |
| location_address_street | String | False |
Street address where the event takes place. | |
| location_coordinates_accuracy | Double | False |
Precision of the location's geographic coordinates in meters. | |
| location_coordinates_altitude | Double | False |
Altitude of the event location in meters above sea level. | |
| location_coordinates_altitudeAccuracy | Double | False |
Accuracy of the altitude measurement in meters. | |
| location_coordinates_latitude | Double | False |
Latitude coordinate of the event location. | |
| location_coordinates_longitude | Double | False |
Longitude coordinate of the event location. | |
| location_displayName | String | False |
Display name of the event location. | |
| location_locationEmailAddress | String | False |
Email address of the location resource, such as a meeting room. | |
| location_locationType | String | False |
Type of location, such as default, conference room, or home address. | |
| location_locationUri | String | False |
URI or web-based reference for the location, if available. | |
| location_uniqueId | String | False |
Unique identifier for the location object. | |
| location_uniqueIdType | String | False |
Source of the location ID, such as directory or locationStore. | |
| locations | String | False |
List of additional locations for the event. For example: Conference Room A, Main Hall. | |
| onlineMeeting_conferenceId | String | False |
Conference ID used by the online meeting provider. | |
| onlineMeeting_joinUrl | String | False |
Join URL used by participants to access the online meeting. | |
| onlineMeeting_phones | String | False |
Phone numbers available for dial-in access to the online meeting. | |
| onlineMeeting_quickDial | String | False |
Quick dial string that participants can use to join the meeting quickly. | |
| onlineMeeting_tollFreeNumbers | String | False |
Toll-free phone numbers for joining the online meeting. For example: 8001234567, 8887654321. | |
| onlineMeeting_tollNumber | String | False |
Standard toll number for dialing into the online meeting. | |
| onlineMeetingProvider | String | False |
Online meeting provider used for the event, such as Teams or Skype for Business. | |
| onlineMeetingUrl | String | False |
Full URL to the online meeting interface. | |
| organizer_emailAddress_address | String | False |
Email address of the event organizer. | |
| organizer_emailAddress_name | String | False |
Display name of the event organizer. | |
| originalEndTimeZone | String | False |
Time zone that was originally assigned to the event end time. | |
| originalStart | Datetime | False |
Original start time of the event before any changes were made. | |
| originalStartTimeZone | String | False |
Time zone that was originally assigned to the event start time. | |
| recurrence_pattern_dayOfMonth | Int | False |
Day of the month on which the event recurs, for monthly patterns. | |
| recurrence_pattern_daysOfWeek | String | False |
Days of the week when the event recurs. For example: Monday, Wednesday, Friday. | |
| recurrence_pattern_firstDayOfWeek | String | False |
Day considered the start of the week for recurrence calculations. | |
| recurrence_pattern_index | String | False |
Occurrence within the month for weekly patterns, such as first or last. | |
| recurrence_pattern_interval | Int | False |
Interval between recurrences, such as every 2 weeks or every 3 days. | |
| recurrence_pattern_month | Int | False |
Month of the year when the event occurs, used for yearly patterns. | |
| recurrence_pattern_type | String | False |
Pattern type for recurrence, such as daily, weekly, monthly, or yearly. | |
| recurrence_range_endDate | Datetime | False |
Date on which the recurring event ends. | |
| recurrence_range_numberOfOccurrences | Int | False |
Number of times the event is set to occur. | |
| recurrence_range_recurrenceTimeZone | String | False |
Time zone used for the recurrence pattern. | |
| recurrence_range_startDate | Datetime | False |
Start date of the recurrence range. | |
| recurrence_range_type | String | False |
Type of recurrence range, such as endDate, numberOfOccurrences, or noEnd. | |
| reminderMinutesBeforeStart | Int | False |
Number of minutes before the start time when a reminder is triggered. | |
| responseRequested | Bool | False |
True if the organizer has requested attendee responses. | |
| responseStatus_response | String | False |
The current response status from an attendee, such as accepted or declined. | |
| responseStatus_time | Datetime | False |
Timestamp of the attendee's most recent response. | |
| sensitivity | String | False |
Sensitivity level of the event, such as normal, personal, private, or confidential. | |
| seriesMasterId | String | False |
Identifier for the master event in a recurring series. | |
| showAs | String | False |
How the event is displayed on calendars, such as free, busy, or out of office. | |
| start_dateTime | Datetime | False |
Start time of the event in local time. | |
| start_timeZone | String | False |
Time zone associated with the start time. | |
| subject | String | False |
Subject or title of the event. | |
| transactionId | String | False |
Client-defined identifier to detect duplicate event submissions. | |
| type | String | False |
Type of event, such as singleInstance, occurrence, exception, or seriesMaster. | |
| webLink | String | False |
URL that opens the event in a web browser. | |
| UserId | String | False |
Identifier of the user who owns or created the event. | |
| GroupId | String | False |
Identifier of the Microsoft 365 group associated with the event. |
Lists files stored in OneDrive or SharePoint, with metadata including file names, locations, last modified times, and sharing status.
例えばUserId やFile Id (Id) を使ってファイルを取得したり、単純に特定のカラムでフィルタしたりします。
SELECT * FROM Files WHERE UserId = 'MyUserId' SELECT Name, LastModifiedDateTime FROM Files WHERE Name LIKE 'test%'
フォルダレベルのファイルに対応するには、クエリでparentReference_path を指定する必要があります。
SELECT * FROM files WHERE parentReference_path = '/drives/b!3LIvU2zISEqicGlWkgVknKxKT-q7gM5IqlBJ4w4MZqaX6BQc_vtwQpnqaldXkH9I/root:/Test_Shubham';
INSERT 操作は、このテーブルではサポートされていません。
Note:ファイルの内容を挿入および更新するには、UploadFile を(フォルダを作成するにはCreateFolder を)参照してください。
| Name | Type | ReadOnly | References | Description |
| id [KEY] | String | True |
Unique identifier for the file object. | |
| Etag | String | False |
Entity tag representing the version of the file for concurrency control. | |
| createdBy_application_displayName | String | False |
Display name of the application that created the file. | |
| createdBy_application_id | String | False |
Identifier of the application that created the file. | |
| createdDateTime | Datetime | False |
Timestamp indicating when the file was created. | |
| description | String | False |
User-defined or system-generated description of the file. | |
| lastModifiedBy_application_displayName | String | False |
Display name of the application that last modified the file. | |
| lastModifiedBy_application_id | String | False |
Identifier of the application that last modified the file. | |
| lastModifiedDateTime | Datetime | False |
Timestamp indicating the last modification time of the file. | |
| name | String | False |
Name of the file. | |
| parentReference_driveId | String | False |
Drive ID of the parent folder that contains the file. | |
| parentReference_driveType | String | False |
Type of drive (for example, personal, business, or document library) where the file resides. | |
| parentReference_id | String | False |
ID of the parent folder or drive reference. | |
| parentReference_name | String | False |
Name of the parent folder containing the file. | |
| parentReference_path | String | False |
Path from the drive root to the parent folder. | |
| parentReference_shareId | String | False |
Sharing ID associated with the parent reference. | |
| parentReference_sharepointIds_listId | String | False |
SharePoint list ID linked to the parent reference. | |
| parentReference_sharepointIds_listItemId | String | False |
List item ID in SharePoint for the parent reference. | |
| parentReference_sharepointIds_listItemUniqueId | String | False |
Unique ID of the list item in SharePoint for the parent reference. | |
| parentReference_sharepointIds_siteId | String | False |
Site ID in SharePoint associated with the parent reference. | |
| parentReference_sharepointIds_siteUrl | String | False |
URL of the SharePoint site related to the parent reference. | |
| parentReference_sharepointIds_tenantId | String | False |
Tenant ID for the SharePoint environment of the parent reference. | |
| parentReference_sharepointIds_webId | String | False |
Web ID in SharePoint for the parent reference. | |
| parentReference_siteId | String | False |
Site ID associated with the file's parent location. | |
| webUrl | String | False |
Web-accessible URL pointing to the file. | |
| audio_album | String | False |
Album title associated with the audio file. | |
| audio_albumArtist | String | False |
Primary artist for the album associated with the audio file. | |
| audio_artist | String | False |
Artist of the audio file. | |
| audio_bitrate | Long | False |
Bitrate of the audio content in bits per second. | |
| audio_composers | String | False |
List of composers for the audio content. | |
| audio_copyright | String | False |
Copyright statement for the audio file. | |
| audio_disc | Int | False |
Disc number for multi-disc audio content. | |
| audio_discCount | Int | False |
Total number of discs in the album. | |
| audio_duration | Long | False |
Duration of the audio content in milliseconds. | |
| audio_genre | String | False |
Genre of the audio content. | |
| audio_hasDrm | Bool | False |
Indicates whether the audio file is protected by digital rights management. | |
| audio_isVariableBitrate | Bool | False |
Indicates whether the audio file uses variable bitrate encoding. | |
| audio_title | String | False |
Title of the audio track. | |
| audio_track | Int | False |
Track number of the audio file within the album. | |
| audio_trackCount | Int | False |
Total number of tracks in the album. | |
| audio_year | Int | False |
Year the audio track was released. | |
| content | String | False |
File contents in raw or encoded format. | |
| cTag | String | False |
Client tag used for managing file changes and synchronization. | |
| deleted_state | String | False |
Indicates the deletion state of the file, such as deleted or notDeleted. | |
| file_hashes_crc32Hash | String | False |
CRC32 hash value used to validate file content integrity. | |
| file_hashes_quickXorHash | String | False |
QuickXorHash used for content comparison and validation. | |
| file_hashes_sha1Hash | String | False |
SHA-1 hash of the file contents. | |
| file_hashes_sha256Hash | String | False |
SHA-256 hash of the file contents. | |
| file_mimeType | String | False |
MIME type indicating the file format, such as text/plain or application/pdf. | |
| file_processingMetadata | Bool | False |
Indicates whether metadata processing is complete for the file. | |
| fileSystemInfo_createdDateTime | Datetime | False |
Creation timestamp of the file from the file system. | |
| fileSystemInfo_lastAccessedDateTime | Datetime | False |
Last accessed timestamp recorded by the file system. | |
| fileSystemInfo_lastModifiedDateTime | Datetime | False |
Last modified timestamp recorded by the file system. | |
| folder_childCount | Int | False |
Number of child items within the folder. | |
| folder_view_sortBy | String | False |
Default column used to sort items in the folder view. | |
| folder_view_sortOrder | String | False |
Sort order (ascending or descending) used in the folder view. | |
| folder_view_viewType | String | False |
Type of folder view, such as details or thumbnails. | |
| image_height | Int | False |
Height of the image in pixels. | |
| image_width | Int | False |
Width of the image in pixels. | |
| location_altitude | Double | False |
Altitude where the image or file was captured, in meters. | |
| location_latitude | Double | False |
Latitude coordinate where the file or photo was created. | |
| location_longitude | Double | False |
Longitude coordinate where the file or photo was created. | |
| package_type | String | False |
Type of file package, such as oneNote or PDFPackage. | |
| pendingOperations_pendingContentUpdate_queuedDateTime | Datetime | False |
Timestamp when a pending content update was queued. | |
| photo_cameraMake | String | False |
Manufacturer of the camera used to take the photo. | |
| photo_cameraModel | String | False |
Model of the camera used to take the photo. | |
| photo_exposureDenominator | Double | False |
Denominator value for the exposure time used in the photo. | |
| photo_exposureNumerator | Double | False |
Numerator value for the exposure time used in the photo. | |
| photo_fNumber | Double | False |
F-number indicating the aperture setting of the camera. | |
| photo_focalLength | Double | False |
Focal length of the camera lens in millimeters. | |
| photo_iso | Int | False |
ISO setting used when the photo was taken. | |
| photo_orientation | Int | False |
Orientation value of the photo, indicating how it was rotated when taken. | |
| photo_takenDateTime | Datetime | False |
Timestamp when the photo was captured. | |
| publication_level | String | False |
Indicates the publication level, such as draft or published. | |
| publication_versionId | String | False |
Version ID of the published file. | |
| remoteItem_createdBy_application_displayName | String | False |
Display name of the application that originally created the remote item. | |
| remoteItem_createdBy_application_id | String | False |
Identifier of the application that created the remote item. | |
| remoteItem_createdDateTime | Datetime | False |
Timestamp when the remote item was created. | |
| remoteItem_file_hashes_crc32Hash | String | False |
CRC32 hash of the remote file used to verify data integrity. | |
| remoteItem_file_hashes_quickXorHash | String | False |
QuickXorHash of the remote file for efficient content comparison. | |
| remoteItem_file_hashes_sha1Hash | String | False |
SHA-1 hash of the remote file content. | |
| remoteItem_file_hashes_sha256Hash | String | False |
SHA-256 hash of the remote file content. | |
| remoteItem_file_mimeType | String | False |
MIME type of the remote file, identifying its format. | |
| remoteItem_file_processingMetadata | Bool | False |
Indicates whether metadata processing is complete for the remote file. | |
| remoteItem_fileSystemInfo_createdDateTime | Datetime | False |
Timestamp of when the remote file was created in the file system. | |
| remoteItem_fileSystemInfo_lastAccessedDateTime | Datetime | False |
Timestamp of when the remote file was last accessed. | |
| remoteItem_fileSystemInfo_lastModifiedDateTime | Datetime | False |
Timestamp of when the remote file was last modified. | |
| remoteItem_folder_childCount | Int | False |
Number of child items in the remote folder. | |
| remoteItem_folder_view_sortBy | String | False |
Field used to sort child items in the remote folder view. | |
| remoteItem_folder_view_sortOrder | String | False |
Sort order used in the remote folder view (ascending or descending). | |
| remoteItem_folder_view_viewType | String | False |
Type of view used for the remote folder, such as list or grid. | |
| remoteItem_id | String | False |
Unique identifier for the remote item. | |
| remoteItem_image_height | Int | False |
Height of the remote image in pixels. | |
| remoteItem_image_width | Int | False |
Width of the remote image in pixels. | |
| remoteItem_lastModifiedDateTime | Datetime | False |
Timestamp indicating when the remote item was last modified. | |
| remoteItem_name | String | False |
Name of the remote item. | |
| remoteItem_package_type | String | False |
Package type of the remote item, such as oneNote or PDFPackage. | |
| remoteItem_parentReference_driveId | String | False |
Drive ID of the parent folder of the remote item. | |
| remoteItem_parentReference_driveType | String | False |
Type of drive containing the remote item. | |
| remoteItem_parentReference_id | String | False |
Identifier of the remote item's parent folder. | |
| remoteItem_parentReference_name | String | False |
Name of the folder containing the remote item. | |
| remoteItem_parentReference_path | String | False |
Full path from the drive root to the remote item's parent. | |
| remoteItem_parentReference_shareId | String | False |
Share ID associated with the parent of the remote item. | |
| remoteItem_parentReference_sharepointIds_listId | String | False |
SharePoint list ID associated with the remote item's parent. | |
| remoteItem_parentReference_sharepointIds_listItemId | String | False |
SharePoint list item ID for the remote item's parent. | |
| remoteItem_parentReference_sharepointIds_listItemUniqueId | String | False |
Unique ID of the SharePoint list item for the remote item's parent. | |
| remoteItem_parentReference_sharepointIds_siteId | String | False |
SharePoint site ID associated with the parent of the remote item. | |
| remoteItem_parentReference_sharepointIds_siteUrl | String | False |
SharePoint site URL associated with the remote item's parent. | |
| remoteItem_parentReference_sharepointIds_tenantId | String | False |
Tenant ID of the SharePoint site for the remote item's parent. | |
| remoteItem_parentReference_sharepointIds_webId | String | False |
Web ID of the SharePoint site for the remote item's parent. | |
| remoteItem_parentReference_siteId | String | False |
Site ID where the remote item's parent folder is located. | |
| remoteItem_shared_scope | String | False |
Scope of sharing for the remote item, such as users or organization. | |
| remoteItem_shared_sharedDateTime | Datetime | False |
Timestamp when the remote item was shared. | |
| remoteItem_size | Long | False |
Size of the remote item in bytes. | |
| remoteItem_specialFolder_name | String | False |
Name of the special folder associated with the remote item, such as documents or photos. | |
| remoteItem_video_audioBitsPerSample | Int | False |
Bit depth per audio sample in the remote video file. | |
| remoteItem_video_audioChannels | Int | False |
Number of audio channels in the remote video file. | |
| remoteItem_video_audioSamplesPerSecond | Int | False |
Audio sample rate in samples per second for the remote video. | |
| remoteItem_video_bitrate | Int | False |
Bitrate of the remote video content in bits per second. | |
| remoteItem_video_duration | Long | False |
Duration of the remote video in milliseconds. | |
| remoteItem_video_fourCC | String | False |
Four-character code (FourCC) identifying the video codec of the remote video. | |
| remoteItem_video_frameRate | Double | False |
Frame rate of the remote video in frames per second. | |
| remoteItem_video_height | Int | False |
Height of the remote video in pixels. | |
| remoteItem_video_width | Int | False |
Width of the remote video in pixels. | |
| remoteItem_webDavUrl | String | False |
WebDAV URL that provides remote access to the item. | |
| remoteItem_webUrl | String | False |
Publicly accessible web URL of the remote item. | |
| searchResult_onClickTelemetryUrl | String | False |
URL used to collect telemetry when a search result is clicked. | |
| shared_owner_application_displayName | String | False |
Display name of the application that owns the shared item. | |
| shared_owner_application_id | String | False |
Identifier of the application that owns the shared item. | |
| shared_scope | String | False |
Scope of the sharing, such as anonymous or organization. | |
| shared_sharedDateTime | Datetime | False |
Timestamp indicating when the item was shared. | |
| sharepointIds_listId | String | False |
SharePoint list ID associated with the item. | |
| sharepointIds_listItemId | String | False |
List item ID within the SharePoint list. | |
| sharepointIds_listItemUniqueId | String | False |
Globally unique identifier of the SharePoint list item. | |
| sharepointIds_siteId | String | False |
SharePoint site ID where the item resides. | |
| sharepointIds_siteUrl | String | False |
URL of the SharePoint site containing the item. | |
| sharepointIds_tenantId | String | False |
Tenant ID of the SharePoint organization. | |
| sharepointIds_webId | String | False |
Web ID of the SharePoint site. | |
| size | Long | False |
Total size of the file in bytes. | |
| specialFolder_name | String | False |
Type of special folder, such as documents or photos, associated with the item. | |
| video_audioBitsPerSample | Int | False |
Number of bits per audio sample in the video file. | |
| video_audioChannels | Int | False |
Number of audio channels in the video. | |
| video_audioFormat | String | False |
Format of the audio stream embedded in the video. | |
| video_audioSamplesPerSecond | Int | False |
Sampling rate of the audio stream in samples per second. | |
| video_bitrate | Int | False |
Bitrate of the video content in bits per second. | |
| video_duration | Long | False |
Total duration of the video in milliseconds. | |
| video_fourCC | String | False |
FourCC representing the video codec. | |
| video_frameRate | Double | False |
Video frame rate measured in frames per second. | |
| video_height | Int | False |
Vertical resolution of the video in pixels. | |
| video_width | Int | False |
Horizontal resolution of the video in pixels. | |
| webDavUrl | String | False |
WebDAV endpoint URL to access the file remotely. | |
| UserId | String | False |
Identifier of the user who owns or uploaded the file. |
Includes metadata about Microsoft 365 Groups, such as group names, descriptions, email aliases, and visibility settings.
Groups には管理者権限が必要です。それらを使用するには、独自のカスタムOAuth アプリを作成して、適切なOAuthClientId とOAuthClientSecret を 設定する必要があります。このアプリでは、Group.Read.All とGroup.ReadWrite.All の権限をリクエストするように設定する必要があります。 これは、https://apps.dev.microsoft.com またはhttp://portal.azure.com の[App Registrations]パネルで設定できます。カスタムアプリの作成に関する 詳細は、Entra ID(Azure AD)アプリケーションの作成 を参照してください。
Groups 権限を認可するには、管理者は組織全体に対してGroups のアクセス許可を付与する必要があります。これは、管理者の認可エンドポイントを
介して実行できます。管理者に次のWeb ページに移動して許可を与えさせるだけです。その後、通常どおりにOAuth 認可を実行します。
https://login.microsoftonline.com/common/adminconsent?client_id=[YourClientId]&redirect_uri=http://localhost:33333
組織に複数のテナントがある場合は、url の/common/ をテナントのID に置き換えて、どのテナントに権限を付与するかを指定できます。
すべてのグループを取得したり、GroupId (Id) を指定したり、あるいは特定のカラムでフィルタしたりします。
SELECT * FROM Groups WHERE Id = 'Group Id here' SELECT Id, Description, DisplayName FROM Groups WHERE DisplayName = 'test'
新しいSecurity Group を作成するには、以下が必要です。
INSERT INTO Groups (DisplayName, MailEnabled, MailNickname, SecurityEnabled) VALUES ('Test group', false, 'test', true)
| Name | Type | ReadOnly | References | Description |
| id [KEY] | String | True |
Globally Unique Identifier (GUID) for the Microsoft 365 group. | |
| Etag | String | False |
Entity tag value used for optimistic concurrency checks on the group record. | |
| deletedDateTime | Datetime | False |
Date and time when the group was soft deleted. Null if the group is active. | |
| allowExternalSenders | Bool | False |
Indicates whether people outside the organization can send email to the group. | |
| assignedLabels | String | False |
Sensitivity labels currently applied to the group, stored in JSON format. | |
| assignedLicenses | String | False |
List of Azure Active Directory license SKUs that have been assigned to the group. | |
| autoSubscribeNewMembers | Bool | False |
Indicates whether any new member added to the group is automatically subscribed to receive email conversations. | |
| classification | String | False |
Data classification label, such as Public or Confidential, that the organization has applied to the group. | |
| createdDateTime | Datetime | False |
Timestamp indicating when the group was created. | |
| description | String | False |
Optional text describing the group's purpose or intended use. | |
| displayName | String | False |
Friendly display name for the group as shown in address books. | |
| expirationDateTime | Datetime | False |
Date and time when the group expires and is deleted if it is not renewed. | |
| groupTypes | String | False |
Collection that defines the group type. Accepted values are Unified for Microsoft 365 groups, DynamicMembership for dynamic groups. | |
| hasMembersWithLicenseErrors | Bool | False |
Indicates whether any group members have license assignment errors. | |
| hideFromAddressLists | Bool | False |
Indicates whether the group is hidden from the global address list. | |
| hideFromOutlookClients | Bool | False |
Indicates whether the group does not appear in Outlook clients. | |
| isArchived | Bool | False |
Indicates whether the group has been archived in Microsoft Teams. | |
| isSubscribedByMail | Bool | False |
Indicates whether the current user is subscribed to receive email for this group. | |
| licenseProcessingState_state | String | False |
Current status of processing group-based license assignments, such as InProgress or Completed. | |
| String | False |
Primary SMTP address of the group. | ||
| mailEnabled | Bool | False |
Indicates whether the group is configured to receive mail. Combined with securityEnabled determines group category. | |
| mailNickname | String | False |
Alias for the group that is unique within the organization and forms the local part of its email address. | |
| membershipRule | String | False |
Rule expression that defines the dynamic group membership, written in Azure Active Directory rule syntax. | |
| membershipRuleProcessingState | String | False |
Processing state of the dynamic membership rule, such as On or Paused. | |
| onPremisesDomainName | String | False |
Domain name where the corresponding on-premises group is located. | |
| onPremisesLastSyncDateTime | Datetime | False |
Timestamp when the group was last synchronized from the on-premises directory. | |
| onPremisesNetBiosName | String | False |
NetBIOS name of the on-premises domain for the group. | |
| onPremisesProvisioningErrors | String | False |
Collection of errors encountered during on-premises synchronization provisioning. | |
| onPremisesSamAccountName | String | False |
Security Account Manager (SAM) account name of the on-premises group. | |
| onPremisesSecurityIdentifier | String | False |
On-premises security identifier (SID) that maps to the cloud group. | |
| onPremisesSyncEnabled | Bool | False |
Indicates whether the group continues to be synchronized from the on-premises directory. | |
| preferredDataLocation | String | False |
Azure geography where the group's SharePoint and OneDrive data is stored. | |
| preferredLanguage | String | False |
Default language tag, for example en-US, used in group communications. | |
| proxyAddresses | String | False |
Set of proxy email addresses assigned to the group, such as SMTP:[email protected], sip:[email protected]. | |
| renewedDateTime | Datetime | False |
Timestamp when the group was last renewed through lifecycle policy. | |
| securityEnabled | Bool | False |
Indicates whether the group is security-enabled. When true and mailEnabled is also true, the group is a mail-enabled security group. | |
| securityIdentifier | String | False |
SID assigned to the group in Azure Active Directory. | |
| theme | String | False |
Custom theme identifier applied to the group in SharePoint or Teams. | |
| unseenCount | Int | False |
Number of group posts that the current user has not yet read. | |
| visibility | String | False |
Defines who can see the group. Possible values are Private, Public, HiddenMembership, or empty (interpreted as Public). |
Lists all mail folders within user mailboxes, such as Inbox, Sent Items, and custom folders. It enables folder-level message organization and navigation in Office365.
| Name | Type | ReadOnly | References | Description |
| id [KEY] | String | False |
Unique identifier for the mail folder, used to retrieve or reference the folder within the user's mailbox hierarchy. | |
| childFolderCount | Int | False |
Total number of child folders contained within this folder. Helps determine folder structure depth and sub-organization. | |
| displayName | String | False |
The display name of the mail folder as shown in the user interface, such as 'Inbox', 'Drafts', or custom folder names. | |
| parentFolderId | String | False |
Identifier of the parent folder. Used to establish the folder hierarchy and trace nesting relationships among mail folders. | |
| totalItemCount | Int | False |
The total number of mail items—both read and unread—contained in the folder, including messages, calendar items, or other supported types. | |
| unreadItemCount | Int | False |
The number of unread items in the folder, typically used to indicate pending or new messages. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| userId | String |
Represents the user who owns the mailbox containing the folder. This is used to scope the folder data to a specific user. |
Contains email messages from user mailboxes, including subjects, senders, timestamps, and read status.
Messages からすべてを取得したり、Message (Id)、UserId、またはParentFolderId を指定したり、あるいは結果を特定のカラムでフィルタしたりできます。
SELECT * FROM Messages WHERE Id = 'MyMessageId' SELECT * FROM Messages WHERE UserId = 'MyUserId' SELECT * FROM Messages WHERE ParentFolderId = 'MyParentfolderId' SELECT * FROM Messages WHERE ParentFolderId = 'Drafts' SELECT DisplayName, Id FROM Users WHERE DisplayName LIKE 'John%'
INSERT 後、新しいMessage がユーザーのDrafts フォルダに作成されます。
INSERT INTO Messages (Subject, Body_Content, UserId) VALUES ('New test Email', 'Test Email created.', 'User Id goes here')
Note:メールを送信するには、SendMail を参照してください。
To update a message:
UPDATE Messages SET Subject = 'Email Updated', Body_Content = 'New Body Content' WHERE Id = 'MyMessageId'
If you are executing an INSERT or UPDATE and your message has HTML in its body_content, you must set body_contentType to 'html'.
UPDATE Messages SET body_content = '<my html document>', body_contentType = 'html'
If you don't set body_contentType to 'html', the HTML content of the message (such as elements and tags) will be visible in the body of the resulting email as plaintext instead of being processed as HTML.
This table may return an inconsistent number of results. That is, it can return a number of rows for one query and a different numbers of rows in subsequent queries, even when your messages remain unchanged. This means that some messages may be missing when querying this table.
This is a known bug in the Microsoft Graph API.
There is a workaround that allows the Cloud to retrieve all messages, but it comes with a tradeoff: 'events' and 'contacts' data will be returned along with 'messages' data. When using this workaround, you must use filtering to distinguish between message and non-message rows.
To enable this workaround, add "ClientSidePaging=true;" (without quotation marks) in the value of the Other connection property.
| Name | Type | ReadOnly | References | Description |
| id [KEY] | String | True |
Unique identifier for the message. | |
| Etag | String | False |
Entity tag representing the version of the message, used for concurrency control. | |
| categories | String | False |
List of categories assigned to the message, such as Red Category or Blue Category. | |
| changeKey | String | False |
Version-specific identifier that changes whenever the message is updated. | |
| createdDateTime | Datetime | False |
Timestamp indicating when the message was created in the mailbox. | |
| lastModifiedDateTime | Datetime | False |
Timestamp of the last modification to the message. | |
| bccRecipients | String | False |
Collection of recipients who received the message as BCC. | |
| body_content | String | False |
HTML or plain text content of the message body. | |
| body_contentType | String | False |
Specifies whether the message body content is in HTML or plain text format. | |
| bodyPreview | String | False |
Text preview of the message body, typically the first few lines. | |
| ccRecipients | String | False |
Collection of recipients who received the message as CC. | |
| conversationId | String | False |
Identifier that groups related messages into the same conversation thread. | |
| conversationIndex | Binary | False |
Binary value used to sort and order messages within the same conversation. | |
| flag_completedDateTime_dateTime | Datetime | False |
Timestamp marking when the follow-up flag was completed. | |
| flag_completedDateTime_timeZone | String | False |
Time zone associated with the flag completion date and time. | |
| flag_flagStatus | String | False |
Status of the follow-up flag, such as notFlagged, complete, or flagged. | |
| from_emailAddress_address | String | False |
Email address of the sender shown in the From field. | |
| from_emailAddress_name | String | False |
Display name of the sender shown in the From field. | |
| hasAttachments | Bool | False |
Indicates whether the message includes one or more file attachments. | |
| importance | String | False |
Priority level of the message: Low, Normal, or High. | |
| inferenceClassification | String | False |
Specifies if the message was classified as focused or other by the inbox rule system. | |
| internetMessageHeaders | String | False |
Raw internet headers of the email message, such as MIME-Version, From, To, and Received. | |
| internetMessageId | String | False |
Globally unique identifier assigned by the sending mail server. | |
| isDeliveryReceiptRequested | Bool | False |
Indicates whether a delivery receipt was requested for the message. | |
| isDraft | Bool | False |
Indicates whether the message has been saved as a draft and not yet sent. | |
| isRead | Bool | False |
Indicates whether the message has been read by the user. | |
| isReadReceiptRequested | Bool | False |
Indicates whether a read receipt was requested for the message. | |
| parentFolderId | String | False |
Identifier of the folder that contains the message. | |
| receivedDateTime | Datetime | False |
Timestamp when the message was received by the mailbox. | |
| replyTo | String | False |
Collection of addresses that replies should be sent to, overriding the From address. | |
| sender_emailAddress_address | String | False |
Email address of the actual sender of the message. | |
| sender_emailAddress_name | String | False |
Display name of the actual sender of the message. | |
| sentDateTime | Datetime | False |
Timestamp when the message was sent. | |
| subject | String | False |
Subject line of the message as entered by the sender. | |
| toRecipients | String | False |
Collection of recipients in the To field of the message. | |
| uniqueBody_content | String | False |
Message body content that excludes previous replies or forwards. | |
| uniqueBody_contentType | String | False |
Specifies the format of the unique body content: HTML or plain text. | |
| webLink | String | False |
URL to open the message directly in Outlook on the web. | |
| UserId | String | False |
Identifier of the user who owns or sent the message. | |
| IsEventMessage | Bool | False |
Indicates whether the message is a calendar invitation or event-related message. |
Lists individual tasks from Microsoft To Do or Planner, with details like titles, due dates, and completion status.
Tasks requires the Groups and Tasks permissions from the Microsoft Graph. For this reason, you must create your own OAuth App. Please see Entra ID(Azure AD)アプリケーションの作成 for more details.
By default, if no criteria is specified, only Tasks personally assigned to you will show up. For example:
SELECT * FROM Tasks
To bring back tasks across the organization, provide the specific plans ids, or use a subselect for the plan id. For example:
SELECT * FROM Tasks WHERE PlanId IN (SELECT Id FROM Plans)
To insert a Task, the associated plan must be specified:
INSERT INTO Tasks (Title, PlanId) VALUES ('My Title', '99999999-eeeeeeeee')
To update a Task, both the Id and Etag must be specified:
UPDATE Tasks SET Title = 'New Title' WHERE Id = 'xxxxxx-AAAAAAAAAAA' AND Etag = 'W/\"XXXXXXQEBAQEBAQEBAQEBAQEBARCc=\"'
To delete a Task, both the Id and Etag must be specified:
DELETE FROM Tasks WHERE Id = 'xxxxxx-AAAAAAAAAAA' AND Etag = 'W/\"XXXXXXQEBAQEBAQEBAQEBAQEBARCc=\"'
| Name | Type | ReadOnly | References | Description |
| activeChecklistItemCount | Int | False |
Number of checklist items that are not yet completed in the task. | |
| appliedCategories | String | False |
Set of category labels applied to the task, such as category1, category2, category3. | |
| assigneePriority | String | False |
Priority value used to determine task assignment order among multiple users. | |
| assignments | String | False |
List of user assignments for the task, including details like assignment status and assigned time. | |
| bucketId | String | False |
Identifier of the bucket within the plan where the task is located. | |
| checklistItemCount | Int | False |
Total number of checklist items associated with the task. | |
| completedBy_application_displayName | String | False |
Display name of the application that marked the task as completed. | |
| completedBy_application_id | String | False |
Identifier of the application that marked the task as completed. | |
| completedDateTime | Datetime | False |
Timestamp indicating when the task was marked as completed. | |
| conversationThreadId | String | False |
Identifier of the conversation thread associated with the task in Microsoft 365 Groups. | |
| createdBy_application_displayName | String | False |
Display name of the application that created the task. | |
| createdBy_application_id | String | False |
Identifier of the application that created the task. | |
| createdDateTime | Datetime | False |
Timestamp when the task was created. | |
| dueDateTime | Datetime | False |
Date and time when the task is due. | |
| hasDescription | Bool | False |
Indicates whether the task has a non-empty description. | |
| orderHint | String | False |
Ordering hint used to determine the position of the task within the bucket. | |
| percentComplete | Int | False |
Percentage of the task that is completed, typically between 0 and 100. | |
| planId | String | False |
Identifier of the plan to which the task belongs. | |
| previewType | String | False |
Specifies how the task preview is rendered in the UI. Possible values include automatic, checklist, description, reference. | |
| priority | Int | False |
Numeric value representing the priority of the task. Lower values indicate higher priority. | |
| referenceCount | Int | False |
Number of external references or linked resources associated with the task. | |
| startDateTime | Datetime | False |
Date and time when work on the task is scheduled to start. | |
| title | String | False |
Title or name of the task. | |
| Etag | String | False |
Entity tag used to track the version of the task for concurrency control. | |
| Id [KEY] | String | False |
Unique identifier of the task. |
Supports reading, creating, updating, and deleting Office365 user accounts. Includes profile and licensing details.
Users からすべてを取得したり、Id を指定したり、カラムでフィルタリングしたりすることで、Users テーブルをクエリします。
SELECT * FROM Users WHERE Id = '616391f0-32d8-4127-8f25-aa55771d6617' SELECT DisplayName, Id FROM Users WHERE DisplayName LIKE 'John%'
新しい組織User を作成するには、以下が必要です。
INSERT INTO Users (AccountEnabled, DisplayName, MailNickname, UserPrincipalName, PasswordProfile_ForceChangePasswordNextSignIn, PasswordProfile_Password) VALUES (false, 'John Smith', 'JohnS', '[email protected]', true, '123password')
| Name | Type | ReadOnly | References | Description |
| id [KEY] | String | True |
Globally Unique Identifier (GUID) assigned to the user object in Azure Active Directory. | |
| deletedDateTime | Datetime | False |
Timestamp when the user was soft deleted from the directory; null if the account is active. | |
| accountEnabled | Bool | False |
Indicates whether the account is enabled for sign-in and Azure AD authentication. | |
| businessPhones | String | False |
Comma-separated list of business phone numbers for the user, in E.164 or in local format, for example +1 4255550100, +1 4255550120. | |
| city | String | False |
City portion of the user's physical address. | |
| companyName | String | False |
Name of the company or organization where the user works. | |
| country | String | False |
Country or region listed in the user's address. | |
| createdDateTime | Datetime | False |
Timestamp when the user account was created in Azure Active Directory. | |
| department | String | False |
Department or organizational unit the user belongs to. | |
| displayName | String | False |
Full display name for the user, shown in address books and Teams. | |
| employeeHireDate | Datetime | False |
Date when the employee was hired, according to human resources records. | |
| employeeId | String | False |
Employee identifier used by payroll or HR systems. | |
| employeeLeaveDateTime | Datetime | False |
Date and time when the employee left the organization; null if still employed. | |
| employeeOrgData_costCenter | String | False |
Cost center code associated with the user for financial tracking. | |
| employeeOrgData_division | String | False |
Division name within the organization associated with the user. | |
| employeeType | String | False |
Classification of employment, such as Employee, Contractor, or Vendor. | |
| givenName | String | False |
User's given name (first name). | |
| identities | String | False |
Collection of sign-in identities for the user, each with issuer, issuerAssignedId, and signInType. | |
| imAddresses | String | False |
Comma-separated list of instant messaging addresses for the user, for example sip:[email protected], sip:[email protected]. | |
| isResourceAccount | Bool | False |
Indicates whether this account represents a resource such as a room or equipment mailbox. | |
| jobTitle | String | False |
Job title of the user, such as Senior Analyst. | |
| lastPasswordChangeDateTime | Datetime | False |
Most recent date and time when the user changed their password. | |
| String | False |
Primary SMTP email address for the user. | ||
| mailNickname | String | False |
Alias used to generate the user's email address; must be unique within the tenant. | |
| mobilePhone | String | False |
Mobile phone number for the user, stored in E.164 format where possible. | |
| officeLocation | String | False |
Office location, room number, or desk identifier for the user. | |
| onPremisesDistinguishedName | String | False |
Distinguished name (DN) of the on-premises Active Directory object mapped to the user. | |
| onPremisesDomainName | String | False |
Domain name of the on-premises Active Directory forest where the user originates. | |
| onPremisesExtensionAttributes_extensionAttribute1 | String | False |
Custom extension attribute 1 replicated from on-premises Active Directory. | |
| onPremisesExtensionAttributes_extensionAttribute10 | String | False |
Custom extension attribute 10 replicated from on-premises Active Directory. | |
| onPremisesExtensionAttributes_extensionAttribute11 | String | False |
Custom extension attribute 11 replicated from on-premises Active Directory. | |
| onPremisesExtensionAttributes_extensionAttribute12 | String | False |
Custom extension attribute 12 replicated from on-premises Active Directory. | |
| onPremisesExtensionAttributes_extensionAttribute13 | String | False |
Custom extension attribute 13 replicated from on-premises Active Directory. | |
| onPremisesExtensionAttributes_extensionAttribute14 | String | False |
Custom extension attribute 14 replicated from on-premises Active Directory. | |
| onPremisesExtensionAttributes_extensionAttribute15 | String | False |
Custom extension attribute 15 replicated from on-premises Active Directory. | |
| onPremisesExtensionAttributes_extensionAttribute2 | String | False |
Custom extension attribute 2 replicated from on-premises Active Directory. | |
| onPremisesExtensionAttributes_extensionAttribute3 | String | False |
Custom extension attribute 3 replicated from on-premises Active Directory. | |
| onPremisesExtensionAttributes_extensionAttribute4 | String | False |
Custom extension attribute 4 replicated from on-premises Active Directory. | |
| onPremisesExtensionAttributes_extensionAttribute5 | String | False |
Custom extension attribute 5 replicated from on-premises Active Directory. | |
| onPremisesExtensionAttributes_extensionAttribute6 | String | False |
Custom extension attribute 6 replicated from on-premises Active Directory. | |
| onPremisesExtensionAttributes_extensionAttribute7 | String | False |
Custom extension attribute 7 replicated from on-premises Active Directory. | |
| onPremisesExtensionAttributes_extensionAttribute8 | String | False |
Custom extension attribute 8 replicated from on-premises Active Directory. | |
| onPremisesExtensionAttributes_extensionAttribute9 | String | False |
Custom extension attribute 9 replicated from on-premises Active Directory. | |
| onPremisesImmutableId | String | False |
Immutable identifier used to map the cloud user to an on-premises Active Directory object. | |
| onPremisesLastSyncDateTime | Datetime | False |
Timestamp of the most recent synchronization from on-premises Active Directory. | |
| onPremisesProvisioningErrors | String | False |
List of provisioning errors returned during directory synchronization. | |
| onPremisesSamAccountName | String | False |
SAMAccountName from on-premises Active Directory, used for legacy authentication. | |
| onPremisesSecurityIdentifier | String | False |
Security identifier (SID) assigned to the on-premises object. | |
| onPremisesSyncEnabled | Bool | False |
Indicates whether the object continues to synchronize from on-premises Active Directory. | |
| onPremisesUserPrincipalName | String | False |
User principal name (UPN) of the on-premises object. | |
| otherMails | String | False |
Comma-separated collection of additional SMTP addresses associated with the user, such as [email protected], [email protected]. | |
| passwordProfile_forceChangePasswordNextSignIn | Bool | False |
Indicates whether the user must change password at the next sign-in. | |
| passwordProfile_forceChangePasswordNextSignInWithMfa | Bool | False |
Indicates whether the user must change password at next sign-in and complete multifactor authentication. | |
| passwordProfile_password | String | False |
Write-only initial password set for the user during creation or reset. | |
| postalCode | String | False |
Postal or ZIP code portion of the user's address. | |
| preferredLanguage | String | False |
Preferred language for the user, expressed as an ISO language tag such as en-US. | |
| securityIdentifier | String | False |
SID assigned to the user in Azure Active Directory. | |
| state | String | False |
State or province portion of the user's physical address. | |
| streetAddress | String | False |
Street name, number, and unit for the user's physical address. | |
| surname | String | False |
User's family name (last name). | |
| userPrincipalName | String | False |
Principal name the user uses to sign in, typically of the form [email protected]. | |
| userType | String | False |
Identifies the type of user: Member for internal users, Guest for external users invited to the tenant. |
ビューは、データを示すという点でテーブルに似ていますが、ビューは読み取り専用です。
クエリは、ビューに対して通常のテーブルと同様に実行することができます。
| Name | Description |
| CalendarView | Returns a filtered list of calendar events such as occurrences, exceptions, and single instances, within a specified time range from a user's calendar. |
| CalendarView | Returns a filtered list of calendar events such as occurrences, exceptions, and single instances, within a specified time range from a user's calendar. |
| EventAttachments | Displays attachments related to calendar events, including file metadata and associated event identifiers. |
| EventOccurrences | Provides a flattened view of recurring event instances, enabling analysis of each occurrence individually. |
| MessageAttachments | Retrieves email message attachments with metadata like attachment names, sizes, and parent message IDs. |
| Plans | Displays task plan data from Microsoft Planner, including plan names, owners, and associated group IDs. |
Returns a filtered list of calendar events such as occurrences, exceptions, and single instances, within a specified time range from a user's calendar.
Get the occurrences, exceptions, and single instances of events in a calendar view defined by a time range, from the user's default calendar, or from some other calendar of the user's. By default only the event occurrences from the user's default calendar in the range of the last 30 days will be returned. You can filter results by CalendarId, UserId, Start_DateTime, End_DateTime.
For example the following queries will be processed server side:
SELECT * FROM CalendarView WHERE Start_DateTime >= '2019-12-10 15:00' AND End_DateTime <= '2020-01-10 14:30'
SELECT * FROM CalendarView WHERE CalendarId = 'AQMkAGRlMWQ5MDg0LWI5ZTQtNDk2Yi1hOTQ1LTU4YzFmMzEwZjlhMgBGAAAD-FjxR3cIwE6TEGSCVtIHcwcAQyR2Iw3coEOaUD1BLt0tnAAAAwcAAABDJHYjDdygQ5pQPUEu3S2cAAACC_IAAAA='
SELECT * FROM CalendarView WHERE CalendarId = 'AQMkAGRlMWQ5MDg0LWI5ZTQtNDk2Yi1hOTQ1LTU4YzFmMzEwZjlhMgBGAAAD-FjxR3cIwE6TEGSCVtIHcwcAQyR2Iw3coEOaUD1BLt0tnAAAAwcAAABDJHYjDdygQ5pQPUEu3S2cAAACC_IAAAA=' AND UserId = 'a98f25b5-5da1-4937-8729-c0d03026caa0' AND Start_DateTime >= '2019-12-15 08:00' AND End_DateTime <= '2020-01-14 08:00'
| Name | Type | References | Description |
| id [KEY] | String | Unique identifier for the currency. | |
| symbol | String | The symbol that represents this currency |
Returns a filtered list of calendar events such as occurrences, exceptions, and single instances, within a specified time range from a user's calendar.
Get the occurrences, exceptions, and single instances of events in a calendar view defined by a time range, from the user's default calendar, or from some other calendar of the user's. By default only the event occurrences from the user's default calendar in the range of the last 30 days will be returned. You can filter results by CalendarId, UserId, Start_DateTime, End_DateTime.
For example the following queries will be processed server side:
SELECT * FROM CalendarView WHERE Start_DateTime >= '2019-12-10 15:00' AND End_DateTime <= '2020-01-10 14:30'
SELECT * FROM CalendarView WHERE CalendarId = 'AQMkAGRlMWQ5MDg0LWI5ZTQtNDk2Yi1hOTQ1LTU4YzFmMzEwZjlhMgBGAAAD-FjxR3cIwE6TEGSCVtIHcwcAQyR2Iw3coEOaUD1BLt0tnAAAAwcAAABDJHYjDdygQ5pQPUEu3S2cAAACC_IAAAA='
SELECT * FROM CalendarView WHERE CalendarId = 'AQMkAGRlMWQ5MDg0LWI5ZTQtNDk2Yi1hOTQ1LTU4YzFmMzEwZjlhMgBGAAAD-FjxR3cIwE6TEGSCVtIHcwcAQyR2Iw3coEOaUD1BLt0tnAAAAwcAAABDJHYjDdygQ5pQPUEu3S2cAAACC_IAAAA=' AND UserId = 'a98f25b5-5da1-4937-8729-c0d03026caa0' AND Start_DateTime >= '2019-12-15 08:00' AND End_DateTime <= '2020-01-14 08:00'
| Name | Type | References | Description |
| id [KEY] | String | Unique identifier for the calendar event. | |
| Etag | String | Entity tag used to identify changes to the event object. | |
| categories | String | List of user-defined categories associated with the event. | |
| changeKey | String | Version key for the event, used to track updates. | |
| createdDateTime | Datetime | Timestamp indicating when the event was created. | |
| lastModifiedDateTime | Datetime | Timestamp indicating the last time the event was updated. | |
| allowNewTimeProposals | Bool | Indicates whether attendees can suggest new meeting times. | |
| attendees | String | List of people invited to the event, including required and optional attendees. | |
| body_content | String | Main content of the event body. | |
| body_contentType | String | Type of the content in the event body, such as HTML or plain text. | |
| bodyPreview | String | Short preview of the event body content. | |
| end_dateTime | Datetime | Date and time when the event ends. | |
| end_timeZone | String | Time zone of the event end time. | |
| hasAttachments | Bool | Indicates whether the event includes file attachments. | |
| hideAttendees | Bool | Indicates whether attendee details are hidden from others. | |
| iCalUId | String | Unique iCalendar identifier used across systems. | |
| importance | String | Importance level of the event such as low, normal, or high. | |
| isAllDay | Bool | Specifies whether the event is an all-day event. | |
| isCancelled | Bool | Indicates whether the event has been canceled. | |
| isDraft | Bool | Indicates whether the event is in draft status. | |
| isOnlineMeeting | Bool | Specifies whether the event is an online meeting. | |
| isOrganizer | Bool | Indicates whether the current user is the organizer of the event. | |
| isReminderOn | Bool | Indicates whether a reminder is set for the event. | |
| location_address_city | String | City where the event location is situated. | |
| location_address_countryOrRegion | String | Country or region of the event location. | |
| location_address_postalCode | String | Postal code of the event location. | |
| location_address_state | String | State or province of the event location. | |
| location_address_street | String | Street address of the event location. | |
| location_coordinates_accuracy | Double | Accuracy of the provided coordinates in meters. | |
| location_coordinates_altitude | Double | Altitude of the event location in meters. | |
| location_coordinates_altitudeAccuracy | Double | Accuracy of the altitude value in meters. | |
| location_coordinates_latitude | Double | Latitude of the event location. | |
| location_coordinates_longitude | Double | Longitude of the event location. | |
| location_displayName | String | Display name for the location of the event. | |
| location_locationEmailAddress | String | Email address associated with the location, if available. | |
| location_locationType | String | Type of location, such as default, conference room, or custom. | |
| location_locationUri | String | URI that uniquely identifies the location resource. | |
| location_uniqueId | String | Unique identifier for the location object. | |
| location_uniqueIdType | String | Specifies the format of the unique location ID. | |
| locations | String | List of all locations associated with the event. | |
| onlineMeeting_conferenceId | String | Conference ID provided by the online meeting provider. | |
| onlineMeeting_joinUrl | String | URL used by attendees to join the online meeting. | |
| onlineMeeting_phones | String | List of phone numbers that can be used to dial into the meeting. | |
| onlineMeeting_quickDial | String | Preformatted string for one-tap mobile dialing into the meeting. | |
| onlineMeeting_tollFreeNumbers | String | Toll-free numbers attendees can use to join. Values are comma-separated with 1 space after each comma. | |
| onlineMeeting_tollNumber | String | Primary toll number attendees can use to join the meeting. | |
| onlineMeetingProvider | String | Name of the service provider hosting the online meeting, such as Skype. | |
| onlineMeetingUrl | String | URL that opens the full online meeting experience in a browser. | |
| organizer_emailAddress_address | String | Email address of the meeting organizer. | |
| organizer_emailAddress_name | String | Display name of the person organizing the meeting. | |
| originalEndTimeZone | String | Time zone in which the event was originally set to end. | |
| originalStart | Datetime | Original start date and time of the event before any updates. | |
| originalStartTimeZone | String | Time zone in which the event was originally scheduled to start. | |
| recurrence_pattern_dayOfMonth | Int | Day of the month when the recurring event occurs. | |
| recurrence_pattern_daysOfWeek | String | Days of the week when the event recurs. Values are comma-separated with 1 space after each comma. | |
| recurrence_pattern_firstDayOfWeek | String | The first day of the week used in the recurrence pattern. | |
| recurrence_pattern_index | String | Specifies which instance in the recurrence, such as first, second, or last. | |
| recurrence_pattern_interval | Int | Interval between recurrences, based on the pattern type. | |
| recurrence_pattern_month | Int | Month of the year when the event recurs, used for yearly patterns. | |
| recurrence_pattern_type | String | Type of recurrence pattern, such as daily, weekly, monthly, or yearly. | |
| recurrence_range_endDate | Datetime | Date when the recurrence pattern ends. | |
| recurrence_range_numberOfOccurrences | Int | Number of times the recurring event should occur. | |
| recurrence_range_recurrenceTimeZone | String | Time zone used for the recurrence schedule. | |
| recurrence_range_startDate | Datetime | Start date of the recurrence range. | |
| recurrence_range_type | String | Defines the way recurrence ends, such as after a number of occurrences or on a specific end date. | |
| reminderMinutesBeforeStart | Int | Number of minutes before the event start at which the reminder triggers. | |
| responseRequested | Bool | Indicates whether the organizer is requesting responses from attendees. | |
| responseStatus_response | String | The attendee's response status, such as accepted, declined, or tentative. | |
| responseStatus_time | Datetime | Date and time when the attendee submitted their response. | |
| sensitivity | String | Sensitivity setting for the event, such as normal, personal, private, or confidential. | |
| seriesMasterId | String | Identifier of the master event in a recurring series. | |
| showAs | String | How the event appears on the calendar, such as free, busy, or tentative. | |
| start_dateTime | Datetime | Date and time when the event starts. | |
| start_timeZone | String | Time zone associated with the event's start time. | |
| subject | String | Title or subject line of the calendar event. | |
| transactionId | String | Client-supplied ID used to ensure idempotency of create requests. | |
| type | String | Type of event, such as singleInstance, occurrence, or exception. | |
| webLink | String | URL to view the event in a web browser. | |
| UserId | String | Identifier of the user associated with the calendar event. | |
| CalendarId | String | Identifier of the calendar that contains the event. |
Returns a filtered list of calendar events such as occurrences, exceptions, and single instances, within a specified time range from a user's calendar.
Get the occurrences, exceptions, and single instances of events in a calendar view defined by a time range, from the user's default calendar, or from some other calendar of the user's. By default only the event occurrences from the user's default calendar in the range of the last 30 days will be returned. You can filter results by CalendarId, UserId, Start_DateTime, End_DateTime.
For example the following queries will be processed server side:
SELECT * FROM CalendarView WHERE Start_DateTime >= '2019-12-10 15:00' AND End_DateTime <= '2020-01-10 14:30'
SELECT * FROM CalendarView WHERE CalendarId = 'AQMkAGRlMWQ5MDg0LWI5ZTQtNDk2Yi1hOTQ1LTU4YzFmMzEwZjlhMgBGAAAD-FjxR3cIwE6TEGSCVtIHcwcAQyR2Iw3coEOaUD1BLt0tnAAAAwcAAABDJHYjDdygQ5pQPUEu3S2cAAACC_IAAAA='
SELECT * FROM CalendarView WHERE CalendarId = 'AQMkAGRlMWQ5MDg0LWI5ZTQtNDk2Yi1hOTQ1LTU4YzFmMzEwZjlhMgBGAAAD-FjxR3cIwE6TEGSCVtIHcwcAQyR2Iw3coEOaUD1BLt0tnAAAAwcAAABDJHYjDdygQ5pQPUEu3S2cAAACC_IAAAA=' AND UserId = 'a98f25b5-5da1-4937-8729-c0d03026caa0' AND Start_DateTime >= '2019-12-15 08:00' AND End_DateTime <= '2020-01-14 08:00'
| Name | Type | References | Description |
| id [KEY] | String | Unique identifier for the currency. | |
| symbol | String | The symbol that represents this currency |
Returns a filtered list of calendar events such as occurrences, exceptions, and single instances, within a specified time range from a user's calendar.
Get the occurrences, exceptions, and single instances of events in a calendar view defined by a time range, from the user's default calendar, or from some other calendar of the user's. By default only the event occurrences from the user's default calendar in the range of the last 30 days will be returned. You can filter results by CalendarId, UserId, Start_DateTime, End_DateTime.
For example the following queries will be processed server side:
SELECT * FROM CalendarView WHERE Start_DateTime >= '2019-12-10 15:00' AND End_DateTime <= '2020-01-10 14:30'
SELECT * FROM CalendarView WHERE CalendarId = 'AQMkAGRlMWQ5MDg0LWI5ZTQtNDk2Yi1hOTQ1LTU4YzFmMzEwZjlhMgBGAAAD-FjxR3cIwE6TEGSCVtIHcwcAQyR2Iw3coEOaUD1BLt0tnAAAAwcAAABDJHYjDdygQ5pQPUEu3S2cAAACC_IAAAA='
SELECT * FROM CalendarView WHERE CalendarId = 'AQMkAGRlMWQ5MDg0LWI5ZTQtNDk2Yi1hOTQ1LTU4YzFmMzEwZjlhMgBGAAAD-FjxR3cIwE6TEGSCVtIHcwcAQyR2Iw3coEOaUD1BLt0tnAAAAwcAAABDJHYjDdygQ5pQPUEu3S2cAAACC_IAAAA=' AND UserId = 'a98f25b5-5da1-4937-8729-c0d03026caa0' AND Start_DateTime >= '2019-12-15 08:00' AND End_DateTime <= '2020-01-14 08:00'
| Name | Type | References | Description |
| id [KEY] | String | Unique identifier for the calendar event. | |
| Etag | String | Entity tag used to identify changes to the event object. | |
| categories | String | List of user-defined categories associated with the event. | |
| changeKey | String | Version key for the event, used to track updates. | |
| createdDateTime | Datetime | Timestamp indicating when the event was created. | |
| lastModifiedDateTime | Datetime | Timestamp indicating the last time the event was updated. | |
| allowNewTimeProposals | Bool | Indicates whether attendees can suggest new meeting times. | |
| attendees | String | List of people invited to the event, including required and optional attendees. | |
| body_content | String | Main content of the event body. | |
| body_contentType | String | Type of the content in the event body, such as HTML or plain text. | |
| bodyPreview | String | Short preview of the event body content. | |
| end_dateTime | Datetime | Date and time when the event ends. | |
| end_timeZone | String | Time zone of the event end time. | |
| hasAttachments | Bool | Indicates whether the event includes file attachments. | |
| hideAttendees | Bool | Indicates whether attendee details are hidden from others. | |
| iCalUId | String | Unique iCalendar identifier used across systems. | |
| importance | String | Importance level of the event such as low, normal, or high. | |
| isAllDay | Bool | Specifies whether the event is an all-day event. | |
| isCancelled | Bool | Indicates whether the event has been canceled. | |
| isDraft | Bool | Indicates whether the event is in draft status. | |
| isOnlineMeeting | Bool | Specifies whether the event is an online meeting. | |
| isOrganizer | Bool | Indicates whether the current user is the organizer of the event. | |
| isReminderOn | Bool | Indicates whether a reminder is set for the event. | |
| location_address_city | String | City where the event location is situated. | |
| location_address_countryOrRegion | String | Country or region of the event location. | |
| location_address_postalCode | String | Postal code of the event location. | |
| location_address_state | String | State or province of the event location. | |
| location_address_street | String | Street address of the event location. | |
| location_coordinates_accuracy | Double | Accuracy of the provided coordinates in meters. | |
| location_coordinates_altitude | Double | Altitude of the event location in meters. | |
| location_coordinates_altitudeAccuracy | Double | Accuracy of the altitude value in meters. | |
| location_coordinates_latitude | Double | Latitude of the event location. | |
| location_coordinates_longitude | Double | Longitude of the event location. | |
| location_displayName | String | Display name for the location of the event. | |
| location_locationEmailAddress | String | Email address associated with the location, if available. | |
| location_locationType | String | Type of location, such as default, conference room, or custom. | |
| location_locationUri | String | URI that uniquely identifies the location resource. | |
| location_uniqueId | String | Unique identifier for the location object. | |
| location_uniqueIdType | String | Specifies the format of the unique location ID. | |
| locations | String | List of all locations associated with the event. | |
| onlineMeeting_conferenceId | String | Conference ID provided by the online meeting provider. | |
| onlineMeeting_joinUrl | String | URL used by attendees to join the online meeting. | |
| onlineMeeting_phones | String | List of phone numbers that can be used to dial into the meeting. | |
| onlineMeeting_quickDial | String | Preformatted string for one-tap mobile dialing into the meeting. | |
| onlineMeeting_tollFreeNumbers | String | Toll-free numbers attendees can use to join. Values are comma-separated with 1 space after each comma. | |
| onlineMeeting_tollNumber | String | Primary toll number attendees can use to join the meeting. | |
| onlineMeetingProvider | String | Name of the service provider hosting the online meeting, such as Skype. | |
| onlineMeetingUrl | String | URL that opens the full online meeting experience in a browser. | |
| organizer_emailAddress_address | String | Email address of the meeting organizer. | |
| organizer_emailAddress_name | String | Display name of the person organizing the meeting. | |
| originalEndTimeZone | String | Time zone in which the event was originally set to end. | |
| originalStart | Datetime | Original start date and time of the event before any updates. | |
| originalStartTimeZone | String | Time zone in which the event was originally scheduled to start. | |
| recurrence_pattern_dayOfMonth | Int | Day of the month when the recurring event occurs. | |
| recurrence_pattern_daysOfWeek | String | Days of the week when the event recurs. Values are comma-separated with 1 space after each comma. | |
| recurrence_pattern_firstDayOfWeek | String | The first day of the week used in the recurrence pattern. | |
| recurrence_pattern_index | String | Specifies which instance in the recurrence, such as first, second, or last. | |
| recurrence_pattern_interval | Int | Interval between recurrences, based on the pattern type. | |
| recurrence_pattern_month | Int | Month of the year when the event recurs, used for yearly patterns. | |
| recurrence_pattern_type | String | Type of recurrence pattern, such as daily, weekly, monthly, or yearly. | |
| recurrence_range_endDate | Datetime | Date when the recurrence pattern ends. | |
| recurrence_range_numberOfOccurrences | Int | Number of times the recurring event should occur. | |
| recurrence_range_recurrenceTimeZone | String | Time zone used for the recurrence schedule. | |
| recurrence_range_startDate | Datetime | Start date of the recurrence range. | |
| recurrence_range_type | String | Defines the way recurrence ends, such as after a number of occurrences or on a specific end date. | |
| reminderMinutesBeforeStart | Int | Number of minutes before the event start at which the reminder triggers. | |
| responseRequested | Bool | Indicates whether the organizer is requesting responses from attendees. | |
| responseStatus_response | String | The attendee's response status, such as accepted, declined, or tentative. | |
| responseStatus_time | Datetime | Date and time when the attendee submitted their response. | |
| sensitivity | String | Sensitivity setting for the event, such as normal, personal, private, or confidential. | |
| seriesMasterId | String | Identifier of the master event in a recurring series. | |
| showAs | String | How the event appears on the calendar, such as free, busy, or tentative. | |
| start_dateTime | Datetime | Date and time when the event starts. | |
| start_timeZone | String | Time zone associated with the event's start time. | |
| subject | String | Title or subject line of the calendar event. | |
| transactionId | String | Client-supplied ID used to ensure idempotency of create requests. | |
| type | String | Type of event, such as singleInstance, occurrence, or exception. | |
| webLink | String | URL to view the event in a web browser. | |
| UserId | String | Identifier of the user associated with the calendar event. | |
| CalendarId | String | Identifier of the calendar that contains the event. |
Displays attachments related to calendar events, including file metadata and associated event identifiers.
| Name | Type | References | Description |
| EventId | String |
Events.Id | |
| id [KEY] | String | ||
| contentType | String | ||
| isInline | Bool | ||
| lastModifiedDateTime | Datetime | ||
| name | String | ||
| size | Int | ||
| event_categories | String | ||
| event_changeKey | String | ||
| event_createdDateTime | Datetime | ||
| event_lastModifiedDateTime | Datetime | ||
| event_allowNewTimeProposals | Bool | ||
| event_attendees | String | ||
| event_body | String | ||
| event_bodyPreview | String | ||
| event_cancelledOccurrences | String | ||
| event_end | String | ||
| event_hasAttachments | Bool | ||
| event_hideAttendees | Bool | ||
| event_iCalUId | String | ||
| event_importance | String | ||
| event_isAllDay | Bool | ||
| event_isCancelled | Bool | ||
| event_isDraft | Bool | ||
| event_isOnlineMeeting | Bool | ||
| event_isOrganizer | Bool | ||
| event_isReminderOn | Bool | ||
| event_location | String | ||
| event_locations | String | ||
| event_onlineMeeting | String | ||
| event_onlineMeetingProvider | String | ||
| event_onlineMeetingUrl | String | ||
| event_organizer | String | ||
| event_originalEndTimeZone | String | ||
| event_originalStart | Datetime | ||
| event_originalStartTimeZone | String | ||
| event_recurrence | String | ||
| event_reminderMinutesBeforeStart | Int | ||
| event_responseRequested | Bool | ||
| event_responseStatus | String | ||
| event_sensitivity | String | ||
| event_seriesMasterId | String | ||
| event_showAs | String | ||
| event_start | String | ||
| event_subject | String | ||
| event_transactionId | String | ||
| event_type | String | ||
| event_webLink | String | ||
| contentType | String | ||
| isInline | Bool | ||
| lastModifiedDateTime | Datetime | ||
| name | String | ||
| size | Int |
Provides a flattened view of recurring event instances, enabling analysis of each occurrence individually.
You can query EventOccurrences by specifying the Event Id, StartDatetime and EndDateTime. EventId is a required field, instead StartDatetime and EndDateTime have a default range of the last 30 days. If you query filtering only by EventId and the specific event does not exist within this time range, you will get empty results.
SELECT * FROM [EventOccurrences] WHERE id = 'event id' AND StartDateTime = '2018/01/01' AND EndDateTime = '2018/12/31'
By default, if StartDateTime and EndDateTime filters are not specified, only the event occurrences from the user's default calendar in the range of the last 30 days will be returned. Otherwise, the query will get the Occurrences of the Event during the period specified by StartDateTime and EndDateTime.
| Name | Type | References | Description |
| GroupId | String | Identifier of the Microsoft 365 group that owns the event. | |
| UserId | String | Identifier of the user who is associated with the event. | |
| Events_id [KEY] | String |
Events.id | Identifier of the parent event series from which this occurrence is derived. |
| id [KEY] | String | Unique identifier for this specific event occurrence. | |
| categories | String | List of categories assigned to the event for classification or filtering. | |
| changeKey | String | Version key that updates each time the event occurrence is modified. | |
| createdDateTime | Datetime | Timestamp indicating when the event occurrence was created. | |
| lastModifiedDateTime | Datetime | Timestamp indicating the last time the event occurrence was modified. | |
| allowNewTimeProposals | Bool | Indicates whether attendees can suggest a new time for the event. | |
| attendees | String | List of attendees invited to the event. For example: [email protected], [email protected]. | |
| body_content | String | Main message body or description of the event. | |
| body_contentType | String | Format of the message body, such as text or HTML. | |
| bodyPreview | String | Short preview of the event message body. | |
| end_dateTime | Datetime | Scheduled end time of the event. | |
| end_timeZone | String | Time zone used for the event's end time. | |
| hasAttachments | Bool | Indicates whether the event occurrence includes file attachments. | |
| hideAttendees | Bool | Indicates whether attendee information is hidden from others. | |
| iCalUId | String | Unique identifier used for cross-system calendar interoperability. | |
| importance | String | Level of importance assigned to the event, such as low, normal, or high. | |
| isAllDay | Bool | Indicates whether the event is an all-day event with no specific start or end time. | |
| isCancelled | Bool | Indicates whether the event occurrence has been canceled. | |
| isDraft | Bool | Indicates whether the event is still a draft and not finalized. | |
| isOnlineMeeting | Bool | Indicates whether the event includes an online meeting link. | |
| isOrganizer | Bool | Indicates whether the current user is the organizer of the event. | |
| isReminderOn | Bool | Indicates whether a reminder is set for this event occurrence. | |
| location_address_city | String | City of the event location. | |
| location_address_countryOrRegion | String | Country or region of the event location. | |
| location_address_postalCode | String | Postal code of the event location. | |
| location_address_state | String | State or province of the event location. | |
| location_address_street | String | Street address of the event location. | |
| location_coordinates_accuracy | Double | Accuracy of the provided location coordinates in meters. | |
| location_coordinates_altitude | Double | Altitude of the location in meters above sea level. | |
| location_coordinates_altitudeAccuracy | Double | Accuracy of the altitude measurement in meters. | |
| location_coordinates_latitude | Double | Latitude of the event location. | |
| location_coordinates_longitude | Double | Longitude of the event location. | |
| location_displayName | String | Display name for the event location. | |
| location_locationEmailAddress | String | Email address of the location resource, if applicable. | |
| location_locationType | String | Type of location, such as default, conference room, or home address. | |
| location_locationUri | String | Uniform Resource Identifier (URI) for the location, if available. | |
| location_uniqueId | String | Unique identifier for the physical or virtual location. | |
| location_uniqueIdType | String | Type of identifier used for the location, such as locationStore or directory. | |
| locations | String | List of additional locations for the event. For example: Main Hall, Room 204. | |
| onlineMeeting_conferenceId | String | Unique conference ID for the online meeting provider. | |
| onlineMeeting_joinUrl | String | Join URL that participants can use to enter the online meeting. | |
| onlineMeeting_phones | String | List of dial-in phone numbers for the online meeting. | |
| onlineMeeting_quickDial | String | Quick dial string for joining the online meeting directly. | |
| onlineMeeting_tollFreeNumbers | String | List of toll-free phone numbers for the online meeting. For example: 8001234567, 8887654321. | |
| onlineMeeting_tollNumber | String | Toll number provided for participants to join by phone. | |
| onlineMeetingProvider | String | Online meeting provider, such as Teams or Skype for Business. | |
| onlineMeetingUrl | String | URL used to launch or view the online meeting. | |
| organizer_emailAddress_address | String | Email address of the event organizer. | |
| organizer_emailAddress_name | String | Display name of the event organizer. | |
| originalEndTimeZone | String | Time zone used for the original end time before any changes. | |
| originalStart | Datetime | Original start time of the event before any rescheduling. | |
| originalStartTimeZone | String | Time zone used for the original start time. | |
| recurrence_pattern_dayOfMonth | Int | Day of the month on which the event repeats, if applicable. | |
| recurrence_pattern_daysOfWeek | String | Days of the week on which the event repeats. For example: Monday, Wednesday, Friday. | |
| recurrence_pattern_firstDayOfWeek | String | First day of the week for the recurrence pattern. | |
| recurrence_pattern_index | String | Position in the month the event recurs, such as first, second, or last. | |
| recurrence_pattern_interval | Int | Interval at which the event repeats, such as every 2 days or every 3 weeks. | |
| recurrence_pattern_month | Int | Month of the year when the event recurs, used for yearly patterns. | |
| recurrence_pattern_type | String | Pattern type used for recurrence, such as daily, weekly, monthly, or yearly. | |
| recurrence_range_endDate | Datetime | Date on which the recurrence pattern ends. | |
| recurrence_range_numberOfOccurrences | Int | Total number of times the event should occur. | |
| recurrence_range_recurrenceTimeZone | String | Time zone used for the recurrence pattern. | |
| recurrence_range_startDate | Datetime | Start date of the recurrence range. | |
| recurrence_range_type | String | Specifies whether the recurrence ends by end date, number of occurrences, or has no end. | |
| reminderMinutesBeforeStart | Int | Number of minutes before the event when a reminder should be triggered. | |
| responseRequested | Bool | Indicates whether the organizer requests attendee responses. | |
| responseStatus_response | String | Current response status from the attendee, such as accepted or declined. | |
| responseStatus_time | Datetime | Timestamp of the most recent response from the attendee. | |
| sensitivity | String | Sensitivity label for the event, such as normal, personal, private, or confidential. | |
| seriesMasterId | String | Identifier of the master series event, used to link recurring occurrences. | |
| showAs | String | Calendar availability status during the event, such as free, tentative, busy, or out of office. | |
| start_dateTime | Datetime | Scheduled start time of the event. | |
| start_timeZone | String | Time zone used for the event's start time. | |
| subject | String | Subject or title of the event. | |
| transactionId | String | Client-supplied identifier used to detect duplicate event creations. | |
| type | String | Type of event occurrence, such as singleInstance, occurrence, exception, or seriesMaster. | |
| webLink | String | URL to open the event occurrence in a web browser. |
Retrieves email message attachments with metadata like attachment names, sizes, and parent message IDs.
| Name | Type | References | Description |
| MessageId [KEY] | String |
Messages.Id | |
| id [KEY] | String | ||
| contentType | String | ||
| isInline | Bool | ||
| lastModifiedDateTime | Datetime | ||
| name | String | ||
| size | Int | ||
| message_categories | String | ||
| message_changeKey | String | ||
| message_createdDateTime | Datetime | ||
| message_lastModifiedDateTime | Datetime | ||
| message_bccRecipients | String | ||
| message_body | String | ||
| message_bodyPreview | String | ||
| message_ccRecipients | String | ||
| message_conversationId | String | ||
| message_conversationIndex | Binary | ||
| message_flag | String | ||
| message_from | String | ||
| message_hasAttachments | Bool | ||
| message_importance | String | ||
| message_inferenceClassification | String | ||
| message_internetMessageHeaders | String | ||
| message_internetMessageId | String | ||
| message_isDeliveryReceiptRequested | Bool | ||
| message_isDraft | Bool | ||
| message_isRead | Bool | ||
| message_isReadReceiptRequested | Bool | ||
| message_parentFolderId | String | ||
| message_receivedDateTime | Datetime | ||
| message_replyTo | String | ||
| message_sender | String | ||
| message_sentDateTime | Datetime | ||
| message_subject | String | ||
| message_toRecipients | String | ||
| message_uniqueBody | String | ||
| message_webLink | String |
Displays task plan data from Microsoft Planner, including plan names, owners, and associated group IDs.
Using Plans requires access to Groups permissions. This requires Admin approval. For this reason, you must use your own OAuth App to add the Groups permissions and from the Microsoft Graph. See Entra ID(Azure AD)アプリケーションの作成 for more details.
All plans in MS Planner exist as a part of a group. In order to retrieve the list of available plans, you must retrieve a list of available plans per group.
If no GroupId is specified, then the following WHERE condition will be appended to any query:
GroupId IN (SELECT Id FROM Groups)
| Name | Type | References | Description |
| container_containerId | String | Identifier of the container that holds the plan, typically referencing a Microsoft 365 Group or Team. | |
| container_type | String | Type of container where the plan is stored, such as group or roster. | |
| container_url | String | URL link to the container that holds the plan, such as the associated Group or Team. | |
| createdBy_application_displayName | String | Display name of the application that created the plan. | |
| createdBy_application_id | String | Unique identifier of the application that created the plan. | |
| createdDateTime | Datetime | Timestamp indicating when the plan was created. | |
| owner | String | Identifier of the user or entity that owns the plan. | |
| title | String | Title or name of the plan as displayed in Microsoft Planner. | |
| GroupId | String | Identifier of the Microsoft 365 Group associated with the plan. | |
| Id [KEY] | String | Unique identifier of the plan. |
ストアドプロシージャはファンクションライクなインターフェースで、Microsoft Office 365 の単純なSELECT/INSERT/UPDATE/DELETE 処理にとどまらずCloud の機能を拡張します。
ストアドプロシージャは、パラメータのリストを受け取り、目的の機能を実行し、プロシージャが成功したか失敗したかを示すとともにMicrosoft Office 365 から関連するレスポンスデータを返します。
| Name | Description |
| AddAttachments | Adds one or more attachments to an existing email message based on message ID. |
| AssignLicense | Assigns or removes Microsoft 365 subscriptions for a user and enables or disables specific service plans within those subscriptions. |
| CancelEvent | Cancels an existing calendar event and updates the event status across invitees. |
| CreateFolder | Creates a new folder or updates the contents of an existing file in OneDrive or SharePoint. |
| DeleteAttachment | Removes a specified attachment from an email or message item, supporting cleanup and content modification operations. |
| DismissEventReminder | Programmatically dismisses the reminder for a calendar event, simulating the user action of closing the reminder notification. |
| FetchAdditionalUserFields | Retrieves additional Tier 1, Tier 2, and Tier 3 user fields for enhanced profile data. |
| ForwardEvent | Forwards a calendar event invitation to one or more recipients. |
| ForwardMail | Forwards an existing email message to specified recipients. |
| GetAdminConsentURL | Returns a URL to initiate the admin consent process for granting application access using custom OAuth credentials. |
| MoveMail | Moves an email message to a specified folder within a user's mailbox. |
| ReplyToMessage | Sends a reply to an existing email message, preserving the message thread and including quoted content where applicable. |
| RespondToEvent | Submits a response (accept, decline, tentative) to a calendar event invitation, updating the attendee's participation status. |
| SendMail | Sends an email message from the authenticated user's mailbox with optional attachments. |
| SnoozeEventReminder | Postpones a calendar event reminder for a defined duration, emulating the 'Snooze' functionality in email/calendar clients. |
Adds one or more attachments to an existing email message based on message ID.
| Name | Type | Required | Description |
| Id | String | True | Identifier of the message or event to which the attachment is added. |
| DestinationType | String | True | Type of destination object for the attachment. Allowed values are: Message or Event. |
| FileName | String | True | File name of the attachment to be added. |
| LocalFile | String | False | Path to the local file that contains the content to be attached. |
| ContentBytes | String | False | Attachment content encoded as a Base64 byte array. Used if LocalFile is not specified. |
| Name | Type | Description |
| ContentBytes | String | Indicates whether the attachment content was successfully added to the target message or event. |
| Id | String | Identifier of the newly added attachment. |
| LastModifiedDateTime | Datetime | Timestamp indicating the last time the added attachment was modified. |
| Isinline | Boolean | Indicates whether the attachment was added as an inline element within the message or event body. |
| Name | String | Name of the attachment that was added. |
| Contenttype | String | The content type of the attachment. |
| Size | Int | Size of the added attachment in bytes. |
Assigns or removes Microsoft 365 subscriptions for a user and enables or disables specific service plans within those subscriptions.
| Name | Type | Required | Description |
| UserID | String | False | Identifier of the user to whom the license is assigned. Leave blank to assign the license to the currently authenticated user. |
| UserPrincipalName | String | False | User principal name (UPN) of the user to whom the license is assigned. Leave blank to assign the license to the currently authenticated user. |
| AddLicenseSkuId | String | False | Globally Unique Identifier (GUID) of the license SKU to be added to the user. |
| DisabledPlans | String | False | Comma-separated list of plan identifiers to disable within the license, such as 6fd2c87f-b296-42f0-b197-1e91e994b900, 1f2f344a-700d-42c9-9427-cf6a4d3fdf28. |
| RemoveLicenses | String | False | Comma-separated list of license GUIDs to remove from the user, such as 76b8cfd1-3de8-4a73-9fb6-dc0c50e2b2f3, b2307a39-3b5c-44db-96f5-1a045c007cb9. |
| Name | Type | Description |
| Status | String | Indicates whether the stored procedure completed successfully or returned an error. |
Cancels an existing calendar event and updates the event status across invitees.
| Name | Type | Required | Description |
| EventId | String | True | Identifier of the calendar event to be canceled. |
| UserId | String | False | Identifier of the user who owns the calendar event. |
| UserPrincipalName | String | False | User principal name (UPN) of the calendar owner. Leave blank to use the currently authenticated user. |
| Comment | String | False | Optional comment to include with the cancellation notice. Can be an empty string. |
| Name | Type | Description |
| Status | String | Indicates whether the stored procedure executed successfully or returned an error. |
Creates a new folder or updates the contents of an existing file in OneDrive or SharePoint.
| Name | Type | Required | Description |
| FolderName | String | True | Name of the new folder to be created. |
| ParentId | String | False | Identifier of the parent folder in which the new folder is created. |
| Name | Type | Description |
| Id | String | Identifier of the folder that was successfully created. |
Removes a specified attachment from an email or message item, supporting cleanup and content modification operations.
| Name | Type | Required | Description |
| MessageId | String | False | The unique identifier of the email message from which an attachment will be deleted. Required to locate the correct message item. |
| EventId | String | False | The unique identifier of the email message from which an attachment will be deleted. Required to locate the correct message item. |
| AttachmentID | String | True | The unique identifier of the specific attachment to delete from the message. This must correspond to an existing attachment on the message. |
| UserId | String | False | The identifier of the impersonated user under whose context the delete operation will be executed. Used in scenarios where delegated access is required. |
| Name | Type | Description |
| Success | String | Indicates whether the attachment deletion operation completed successfully. Returns true if the attachment was removed; false if an error occurred. |
Programmatically dismisses the reminder for a calendar event, simulating the user action of closing the reminder notification.
| Name | Type | Required | Description |
| EventId | String | True | The unique identifier of the calendar event for which the reminder is being dismissed. This ID is required to target the correct event. |
| UserId | String | False | The identifier of the user being impersonated to perform the dismissal action. Used in delegated or service account scenarios to act on behalf of the user. |
| Name | Type | Description |
| Success | Boolean | Indicates whether the dismissal request completed successfully. A value of true confirms the reminder was dismissed without error. |
Retrieves additional Tier 1, Tier 2, and Tier 3 user fields for enhanced profile data.
| Name | Type | Required | Description |
| UserId | String | True | Unique identifier of the user whose additional fields are being fetched. |
| IncludeFields | String | False | Comma-separated list of user fields to include in the result, such as displayName, mail, jobTitle. |
| ExcludeFields | String | False | Comma-separated list of user fields to exclude from the result, such as mobilePhone, officeLocation. |
| Name | Type | Description |
| * | String | Query results including all selected fields from the user object, based on include and exclude parameters. |
Forwards a calendar event invitation to one or more recipients.
| Name | Type | Required | Description |
| EventId | String | True | Identifier of the calendar event to be forwarded. |
| ToRecipients | String | True | Semicolon-separated list of recipient email addresses to whom the event is forwarded, such as [email protected]; [email protected]. |
| UserId | String | False | Identifier of the user who is forwarding the event. |
| UserPrincipalName | String | False | User principal name (UPN) of the user forwarding the event. Leave blank to use the currently authenticated user. |
| Comment | String | False | Optional message or comment to include with the forwarded event. Can be an empty string. |
| Name | Type | Description |
| Status | String | Indicates whether the stored procedure completed successfully or returned an error. |
Forwards an existing email message to specified recipients.
| Name | Type | Required | Description |
| MessageId | String | True | Identifier of the email message to be forwarded. |
| ToRecipients | String | True | Semicolon-separated list of recipient email addresses, such as [email protected]; [email protected]. |
| Comment | String | False | Optional comment or body content to include above the original message when forwarding. |
| Name | Type | Description |
| Status | String | Indicates whether the stored procedure completed successfully or returned an error. |
Returns a URL to initiate the admin consent process for granting application access using custom OAuth credentials.
| Name | Type | Required | Description |
| CallbackUrl | String | False | URL to which the user is redirected after granting admin consent. Must match the Reply URL configured in the Azure Active Directory app registration. |
| State | String | False | Opaque value used to maintain state between the request and the callback. Returned unchanged in the response for validation. |
| Scope | String | False | Space-separated list of permissions to request from the admin, such as User.Read Mail.Read Calendars.ReadWrite.
デフォルト値はoffline_access https://graph.microsoft.com/group.read.all https://graph.microsoft.com/group.readwrite.all https://graph.microsoft.com/user.read https://graph.microsoft.com/user.readwrite.all https://graph.microsoft.com/calendars.readwrite https://graph.microsoft.com/contacts.readwrite https://graph.microsoft.com/mail.readwrite https://graph.microsoft.com/Files.ReadWrite.Allです。 |
| Name | Type | Description |
| URL | String | Authorization URL that should be opened in a browser to initiate admin consent and retrieve the verifier token. |
Moves an email message to a specified folder within a user's mailbox.
| Name | Type | Required | Description |
| MessageId | String | True | Identifier of the email message that is to be moved. |
| DestinationId | String | True | Identifier of the destination folder where the email message should be moved. |
| Name | Type | Description |
| Id | String | Identifier of the email message after it has been successfully moved. |
Sends a reply to an existing email message, preserving the message thread and including quoted content where applicable.
| Name | Type | Required | Description |
| MessageId | String | True | The unique identifier of the original email message being replied to. This ID is required to retrieve the correct message from the mailbox. |
| Comment | String | False | The body content of the reply message. This comment will appear above the original message in the reply thread. |
| ToAll | Boolean | False | Specifies whether the reply should be sent to all original recipients (true) or only to the sender (false).
デフォルト値はfalseです。 |
| UserId | String | False | The identifier of the impersonated user on whose behalf the reply is being sent. Used in delegated access scenarios. |
| Name | Type | Description |
| Success | Boolean | Indicates whether the reply operation was completed successfully. A value of true confirms the message was sent; false indicates failure. |
Submits a response (accept, decline, tentative) to a calendar event invitation, updating the attendee's participation status.
| Name | Type | Required | Description |
| EventId | String | True | The unique identifier of the calendar event to which the user is responding. This ID is used to locate the specific event in the user's calendar. |
| UserId | String | False | The identifier of the impersonated user performing the operation. Required when actions are taken on behalf of another user. |
| ResponseType | String | True | Indicates the type of response to send for the event invitation. Valid values are: Accept, Decline. This determines the participant's response status for the event. |
| SendResponse | String | False | Boolean value that specifies whether a response should be sent to the event organizer. If true, a response is sent; if false, the response is not communicated. Optional. Default is true.
デフォルト値はtrueです。 |
| Comment | String | False | An optional message or note to include in the response. This text is typically visible to the event organizer. |
| Name | Type | Description |
| Success | Boolean | Indicates whether the operation to respond to the event was successful. Returns true if the response was processed correctly, false otherwise. |
Sends an email message from the authenticated user's mailbox with optional attachments.
| Name | Type | Required | Description |
| Id | String | False | Optional identifier of the draft email message to send. If not provided, a new message is created from the input fields. |
| Subject | String | False | Subject line of the email. |
| Content | String | False | Body content of the email message. |
| Attachments | String | False | List of attachments in the format: filename1, filecontent1; filename2, filecontent2. Each filecontent can be Base64-encoded data or a file path prefixed with @. |
| FileName | String | False | Name of the email attachment when sending a file manually. |
| LocalFile | String | False | Path to the local file that contains the attachment content. |
| ContentBytes | String | False | Content of the attachment encoded in Base64 format. |
| ToRecipients | String | False | Semicolon-separated list of recipient email addresses for the To field, such as [email protected]; [email protected]. |
| CCRecipients | String | False | Semicolon-separated list of recipient email addresses for the CC field. |
| BccRecipients | String | False | Semicolon-separated list of recipient email addresses for the Bcc field. |
| SenderEmail | String | False | Email address on whose behalf the message should be sent. Use this to send on behalf of another user. |
| FromEmail | String | False | Email address from which the message is sent. Use this to send from another user's account. |
| ContentType | String | False | Format of the email body content, such as text or HTML.
使用できる値は次のとおりです。text, html デフォルト値はtextです。 |
| SingleValueExtendedProperties | String | False | Text in the format of a json array containing json objects with an id and a value field. Allows a user to pass property values directly to access behavior like scheduling the sending of an email. |
| Name | Type | Description |
| Status | String | Indicates whether the stored procedure executed successfully or returned an error. |
Postpones a calendar event reminder for a defined duration, emulating the 'Snooze' functionality in email/calendar clients.
| Name | Type | Required | Description |
| EventId | String | True | The unique identifier of the calendar event for which the reminder is being postponed. This is required to locate the specific event in the user's calendar. |
| DateTime | String | False | The new date and time to which the event reminder should be snoozed. This value determines when the reminder will next appear. |
| TimeZone | String | False | The time zone associated with the new reminder date and time. Ensures the snooze is scheduled accurately relative to the user's local time. |
| UserId | String | False | The identifier of the impersonated user performing the operation. Required when actions are taken on behalf of another user. |
| Name | Type | Description |
| Success | Boolean | Indicates whether the snooze reminder request was successful. Returns true if the operation completed without errors. |
このセクションで説明されているシステムテーブルをクエリして、スキーマ情報、データソース機能に関する情報、およびバッチ操作の統計にアクセスできます。
以下のテーブルは、Microsoft Office 365 のデータベースメタデータを返します。
以下のテーブルは、データソースへの接続方法およびクエリ方法についての情報を返します。
次のテーブルは、データ変更クエリのクエリ統計を返します。
利用可能なデータベースをリストします。
次のクエリは、接続文字列で決定されるすべてのデータベースを取得します。
SELECT * FROM sys_catalogs
| Name | Type | Description |
| CatalogName | String | データベース名。 |
利用可能なスキーマをリストします。
次のクエリは、すべての利用可能なスキーマを取得します。
SELECT * FROM sys_schemas
| Name | Type | Description |
| CatalogName | String | データベース名。 |
| SchemaName | String | スキーマ名。 |
利用可能なテーブルをリストします。
次のクエリは、利用可能なテーブルおよびビューを取得します。
SELECT * FROM sys_tables
| Name | Type | Description |
| CatalogName | String | テーブルまたはビューを含むデータベース。 |
| SchemaName | String | テーブルまたはビューを含むスキーマ。 |
| TableName | String | テーブル名またはビュー名。 |
| TableType | String | テーブルの種類(テーブルまたはビュー)。 |
| Description | String | テーブルまたはビューの説明。 |
| IsUpdateable | Boolean | テーブルが更新可能かどうか。 |
利用可能なテーブルおよびビューのカラムについて説明します。
次のクエリは、Events テーブルのカラムとデータ型を返します。
SELECT ColumnName, DataTypeName FROM sys_tablecolumns WHERE TableName='Events'
| Name | Type | Description |
| CatalogName | String | テーブルまたはビューを含むデータベースの名前。 |
| SchemaName | String | テーブルまたはビューを含むスキーマ。 |
| TableName | String | カラムを含むテーブルまたはビューの名前。 |
| ColumnName | String | カラム名。 |
| DataTypeName | String | データ型の名前。 |
| DataType | Int32 | データ型を示す整数値。この値は、実行時に環境に基づいて決定されます。 |
| Length | Int32 | カラムのストレージサイズ。 |
| DisplaySize | Int32 | 指定されたカラムの通常の最大幅(文字数)。 |
| NumericPrecision | Int32 | 数値データの最大桁数。文字データおよび日時データの場合は、カラムの長さ(文字数)。 |
| NumericScale | Int32 | カラムのスケール(小数点以下の桁数)。 |
| IsNullable | Boolean | カラムがNull を含められるかどうか。 |
| Description | String | カラムの簡単な説明。 |
| Ordinal | Int32 | カラムのシーケンスナンバー。 |
| IsAutoIncrement | String | カラムに固定増分値が割り当てられるかどうか。 |
| IsGeneratedColumn | String | 生成されたカラムであるかどうか。 |
| IsHidden | Boolean | カラムが非表示かどうか。 |
| IsArray | Boolean | カラムが配列かどうか。 |
| IsReadOnly | Boolean | カラムが読み取り専用かどうか。 |
| IsKey | Boolean | sys_tablecolumns から返されたフィールドがテーブルの主キーであるかどうか。 |
| ColumnType | String | スキーマ内のカラムの役割または分類。可能な値は、SYSTEM、LINKEDCOLUMN、NAVIGATIONKEY、REFERENCECOLUMN、およびNAVIGATIONPARENTCOLUMN が含まれます。 |
利用可能なストアドプロシージャをリストします。
次のクエリは、利用可能なストアドプロシージャを取得します。
SELECT * FROM sys_procedures
| Name | Type | Description |
| CatalogName | String | ストアドプロシージャを含むデータベース。 |
| SchemaName | String | ストアドプロシージャを含むスキーマ。 |
| ProcedureName | String | ストアドプロシージャの名前。 |
| Description | String | ストアドプロシージャの説明。 |
| ProcedureType | String | PROCEDURE やFUNCTION などのプロシージャのタイプ。 |
ストアドプロシージャパラメータについて説明します。
次のクエリは、SendMail ストアドプロシージャのすべての入力パラメータについての情報を返します。
SELECT * FROM sys_procedureparameters WHERE ProcedureName = 'SendMail' AND Direction = 1 OR Direction = 2
パラメータに加えて結果セットのカラムを含めるには、IncludeResultColumns 擬似カラムをTrue に設定します。
SELECT * FROM sys_procedureparameters WHERE ProcedureName = 'SendMail' AND IncludeResultColumns='True'
| Name | Type | Description |
| CatalogName | String | ストアドプロシージャを含むデータベースの名前。 |
| SchemaName | String | ストアドプロシージャを含むスキーマの名前。 |
| ProcedureName | String | パラメータを含むストアドプロシージャの名前。 |
| ColumnName | String | ストアドプロシージャパラメータの名前。 |
| Direction | Int32 | パラメータのタイプに対応する整数値:input (1)。input/output (2)、またはoutput(4)。input/output タイプパラメータは、入力パラメータと出力パラメータの両方になれます。 |
| DataType | Int32 | データ型を示す整数値。この値は、実行時に環境に基づいて決定されます。 |
| DataTypeName | String | データ型の名前。 |
| NumericPrecision | Int32 | 数値データの場合は最大精度。文字データおよび日時データの場合は、カラムの長さ(文字数)。 |
| Length | Int32 | 文字データの場合は、許可される文字数。数値データの場合は、許可される桁数。 |
| NumericScale | Int32 | 数値データの小数点以下の桁数。 |
| IsNullable | Boolean | パラメータがNull を含められるかどうか。 |
| IsRequired | Boolean | プロシージャの実行にパラメータが必要かどうか。 |
| IsArray | Boolean | パラメータが配列かどうか。 |
| Description | String | パラメータの説明。 |
| Ordinal | Int32 | パラメータのインデックス。 |
| Values | String | このパラメータで設定できる値は、このカラムに表示されるものに限られます。指定できる値はカンマ区切りです。 |
| SupportsStreams | Boolean | パラメータがファイルを表すかどうか。ファイルは、ファイルパスとして渡すことも、ストリームとして渡すこともできます。 |
| IsPath | Boolean | パラメータがスキーマ作成操作のターゲットパスかどうか。 |
| Default | String | 何も値が指定されていない場合に、このパラメータで使用される値。 |
| SpecificName | String | 複数のストアドプロシージャが同じ名前を持つ場合、それぞれの同名のストアドプロシージャを一意に識別するラベル。特定の名前を持つプロシージャが1つだけの場合は、その名前がここに単純に反映されます。 |
| IsCDataProvided | Boolean | プロシージャがネイティブのMicrosoft Office 365 プロシージャではなく、CData によって追加 / 実装されているかどうか。 |
| Name | Type | Description |
| IncludeResultColumns | Boolean | 出力にパラメータに加えて結果セットのカラムを含めるかどうか。デフォルトはFalse です。 |
主キーおよび外部キーについて説明します。
次のクエリは、Events テーブルの主キーを取得します。
SELECT * FROM sys_keycolumns WHERE IsKey='True' AND TableName='Events'
| Name | Type | Description |
| CatalogName | String | キーを含むデータベースの名前。 |
| SchemaName | String | キーを含むスキーマの名前。 |
| TableName | String | キーを含むテーブルの名前。 |
| ColumnName | String | キーカラムの名前 |
| IsKey | Boolean | カラムがTableName フィールドで参照されるテーブル内の主キーかどうか。 |
| IsForeignKey | Boolean | カラムがTableName フィールドで参照される外部キーかどうか。 |
| PrimaryKeyName | String | 主キーの名前。 |
| ForeignKeyName | String | 外部キーの名前。 |
| ReferencedCatalogName | String | 主キーを含むデータベース。 |
| ReferencedSchemaName | String | 主キーを含むスキーマ。 |
| ReferencedTableName | String | 主キーを含むテーブル。 |
| ReferencedColumnName | String | 主キーのカラム名。 |
外部キーについて説明します。
次のクエリは、他のテーブルを参照するすべての外部キーを取得します。
SELECT * FROM sys_foreignkeys WHERE ForeignKeyType = 'FOREIGNKEY_TYPE_IMPORT'
| 名前 | タイプ | 説明 |
| CatalogName | String | キーを含むデータベースの名前。 |
| SchemaName | String | キーを含むスキーマの名前。 |
| TableName | String | キーを含むテーブルの名前。 |
| ColumnName | String | キーカラムの名前 |
| PrimaryKeyName | String | 主キーの名前。 |
| ForeignKeyName | String | 外部キーの名前。 |
| ReferencedCatalogName | String | 主キーを含むデータベース。 |
| ReferencedSchemaName | String | 主キーを含むスキーマ。 |
| ReferencedTableName | String | 主キーを含むテーブル。 |
| ReferencedColumnName | String | 主キーのカラム名。 |
| ForeignKeyType | String | 外部キーがインポート(他のテーブルを指す)キーかエクスポート(他のテーブルから参照される)キーかを指定します。 |
主キーについて説明します。
次のクエリは、すべてのテーブルとビューから主キーを取得します。
SELECT * FROM sys_primarykeys
| Name | Type | Description |
| CatalogName | String | キーを含むデータベースの名前。 |
| SchemaName | String | キーを含むスキーマの名前。 |
| TableName | String | キーを含むテーブルの名前。 |
| ColumnName | String | キーカラムの名前。 |
| KeySeq | String | 主キーのシーケンス番号。 |
| KeyName | String | 主キーの名前。 |
利用可能なインデックスについて説明します。インデックスをフィルタリングすることで、より高速なクエリ応答時間でセレクティブクエリを記述できます。
次のクエリは、主キーでないすべてのインデックスを取得します。
SELECT * FROM sys_indexes WHERE IsPrimary='false'
| Name | Type | Description |
| CatalogName | String | インデックスを含むデータベースの名前。 |
| SchemaName | String | インデックスを含むスキーマの名前。 |
| TableName | String | インデックスを含むテーブルの名前。 |
| IndexName | String | インデックス名。 |
| ColumnName | String | インデックスに関連付けられたカラムの名前。 |
| IsUnique | Boolean | インデックスが固有の場合はTrue。そうでない場合はFalse。 |
| IsPrimary | Boolean | インデックスが主キーの場合はTrue。そうでない場合はFalse。 |
| Type | Int16 | インデックスタイプに対応する整数値:statistic (0)、clustered (1)、hashed (2)、またはother (3)。 |
| SortOrder | String | 並べ替え順序:A が昇順、D が降順。 |
| OrdinalPosition | Int16 | インデックスのカラムのシーケンスナンバー。 |
利用可能な接続プロパティと、接続文字列に設定されている接続プロパティに関する情報を返します。
次のクエリは、接続文字列に設定されている、あるいはデフォルト値で設定されているすべての接続プロパティを取得します。
SELECT * FROM sys_connection_props WHERE Value <> ''
| Name | Type | Description |
| Name | String | 接続プロパティ名。 |
| ShortDescription | String | 簡単な説明。 |
| Type | String | 接続プロパティのデータ型。 |
| Default | String | 明示的に設定されていない場合のデフォルト値。 |
| Values | String | 可能な値のカンマ区切りリスト。別な値が指定されていると、検証エラーがスローされます。 |
| Value | String | 設定した値またはあらかじめ設定されたデフォルト。 |
| Required | Boolean | プロパティが接続に必要かどうか。 |
| Category | String | 接続プロパティのカテゴリ。 |
| IsSessionProperty | String | プロパティが、現在の接続に関する情報を保存するために使用されるセッションプロパティかどうか。 |
| Sensitivity | String | プロパティの機密度。これは、プロパティがロギングおよび認証フォームで難読化されているかどうかを通知します。 |
| PropertyName | String | キャメルケースの短縮形の接続プロパティ名。 |
| Ordinal | Int32 | パラメータのインデックス。 |
| CatOrdinal | Int32 | パラメータカテゴリのインデックス。 |
| Hierarchy | String | このプロパティと一緒に設定する必要がある、関連のある依存プロパティを表示します。 |
| Visible | Boolean | プロパティが接続UI に表示されるかどうかを通知します。 |
| ETC | String | プロパティに関するその他のさまざまな情報。 |
Cloud がデータソースにオフロードできるSELECT クエリ処理について説明します。
SQL 構文の詳細については、SQL 準拠 を参照してください。
以下はSQL 機能のサンプルデータセットです。 SELECT 機能のいくつかの側面がサポートされている場合には、カンマ区切りのリストで返されます。サポートされていない場合、カラムにはNO が入ります。
| 名前 | 説明 | 有効な値 |
| AGGREGATE_FUNCTIONS | サポートされている集計関数。 | AVG, COUNT, MAX, MIN, SUM, DISTINCT |
| COUNT | COUNT 関数がサポートされているかどうか。 | YES, NO |
| IDENTIFIER_QUOTE_OPEN_CHAR | 識別子をエスケープするための開始文字。 | [ |
| IDENTIFIER_QUOTE_CLOSE_CHAR | 識別子をエスケープするための終了文字。 | ] |
| SUPPORTED_OPERATORS | サポートされているSQL 演算子。 | =, >, <, >=, <=, <>, !=, LIKE, NOT LIKE, IN, NOT IN, IS NULL, IS NOT NULL, AND, OR |
| GROUP_BY | GROUP BY がサポートされているかどうか。サポートされている場合、どのレベルでサポートされているか。 | NO, NO_RELATION, EQUALS_SELECT, SQL_GB_COLLATE |
| OJ_CAPABILITIES | サポートされている外部結合の種類。 | NO, LEFT, RIGHT, FULL, INNER, NOT_ORDERED, ALL_COMPARISON_OPS |
| OUTER_JOINS | 外部結合がサポートされているかどうか。 | YES, NO |
| SUBQUERIES | サブクエリがサポートされているかどうか。サポートされていれば、どのレベルでサポートされているか。 | NO, COMPARISON, EXISTS, IN, CORRELATED_SUBQUERIES, QUANTIFIED |
| STRING_FUNCTIONS | サポートされている文字列関数。 | LENGTH, CHAR, LOCATE, REPLACE, SUBSTRING, RTRIM, LTRIM, RIGHT, LEFT, UCASE, SPACE, SOUNDEX, LCASE, CONCAT, ASCII, REPEAT, OCTET, BIT, POSITION, INSERT, TRIM, UPPER, REGEXP, LOWER, DIFFERENCE, CHARACTER, SUBSTR, STR, REVERSE, PLAN, UUIDTOSTR, TRANSLATE, TRAILING, TO, STUFF, STRTOUUID, STRING, SPLIT, SORTKEY, SIMILAR, REPLICATE, PATINDEX, LPAD, LEN, LEADING, KEY, INSTR, INSERTSTR, HTML, GRAPHICAL, CONVERT, COLLATION, CHARINDEX, BYTE |
| NUMERIC_FUNCTIONS | サポートされている数値関数。 | ABS, ACOS, ASIN, ATAN, ATAN2, CEILING, COS, COT, EXP, FLOOR, LOG, MOD, SIGN, SIN, SQRT, TAN, PI, RAND, DEGREES, LOG10, POWER, RADIANS, ROUND, TRUNCATE |
| TIMEDATE_FUNCTIONS | サポートされている日付および時刻関数。 | NOW, CURDATE, DAYOFMONTH, DAYOFWEEK, DAYOFYEAR, MONTH, QUARTER, WEEK, YEAR, CURTIME, HOUR, MINUTE, SECOND, TIMESTAMPADD, TIMESTAMPDIFF, DAYNAME, MONTHNAME, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, EXTRACT |
| REPLICATION_SKIP_TABLES | レプリケーション中にスキップされたテーブルを示します。 | |
| REPLICATION_TIMECHECK_COLUMNS | レプリケーション中に更新判断のカラムとして使用するかどうかを、(指定された順に)チェックするカラムのリストを含む文字列の配列。 | |
| IDENTIFIER_PATTERN | 識別子としてどの文字列が有効かを示す文字列値。 | |
| SUPPORT_TRANSACTION | プロバイダーが、コミットやロールバックなどのトランザクションをサポートしているかどうかを示します。 | YES, NO |
| DIALECT | 使用するSQL ダイアレクトを示します。 | |
| KEY_PROPERTIES | Uniform データベースを特定するプロパティを示します。 | |
| SUPPORTS_MULTIPLE_SCHEMAS | プロバイダー用に複数のスキームが存在するかどうかを示します。 | YES, NO |
| SUPPORTS_MULTIPLE_CATALOGS | プロバイダー用に複数のカタログが存在するかどうかを示します。 | YES, NO |
| DATASYNCVERSION | このドライバーにアクセスするために必要な、CData Sync のバージョン。 | Standard, Starter, Professional, Enterprise |
| DATASYNCCATEGORY | このドライバーのCData Sync カテゴリ。 | Source, Destination, Cloud Destination |
| SUPPORTSENHANCEDSQL | API で提供されている以上の、追加SQL 機能がサポートされているかどうか。 | TRUE, FALSE |
| SUPPORTS_BATCH_OPERATIONS | バッチ操作がサポートされているかどうか。 | YES, NO |
| SQL_CAP | このドライバーでサポートされているすべてのSQL 機能。 | SELECT, INSERT, DELETE, UPDATE, TRANSACTIONS, ORDERBY, OAUTH, ASSIGNEDID, LIMIT, LIKE, BULKINSERT, COUNT, BULKDELETE, BULKUPDATE, GROUPBY, HAVING, AGGS, OFFSET, REPLICATE, COUNTDISTINCT, JOINS, DROP, CREATE, DISTINCT, INNERJOINS, SUBQUERIES, ALTER, MULTIPLESCHEMAS, GROUPBYNORELATION, OUTERJOINS, UNIONALL, UNION, UPSERT, GETDELETED, CROSSJOINS, GROUPBYCOLLATE, MULTIPLECATS, FULLOUTERJOIN, MERGE, JSONEXTRACT, BULKUPSERT, SUM, SUBQUERIESFULL, MIN, MAX, JOINSFULL, XMLEXTRACT, AVG, MULTISTATEMENTS, FOREIGNKEYS, CASE, LEFTJOINS, COMMAJOINS, WITH, LITERALS, RENAME, NESTEDTABLES, EXECUTE, BATCH, BASIC, INDEX |
| PREFERRED_CACHE_OPTIONS | 使用したいcacheOptions を指定する文字列値。 | |
| ENABLE_EF_ADVANCED_QUERY | ドライバーがEntity Framework の高度なクエリをサポートしているかどうかを示します。サポートしていなければ、クエリはクライアントサイドで処理されます。 | YES, NO |
| PSEUDO_COLUMNS | 利用可能な疑似カラムを示す文字列の配列。 | |
| MERGE_ALWAYS | 値がtrue であれば、CData Sync 内でMerge Model が強制的に実行されます。 | TRUE, FALSE |
| REPLICATION_MIN_DATE_QUERY | レプリケート開始日時を返すSELECT クエリ。 | |
| REPLICATION_MIN_FUNCTION | サーバーサイドでmin を実行するために使用する式名を、プロバイダーが指定できるようになります。 | |
| REPLICATION_START_DATE | レプリケート開始日を、プロバイダーが指定できるようになります。 | |
| REPLICATION_MAX_DATE_QUERY | レプリケート終了日時を返すSELECT クエリ。 | |
| REPLICATION_MAX_FUNCTION | サーバーサイドでmax を実行するために使用する式名を、プロバイダーが指定できるようになります。 | |
| IGNORE_INTERVALS_ON_INITIAL_REPLICATE | 初回のレプリケートで、レプリケートをチャンクに分割しないテーブルのリスト。 | |
| CHECKCACHE_USE_PARENTID | CheckCache 構文を親キーカラムに対して実行するかどうかを示します。 | TRUE, FALSE |
| CREATE_SCHEMA_PROCEDURES | スキーマファイルの生成に使用できる、ストアドプロシージャを示します。 |
次のクエリは、WHERE 句で使用できる演算子を取得します。
SELECT * FROM sys_sqlinfo WHERE Name = 'SUPPORTED_OPERATORS'
WHERE 句では、個々のテーブルの制限や要件が異なる場合がありますので注意してください。詳しくは、データモデル セクションを参照してください。
| Name | Type | Description |
| NAME | String | SQL 構文のコンポーネント、またはサーバー上で処理できる機能。 |
| VALUE | String | サポートされるSQL またはSQL 構文の詳細。 |
試行された変更に関する情報を返します。
次のクエリは、バッチ処理で変更された行のId を取得します。
SELECT * FROM sys_identity
| Name | Type | Description |
| Id | String | データ変更処理から返された、データベース生成Id。 |
| Batch | String | バッチの識別子。1 は単一処理。 |
| Operation | String | バッチ内の処理の結果:INSERTED、UPDATED、またはDELETED。 |
| Message | String | SUCCESS、またはバッチ内の更新が失敗した場合のエラーメッセージ。 |
利用可能なシステム情報を説明します。
次のクエリは、すべてのカラムを取得します。
SELECT * FROM sys_information
| Name | Type | Description |
| Product | String | 製品名。 |
| Version | String | 製品のバージョン番号。 |
| Datasource | String | 製品が接続するデータソースの名前。 |
| NodeId | String | 製品がインストールされているマシンの固有識別子。 |
| HelpURL | String | 製品のヘルプドキュメントのURL。 |
| License | String | 製品のライセンス情報。(この情報が利用できない場合、この項目は空白のままか「N/A」と表示されます。) |
| Location | String | 製品のライブラリが格納されているファイルパスの場所。 |
| Environment | String | 製品が現在稼働している環境またはランタイムのバージョン。 |
| DataSyncVersion | String | 本コネクタを使用するために必要なCData Sync のティア。 |
| DataSyncCategory | String | CData Sync 機能のカテゴリ(例:Source、Destination)。 |
Cloud は、データソースの型を、スキーマで使用可能な対応するデータ型にマッピングします。以下のテーブルはこれらのマッピングを説明します。
| Microsoft Office 365 (OData V4) | CData スキーマ |
| Edm.Binary | binary |
| Edm.Boolean | bool |
| Edm.Date | datetime |
| Edm.DateTimeOffset | datetime |
| Edm.Decimal | decimal |
| Edm.Double | double |
| Edm.Guid | guid |
| Edm.Int32 | int |
| Edm.String | string |
| Edm.TimeOfDay | time |
| プロパティ | 説明 |
| AuthScheme | Microsoft Office 365 に接続する際に使用する認証の種類を指定します。このプロパティが空白の場合は、デフォルトの認証が使用されます。 |
| プロパティ | 説明 |
| AzureTenant | データにアクセスするために使用されているMicrosoft Office 365 テナントを識別します。テナントのドメイン名(例: contoso.onmicrosoft.com )またはディレクトリ(テナント)ID のいずれかを受け付けます。 |
| AzureEnvironment | 接続するAzure ネットワーク環境を指定します。Azure アカウントが追加されたネットワークと同じである必要があります。 |
| プロパティ | 説明 |
| OAuthClientId | カスタムOAuth アプリケーションに割り当てられたクライアントID(コンシューマーキーとも呼ばれます)を指定します。このID は、認証時にOAuth 認可サーバーにアプリケーションを識別させるために必要です。 |
| OAuthClientSecret | カスタムOAuth アプリケーションに割り当てられたクライアントシークレットを指定します。この機密情報は、OAuth 認可サーバーに対してアプリケーションを認証するために使用されます。(カスタムOAuth アプリケーションのみ) |
| Scope | データへの適切なアクセスを確実にするために、認証ユーザーのアプリケーションへのアクセス範囲を指定します。 カスタムOAuth アプリケーションが必要な場合は、通常、アプリケーションの作成時に指定します。 |
| プロパティ | 説明 |
| OAuthJWTCert | クライアント証明書のJWT 証明書ストアの名前を指定します。 |
| OAuthJWTCertType | JWT 証明書を格納しているキーストアの種類を指定します。 |
| OAuthJWTCertPassword | パスワードで保護された証明書ストアにアクセスするために使用されるOAuth JWT 証明書のパスワードを指定します。証明書ストアがパスワードを必要としない場合は、このプロパティを空白のままにします。 |
| OAuthJWTCertSubject | ストアで一致する証明書を検索するために使用される、OAuth JWT 証明書のサブジェクトを指定します。部分一致と、先頭の証明書を選択するためのワイルドカード '*' をサポートします。 |
| プロパティ | 説明 |
| SSLServerCert | TLS/SSL を使用して接続する際に、サーバーが受け入れ可能な証明書を指定します。 |
| プロパティ | 説明 |
| Verbosity | ログファイルのVerbosity レベルを指定し、記録される情報の詳細度を制御します。サポートされる値の範囲は1から5までです。 |
| プロパティ | 説明 |
| BrowsableSchemas | レポートされるスキーマを利用可能なすべてのスキーマのサブセットに制限するオプション設定。例えば、 BrowsableSchemas=SchemaA,SchemaB,SchemaC です。 |
| プロパティ | 説明 |
| DefaultGroups | Determines whether to use the /me/memberOf or /groups endpoint for user authentication. |
| DefaultUser | Determines whether to use the /me or /users endpoint for user authentication. |
| DirectoryRetrievalDepth | Specifies how far down in a Files table's subdirectories should be scanned to retrieve results. If DirectoryRetrievalDepth is not explicitly set, the driver uses a depth of 5 sublevels below the root (default). |
| GroupId | Specify a default GroupId. |
| MaxRows | 集計やGROUP BY を含まないクエリで返される最大行数を指定します。 |
| MessageContentType | Determines whether to return messages as in html format or as text. |
| Pagesize | provider がMicrosoft Office 365 にデータをリクエストするときに返す、ページあたりの最大レコード数を指定します。 |
| PseudoColumns | テーブルカラムとして公開する擬似カラムを、'TableName=ColumnName;TableName=ColumnName' の形式の文字列で指定します。 |
| ThrowsKeyNotFound | 更新された行がない場合に例外をスローするかどうかを指定します。 |
| Timeout | provider がタイムアウトエラーを返すまでにサーバーからの応答を待機する最大時間を秒単位で指定します。 |
| UseClientSidePaging | Toggles the CData ADO.NET Provider for Microsoft Office 365's use of client side paging. |
| UserId | Specify a default UserId. |
このセクションでは、本プロバイダーの接続文字列で設定可能なAuthentication プロパティの全リストを提供します。
| プロパティ | 説明 |
| AuthScheme | Microsoft Office 365 に接続する際に使用する認証の種類を指定します。このプロパティが空白の場合は、デフォルトの認証が使用されます。 |
Microsoft Office 365 に接続する際に使用する認証の種類を指定します。このプロパティが空白の場合は、デフォルトの認証が使用されます。
string
"AzureAD"
AuthScheme には以下が含まれます。
Azure AD で認証するためのカスタムアプリケーションの作成方法については、Entra ID(Azure AD)アプリケーションの作成 を参照してください。
Azure AD サービスプリンシパルで認証するためのカスタムアプリケーションの作成方法については、Entra ID(Azure AD)でのサービスプリンシパルアプリの作成 を参照してください。
このセクションでは、本プロバイダーの接続文字列で設定可能なAzure Authentication プロパティの全リストを提供します。
| プロパティ | 説明 |
| AzureTenant | データにアクセスするために使用されているMicrosoft Office 365 テナントを識別します。テナントのドメイン名(例: contoso.onmicrosoft.com )またはディレクトリ(テナント)ID のいずれかを受け付けます。 |
| AzureEnvironment | 接続するAzure ネットワーク環境を指定します。Azure アカウントが追加されたネットワークと同じである必要があります。 |
データにアクセスするために使用されているMicrosoft Office 365 テナントを識別します。テナントのドメイン名(例: contoso.onmicrosoft.com )またはディレクトリ(テナント)ID のいずれかを受け付けます。
string
""
テナントとは、Microsoft Entra ID(旧称:Azure AD)を通じて管理される、組織のユーザーやリソースのためのデジタルコンテナです。 各テナントには一意のディレクトリID が関連付けられており、多くの場合、カスタムドメイン(例:microsoft.com やcontoso.onmicrosoft.com)も関連付けられています。
Microsoft Entra 管理センターでディレクトリ(テナント)ID を確認するには、Microsoft Entra ID -> プロパティに移動し、「ディレクトリ(テナント)ID」と表示されている値をコピーします。
このプロパティは以下の場合に必要です。
テナントの値は、2つの形式のいずれかで指定できます。
テナントを明示的に指定することで、認証リクエストが正しいディレクトリにルーティングされるようになります。これは、ユーザーが複数のテナントに所属している場合や、サービスプリンシパルベースの認証を使用する場合に特に重要です。
この値が必要な場面で省略されると、認証に失敗したり、誤ったテナントに接続されたりする可能性があります。その結果、認可されていないまたはリソースが見つからないといったエラーが発生する可能性があります。
接続するAzure ネットワーク環境を指定します。Azure アカウントが追加されたネットワークと同じである必要があります。
string
"GLOBAL"
Azure アカウントがGlobal ネットワークとは異なるネットワーク(China、USGOVT、USGOVTDOD など)の一部である場合は、必要です。
このセクションでは、本プロバイダーの接続文字列で設定可能なOAuth プロパティの全リストを提供します。
| プロパティ | 説明 |
| OAuthClientId | カスタムOAuth アプリケーションに割り当てられたクライアントID(コンシューマーキーとも呼ばれます)を指定します。このID は、認証時にOAuth 認可サーバーにアプリケーションを識別させるために必要です。 |
| OAuthClientSecret | カスタムOAuth アプリケーションに割り当てられたクライアントシークレットを指定します。この機密情報は、OAuth 認可サーバーに対してアプリケーションを認証するために使用されます。(カスタムOAuth アプリケーションのみ) |
| Scope | データへの適切なアクセスを確実にするために、認証ユーザーのアプリケーションへのアクセス範囲を指定します。 カスタムOAuth アプリケーションが必要な場合は、通常、アプリケーションの作成時に指定します。 |
カスタムOAuth アプリケーションに割り当てられたクライアントID(コンシューマーキーとも呼ばれます)を指定します。このID は、認証時にOAuth 認可サーバーにアプリケーションを識別させるために必要です。
string
""
このプロパティは2つのケースで必要となります:
(ドライバーが埋め込みOAuth 資格情報を提供する場合、この値はすでにCloud によって設定されており、手動で入力する必要がないことがあります。)
OAuthClientId は、認証付きの接続を構成する際に、OAuthClientSecret やOAuthSettingsLocation などの他のOAuth 関連プロパティと一緒に使用されるのが一般的です。
OAuthClientId は、ユーザーがOAuth 経由で認証を行う前に設定する必要がある、主要な接続パラメータの1つです。 この値は、通常、ID プロバイダーのアプリケーション登録設定で確認できます。 Client ID、Application ID、Consumer Key などとラベル付けされた項目を探してください。
クライアントID は、クライアントシークレットのような機密情報とは見なされませんが、アプリケーションの識別情報の一部であるため、慎重に取り扱う必要があります。公開リポジトリや共有設定ファイルでこの値を露出させないようにしてください。
接続設定時にこのプロパティを使用する方法の詳細については、接続の確立 を参照してください。
カスタムOAuth アプリケーションに割り当てられたクライアントシークレットを指定します。この機密情報は、OAuth 認可サーバーに対してアプリケーションを認証するために使用されます。(カスタムOAuth アプリケーションのみ)
string
""
このプロパティ(アプリケーションシークレットまたはコンシューマシークレットとも呼ばれます)は、安全なクライアント認証を必要とするすべてのフローでカスタムOAuth アプリケーションを使用する場合に必要です。たとえば、Web ベースのOAuth、サービスベースの接続、証明書ベースの認可フローなどが該当します。 組み込みOAuth アプリケーションを使用する場合は必要ありません。
クライアントシークレットは、OAuth フローのトークン交換ステップで使用されます。このステップでは、ドライバーが認可サーバーにアクセストークンを要求します。 この値が欠落しているか正しくない場合、認証はinvalid_client またはunauthorized_client エラーで失敗します。
OAuthClientSecret は、ユーザーがOAuth 経由で認証を行う前に設定する必要がある、主要な接続パラメータの1つです。この値は、OAuth アプリケーションを登録する際にID プロバイダーから取得できます。
Notes:
接続設定時にこのプロパティを使用する方法の詳細については、接続の確立 を参照してください。
データへの適切なアクセスを確実にするために、認証ユーザーのアプリケーションへのアクセス範囲を指定します。 カスタムOAuth アプリケーションが必要な場合は、通常、アプリケーションの作成時に指定します。
string
""
スコープは、認証ユーザーがどのようなアクセス権を持つかを定義するために設定されます。例えば、読み取り、読み取りと書き込み、機密情報への制限付きアクセスなどです。システム管理者は、スコープを使用して機能またはセキュリティクリアランスによるアクセスを選択的に有効化できます。
InitiateOAuth がGETANDREFRESH に設定されている場合、要求するスコープを変更したい場合はこのプロパティを使用する必要があります。
InitiateOAuth がREFRESH またはOFF のいずれかに設定されている場合、このプロパティまたはScope 入力を使用して、要求するスコープを変更できます。
このセクションでは、本プロバイダーの接続文字列で設定可能なJWT OAuth プロパティの全リストを提供します。
| プロパティ | 説明 |
| OAuthJWTCert | クライアント証明書のJWT 証明書ストアの名前を指定します。 |
| OAuthJWTCertType | JWT 証明書を格納しているキーストアの種類を指定します。 |
| OAuthJWTCertPassword | パスワードで保護された証明書ストアにアクセスするために使用されるOAuth JWT 証明書のパスワードを指定します。証明書ストアがパスワードを必要としない場合は、このプロパティを空白のままにします。 |
| OAuthJWTCertSubject | ストアで一致する証明書を検索するために使用される、OAuth JWT 証明書のサブジェクトを指定します。部分一致と、先頭の証明書を選択するためのワイルドカード '*' をサポートします。 |
クライアント証明書のJWT 証明書ストアの名前を指定します。
string
""
OAuthJWTCertType フィールドは、OAuthJWTCert により指定された証明書ストアの種類を指定します。 ストアがパスワードで保護されている場合は、OAuthJWTCertPassword を使用してパスワードを指定します。
OAuthJWTCert は、OAuthJWTCertSubject フィールドとともにクライアント証明書を指定するために使われます。 OAuthJWTCert に値が設定され、かつOAuthJWTCertSubject が設定されている場合、CData Cloud は証明書の検索を開始します。 詳しくは、OAuthJWTCertSubject を参照してください。
証明書ストアの指定はプラットフォームに依存します。
注記
JWT 証明書を格納しているキーストアの種類を指定します。
string
"PEMKEY_BLOB"
| 値 | 説明 | 注記 |
| USER | 現在のユーザーが所有する証明書ストア。 | Windows のみ使用可能です。 |
| MACHINE | マシンストア。 | Java やその他の非Windows 環境では使用できません。 |
| PFXFILE | 証明書を含むPFX(PKCS12)ファイル。 | |
| PFXBLOB | PFX(PKCS12)形式の証明書ストアをbase-64 でエンコードした文字列。 | |
| JKSFILE | 証明書を含むJava キーストア(JKS)ファイル。 | Java 専用。 |
| JKSBLOB | Java キーストア(JKS)形式の証明書ストアをbase-64 でエンコードした文字列。 | Java 専用。 |
| PEMKEY_FILE | 秘密鍵とオプションの証明書を含むPEM でエンコードされたファイル。 | |
| PEMKEY_BLOB | 秘密鍵とオプションの証明書をbase-64 でエンコードした文字列。 | |
| PUBLIC_KEY_FILE | PEM またはDER でエンコードされた公開鍵証明書を含むファイル。 | |
| PUBLIC_KEY_BLOB | PEM またはDER でエンコードされた公開鍵証明書をbase-64 でエンコードした文字列。 | |
| SSHPUBLIC_KEY_FILE | SSH 形式の公開鍵を含むファイル。 | |
| SSHPUBLIC_KEY_BLOB | SSH 形式の公開鍵ををbase-64 でエンコードした文字列。 | |
| P7BFILE | 証明書を含むPKCS7 ファイル。 | |
| PPKFILE | PuTTY 秘密キー(PPK)を含むファイル。 | |
| XMLFILE | XML 形式の証明書を含むファイル。 | |
| XMLBLOB | XML 形式の証明書を含む文字列。 | |
| BCFKSFILE | Bouncy Castle キーストアを含むファイル。 | |
| BCFKSBLOB | Bouncy Castle キーストアを含む文字列(base-64エンコード)。 |
パスワードで保護された証明書ストアにアクセスするために使用されるOAuth JWT 証明書のパスワードを指定します。証明書ストアがパスワードを必要としない場合は、このプロパティを空白のままにします。
string
""
このプロパティは、パスワードで保護された証明書ストアを開くために必要なパスワードを指定します。 パスワードが必要かどうかを判断するには、ご利用の証明書ストアのドキュメントまたは設定を参照してください。
ストアで一致する証明書を検索するために使用される、OAuth JWT 証明書のサブジェクトを指定します。部分一致と、先頭の証明書を選択するためのワイルドカード '*' をサポートします。
string
"*"
このプロパティの値は、ストアで一致する証明書を検索するために使用されます。検索プロセスは以下のように動作します。
値を '*' に設定すると、ストアの先頭の証明書が自動的に選択されます。 証明書のサブジェクトは識別名フィールドおよび値のカンマ区切りのリストです。 例:CN=www.server.com, OU=test, C=US, [email protected]。
一般的なフィールドには以下のものが含まれます。
| フィールド | 説明 |
| CN | 共通名。一般的には、www.server.com のようなホスト名です。 |
| O | 法人名 |
| OU | 法人の部署名 |
| L | 法人の住所(市町村名) |
| S | 法人の住所(都道府県) |
| C | 国名 |
| E | E メールアドレス |
フィールド値にカンマが含まれる場合は、引用符で囲んでください。例:"O=ACME, Inc."。
このセクションでは、本プロバイダーの接続文字列で設定可能なSSL プロパティの全リストを提供します。
| プロパティ | 説明 |
| SSLServerCert | TLS/SSL を使用して接続する際に、サーバーが受け入れ可能な証明書を指定します。 |
TLS/SSL を使用して接続する際に、サーバーが受け入れ可能な証明書を指定します。
string
""
TLS/SSL 接続を使用している場合は、このプロパティを使用して、サーバーが受け入れるTLS/SSL 証明書を指定できます。このプロパティに値を指定すると、マシンによって信頼されていない他の証明書はすべて拒否されます。
このプロパティは、次のフォームを取ります:
| 説明 | 例 |
| フルPEM 証明書(例では省略されています) | -----BEGIN CERTIFICATE----- MIIChTCCAe4CAQAwDQYJKoZIhv......Qw== -----END CERTIFICATE----- |
| 証明書を保有するローカルファイルへのパス。 | C:\cert.cer |
| 公開鍵(例では省略されています) | -----BEGIN RSA PUBLIC KEY----- MIGfMA0GCSq......AQAB -----END RSA PUBLIC KEY----- |
| MD5 Thumbprint(hex 値はスペースまたはコロン区切り) | ecadbdda5a1529c58a1e9e09828d70e4 |
| SHA1 Thumbprint(hex 値はスペースまたはコロン区切り) | 34a929226ae0819f2ec14b4a3d904f801cbb150d |
Note:'*' を使用してすべての証明書を受け入れるように指定することも可能ですが、セキュリティ上の懸念があるため推奨されません。
このセクションでは、本プロバイダーの接続文字列で設定可能なLogging プロパティの全リストを提供します。
| プロパティ | 説明 |
| Verbosity | ログファイルのVerbosity レベルを指定し、記録される情報の詳細度を制御します。サポートされる値の範囲は1から5までです。 |
ログファイルのVerbosity レベルを指定し、記録される情報の詳細度を制御します。サポートされる値の範囲は1から5までです。
string
"1"
このプロパティは、Cloud がログファイルに含める詳細レベルを定義します。 Verbosity レベルを高くするとログに記録される情報の詳細が増えますが、ログファイルが大きくなり取り込まれるデータが増えるためパフォーマンスが低下する可能性があります。
デフォルトのVerbosity レベルは1で、通常の運用にはこれが推奨されます。 より高いVerbosity レベルは主にデバッグを目的としています。 各レベルの詳細については、ログ を参照してください。
LogModules プロパティと組み合わせることで、Verbosity は特定の情報カテゴリに対するログの詳細度を調整できます。
このセクションでは、本プロバイダーの接続文字列で設定可能なSchema プロパティの全リストを提供します。
| プロパティ | 説明 |
| BrowsableSchemas | レポートされるスキーマを利用可能なすべてのスキーマのサブセットに制限するオプション設定。例えば、 BrowsableSchemas=SchemaA,SchemaB,SchemaC です。 |
レポートされるスキーマを利用可能なすべてのスキーマのサブセットに制限するオプション設定。例えば、 BrowsableSchemas=SchemaA,SchemaB,SchemaC です。
string
""
利用可能なデータベーススキーマをすべてリストすると余分な時間がかかり、パフォーマンスが低下します。 接続文字列にスキーマのリストを指定することで、時間を節約しパフォーマンスを向上させることができます。
このセクションでは、本プロバイダーの接続文字列で設定可能なMiscellaneous プロパティの全リストを提供します。
| プロパティ | 説明 |
| DefaultGroups | Determines whether to use the /me/memberOf or /groups endpoint for user authentication. |
| DefaultUser | Determines whether to use the /me or /users endpoint for user authentication. |
| DirectoryRetrievalDepth | Specifies how far down in a Files table's subdirectories should be scanned to retrieve results. If DirectoryRetrievalDepth is not explicitly set, the driver uses a depth of 5 sublevels below the root (default). |
| GroupId | Specify a default GroupId. |
| MaxRows | 集計やGROUP BY を含まないクエリで返される最大行数を指定します。 |
| MessageContentType | Determines whether to return messages as in html format or as text. |
| Pagesize | provider がMicrosoft Office 365 にデータをリクエストするときに返す、ページあたりの最大レコード数を指定します。 |
| PseudoColumns | テーブルカラムとして公開する擬似カラムを、'TableName=ColumnName;TableName=ColumnName' の形式の文字列で指定します。 |
| ThrowsKeyNotFound | 更新された行がない場合に例外をスローするかどうかを指定します。 |
| Timeout | provider がタイムアウトエラーを返すまでにサーバーからの応答を待機する最大時間を秒単位で指定します。 |
| UseClientSidePaging | Toggles the CData ADO.NET Provider for Microsoft Office 365's use of client side paging. |
| UserId | Specify a default UserId. |
Determines whether to use the /me/memberOf or /groups endpoint for user authentication.
string
"CurrentUser"
Determines whether to use the /me/memberOf or /groups endpoint for user authentication.
Supported values are:
Determines whether to use the /me or /users endpoint for user authentication.
string
"CurrentUser"
Determines whether to use the /me or /users endpoint for user authentication.
Supported values are:
Specifies how far down in a Files table's subdirectories should be scanned to retrieve results. If DirectoryRetrievalDepth is not explicitly set, the driver uses a depth of 5 sublevels below the root (default).
string
"5"
To scan only resources located in the root, specify 0.
To get all the data in a drive regardless of what depth it's located in, specify a value of -1.
Specify a default GroupId.
string
""
Specify a default GroupId.
集計やGROUP BY を含まないクエリで返される最大行数を指定します。
int
-1
このプロパティのデフォルト値である-1 は、クエリに明示的にLIMIT 句が含まれていない限り、行の制限が適用されないことを意味します。 (クエリにLIMIT 句が含まれている場合、クエリで指定された値がMaxRows 設定よりも優先されます。)
MaxRows を0より大きい整数に設定することで、クエリがデフォルトで過度に大きな結果セットを返さないようにします。
このプロパティは、非常に大きなデータセットを返す可能性のあるクエリを実行する際に、パフォーマンスを最適化し、過剰なリソース消費を防ぐのに役立ちます。
Determines whether to return messages as in html format or as text.
string
"html"
Determines whether to return messages as in html format or as text.
Supported values are:
provider がMicrosoft Office 365 にデータをリクエストするときに返す、ページあたりの最大レコード数を指定します。
int
300
クエリを処理する際、Microsoft Office 365 でクエリされたデータすべてを一度にリクエストする代わりに、Cloud はクエリされたデータをページと呼ばれる部分ごとにリクエストすることができます。
この接続プロパティは、Cloud がページごとにリクエストする結果の最大数を決定します。
Note:大きなページサイズを設定すると全体的なクエリ実行時間が短縮される可能性がありますが、その場合、クエリ実行時にCloud がより多くのメモリを使用することになり、タイムアウトが発生するリスクがあります。
テーブルカラムとして公開する擬似カラムを、'TableName=ColumnName;TableName=ColumnName' の形式の文字列で指定します。
string
""
このプロパティを使用すると、Cloud がテーブルカラムとして公開する擬似カラムを定義できます。
個々の擬似カラムを指定するには、以下の形式を使用します。
Table1=Column1;Table1=Column2;Table2=Column3
すべてのテーブルのすべての擬似カラムを含めるには、次を使用してください:
*=*
更新された行がない場合に例外をスローするかどうかを指定します。
bool
false
更新された行がない場合に例外をスローするかどうかを指定します。
provider がタイムアウトエラーを返すまでにサーバーからの応答を待機する最大時間を秒単位で指定します。
int
60
タイムアウトは、クエリや操作全体ではなくサーバーとの個々の通信に適用されます。 例えば、各ページング呼び出しがタイムアウト制限内に完了する場合、クエリは60秒を超えて実行を続けることができます。
タイムアウトはデフォルトで60秒に設定されています。タイムアウトを無効にするには、このプロパティを0に設定します。
タイムアウトを無効にすると、操作が成功するか、サーバー側のタイムアウト、ネットワークの中断、またはサーバーのリソース制限などの他の条件で失敗するまで無期限に実行されます。
Note: このプロパティは慎重に使用してください。長時間実行される操作がパフォーマンスを低下させたり、応答しなくなる可能性があるためです。
Toggles the CData ADO.NET Provider for Microsoft Office 365's use of client side paging.
bool
true
If your source does not support server side paging, leave UseClientSidePaging set to True (default).
If your source supports server side paging, set UseClientSidePaging to False.
Note: Setting UseClientSidePaging to True on a source that already supports paging can cause incomplete results.
Specify a default UserId.
string
""
Specify a default UserId.
LZMA from 7Zip LZMA SDK
LZMA SDK is placed in the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute the original LZMA SDK code, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
LZMA2 from XZ SDK
Version 1.9 and older are in the public domain.
Xamarin.Forms
Xamarin SDK
The MIT License (MIT)
Copyright (c) .NET Foundation Contributors
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
NSIS 3.10
Copyright (C) 1999-2025 Contributors THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS COMMON PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
1. DEFINITIONS
"Contribution" means:
a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and b) in the case of each subsequent Contributor:
i) changes to the Program, and
ii) additions to the Program;
where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
"Contributor" means any person or entity that distributes the Program.
"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
"Program" means the Contributions distributed in accordance with this Agreement.
"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
2. GRANT OF RIGHTS
a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.
b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.
c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.
d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
3. REQUIREMENTS
A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
a) it complies with the terms and conditions of this Agreement; and
b) its license agreement:
i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
When the Program is made available in source code form:
a) it must be made available under this Agreement; and
b) a copy of this Agreement must be included with each copy of the Program.
Contributors may not remove or alter any copyright notices contained within the Program.
Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.
4. COMMERCIAL DISTRIBUTION
Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense.
For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.
5. NO WARRANTY
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.
6. DISCLAIMER OF LIABILITY
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
7. GENERAL
If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
If Recipient institutes patent litigation against a Contributor with respect to a patent applicable to software (including a cross-claim or counterclaim in a lawsuit), then any patent licenses granted by that Contributor to such Recipient under this Agreement shall terminate as of the date such litigation is filed. In addition, if Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive.
Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. IBM is the initial Agreement Steward. IBM may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved.
This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.