Skip to content

Commit 606c6fe

Browse files
authored
Merge pull request #9322 from leewon2021/leewon/3703295-getRetainedMessages-filter-params
Export API getRetainedMessages update to include additional $filter params
2 parents 0333ce7 + 1dba48e commit 606c6fe

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

api-reference/beta/api/channel-getallretainedmessages.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ This method supports the following OData query parameters to help customize the
5454
| $filter | The [$filter](/graph/query-parameters#filter-parameter) query parameter supports date and time range queries on the **lastModifiedDateTime** property.|
5555
| $top | Use the [$top](/graph/query-parameters#top-parameter) query parameter to control the number of items per response.|
5656

57+
The following table lists examples that show how to use the `$filter` parameter.
58+
59+
|Scenario | `$filter` parameter |Possible values |
60+
|:-----------------------------------------|:---------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------|
61+
|Get messages sent by user identity type |$filter=from/user/userIdentityType eq '{teamworkUserIdentityType}' |aadUser, onPremiseAadUser, anonymousGuest, federatedUser, personalMicrosoftAccountUser, skypeUser, phoneUser|
62+
|Get messages sent by application type |$filter=from/application/applicationIdentityType eq '{teamworkApplicationIdentity}' |aadApplication, bot, tenantBot, office365Connector, outgoingWebhook |
63+
|Get messages sent by user ID |$filter=from/user/id eq '{oid}' ||
64+
|Get control (system event) messages |$filter=messageType eq 'systemEventMessage' ||
65+
|Exclude control (system event) messages |$filter=messageType ne 'systemEventMessage' ||
66+
5767
## Request headers
5868

5969
|Name|Description|

api-reference/beta/api/chat-getallretainedmessages.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,17 @@ The following example shows a request that uses the `$top` and `$filter` query p
5757
```http
5858
GET /users/{id}/chats/getAllRetainedMessages?$top=50&$filter=lastModifiedDateTime gt 2020-06-04T18:03:11.591Z and lastModifiedDateTime lt 2020-06-05T21:00:09.413Z
5959
```
60+
61+
The following table lists examples that show how to use the `$filter` parameter.
62+
63+
|Scenario | `$filter` parameter |Possible values |
64+
|:-----------------------------------------|:---------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------|
65+
|Get messages sent by user identity type |$filter=from/user/userIdentityType eq '{teamworkUserIdentityType}' |aadUser, onPremiseAadUser, anonymousGuest, federatedUser, personalMicrosoftAccountUser, skypeUser, phoneUser|
66+
|Get messages sent by application type |$filter=from/application/applicationIdentityType eq '{teamworkApplicationIdentity}' |aadApplication, bot, tenantBot, office365Connector, outgoingWebhook |
67+
|Get messages sent by user ID |$filter=from/user/id eq '{oid}' ||
68+
|Get control (system event) messages |$filter=messageType eq 'systemEventMessage' ||
69+
|Exclude control (system event) messages |$filter=messageType ne 'systemEventMessage' ||
70+
6071
## Request headers
6172

6273
|Name|Description|

0 commit comments

Comments
 (0)