JDBC Driver for Microsoft Teams

Build 22.0.8479

OpenShifts

Shifts table for MSTeams data provider.

テーブル固有の情報

Select

チームからすべてを取得するか、GroupId を'=' とIN 演算子で指定することでOpenShifts テーブルをクエリします。デフォルトでは、自身がメンバーであるグループのチームの空のシフトのみ返されます。組織の全グループのチームの空のシフトアイテムを取得するには、IncludeAllGroups プロパティをtrue に設定してください。 本製品 は Microsoft Teams API を使用して、以下のカラムと演算子で作成されたWHERE 句条件を処理します。その他のフィルタはクライアントサイドで本製品 内部で処理されます。

  • TeamId は、'=' およびIN 演算子をサポートします。
  • Id は、'=' 演算子をサポートします。

例えば、次のクエリはサーバーサイドで処理されます。

SELECT * FROM OpenShifts WHERE TeamId IN ('da838338-4e77-4c05-82a6-79d9f0274511', 'da834568-4df7-4c05-82a6-79d9f0274515')
SELECT * FROM OpenShifts WHERE Id = 'OPNSHFT_2d49e6dd-d965-4ea2-a399-37f2a082852c' AND TeamId='da838338-4e77-4c05-82a6-79d9f0274511'

Insert

チームスケジュールに空のシフトを挿入するにはTeamId と、startDateTime およびendDateTime を含むDraftOpenShift またはSharedOpenShift の情報の、どちらか1つを含む必要があります。

INSERT INTO OpenShifts (TeamId, draftopenshift_openslotcount, draftopenshift_startDateTime, draftopenshift_endDateTime) VALUES ('da838338-4e77-4c05-82a6-79d9f0274511', 4, '2020-09-16T10:00:00.000Z', '2020-09-16T18:00:00.000Z')

Update

空のシフトを更新するには、WHERE 句にレコードId とTeamId が必要です。TeamId、Id、CreatedDateTime 以外のすべてのフィールドを更新できます。

UPDATE OpenShifts SET draftOpenShift_theme='blue' WHERE Id = 'OPNSHFT_2d49e6dd-d965-4ea2-a399-37f2a082852c' AND TeamId = 'da838338-4e77-4c05-82a6-79d9f0274511'

Delete

シフトレコードを削除するには、WHERE 句にId とTeamId が必要です。

DELETE FROM OpenShifts WHERE TeamId='da838338-4e77-4c05-82a6-79d9f0274511' AND Id = 'OPNSHFT_2d49e6dd-d965-4ea2-a399-37f2a082852c'

Columns

Name Type ReadOnly Description
Id [KEY] String False

ID for the scheduling group that the open shift belongs to.

CreatedDateTime Datetime False

Timestamp at which the openshift was created.

LastModifiedBy_application_displayName String False

The display name of the application that last modified.

LastModifiedBy_application_id String False

The id of the application that last modified.

LastModifiedDateTime Datetime False

The timestamp on which this openshift was last updated.

DraftOpenShift_openSlotCount Int False

OpenSlotCount of DraftOpenShift

SchedulingGroupId String False

The SchedulingGroupId.

SharedOpenShift_openSlotCount Int False

OpenSlotCount of SharedOpenShift

TeamId String False

The Team Id.

DraftOpenShift_displayName String False

The shift label of the shiftItem..

DraftOpenShift_notes String False

The shift notes for the shiftItem..

DraftOpenShift_StartDateTime Datetime False

StartDateTime of DraftOpenShift

DraftOpenShift_EndDateTime Datetime False

EndDateTime of DraftOpenShift

SharedOpenShift_displayName String False

The shift label of the shiftItem..

SharedOpenShift_notes String False

The shift notes for the shiftItem..

SharedOpenShift_StartDateTime Datetime False

StartDateTime of SharedOpenShift

SharedOpenShift_EndDateTime Datetime False

EndDateTime of SharedOpenShift

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8479