TimeOffReasons
TimesOffReasons table for MSTeams data provider.
Table Specific Information
Select
Query the TimeOffReasons table by retrieving everything from teams or by specifying TeamId. By default only the timesoffreasons for teams of the groups you are a member of will be returned. To retrieve timesoffreasons for teams of all groups in your organization, set IncludeAllGroups property to true. The driver will use the Microsoft Teams API to process WHERE clause conditions built with the following columns and operators. The rest of the filter is executed client side within the driver.
- TeamId supports the '=' and IN operators.
- Id supports the '=' operator.
For example, the following queries are processed server side:
SELECT * FROM TimeOffReasons WHERE TeamId IN ('da838338-4e77-4c05-82a6-79d9f0274511', 'da834568-4df7-4c05-82a6-79d9f0274515') SELECT * FROM TimeOffReasons WHERE TeamId = 'da838338-4e77-4c05-82a6-79d9f0274511' AND Id = 'SHFT_0aee55c3-2bac-4ede-9792-26838fc8bb01'
Insert
To insert a timeoff reason for a team, you need to specify TeamId and at least one another field among DisplayName, IsActive, iconType.
INSERT INTO TimeOffReasons (TeamId, DisplayName, IsActive) VALUES ('acabe397-8370-4c31-aeb7-2d7ae6b8cda1', 'a new reason', 'true')
Delete
To delete a timeoff reason record Id and TeamId are required in WHERE clause.
DELETE FROM TimeOffReasons WHERE Id = 'SHFT_dd50b99a-e2d8-44ad-a445-53ad58bfc37b' AND TeamId = 'acabe397-8370-4c31-aeb7-2d7ae6b8cda1'
Columns
Name | Type | ReadOnly | Description |
Id [KEY] | String | False |
ID of the timeOffReason. |
TeamId | String | False |
The Team Id. |
CreatedDateTime | Datetime | False |
The time stamp on which this timeOffReason was first 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 time stamp on which this timeOffReason was last updated. |
DisplayName | String | False |
The name of the timeOffReason. Required. |
IconType | String | False |
Supported icon types: none; car; calendar; running; plane; firstAid; doctor; notWorking; clock; juryDuty; globe; cup; phone; weather; umbrella; piggyBank; dog; cake; trafficCone; pin; sunny. |
IsActive | Bool | False |
Indicates whether the timeOffReason can be used when creating new entities or updating existing ones. |