Skip to content

Commit 60e43f9

Browse files
authored
Microsoft Outlook - add orderby prop to find-email (#17514)
* add orderby * pnpm-lock.yaml
1 parent 4a4c5a2 commit 60e43f9

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

components/microsoft_outlook/actions/find-email/find-email.mjs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,27 @@ export default {
44
key: "microsoft_outlook-find-email",
55
name: "Find Email",
66
description: "Search for an email in Microsoft Outlook. [See the documentation](https://learn.microsoft.com/en-us/graph/api/user-list-messages)",
7-
version: "0.0.6",
7+
version: "0.0.7",
88
type: "action",
99
props: {
1010
microsoftOutlook,
11+
info: {
12+
type: "alert",
13+
alertType: "info",
14+
content: "When you specify `$filter`, the service infers a sort order for the results. If you use both `$orderby` and `$filter` to get messages, because the server always infers a sort order for the results of a `$filter`, you must [specify properties in certain ways](https://learn.microsoft.com/en-us/graph/api/user-list-messages#using-filter-and-orderby-in-the-same-query).",
15+
},
1116
filter: {
1217
type: "string",
1318
label: "Filter",
1419
description: "Filters results. For example, `contains(subject, 'meet for lunch?')` will include messages whose subject contains ‘meet for lunch?’. [See documentation](https://learn.microsoft.com/en-us/graph/filter-query-parameter) for the full list of operations.",
1520
optional: true,
1621
},
22+
orderBy: {
23+
type: "string",
24+
label: "Order By",
25+
description: "Order results by a property. For example, `receivedDateTime desc` will order messages by the received date in descending order.",
26+
optional: true,
27+
},
1728
maxResults: {
1829
propDefinition: [
1930
microsoftOutlook,
@@ -28,6 +39,7 @@ export default {
2839
$,
2940
params: {
3041
"$filter": this.filter,
42+
"$orderby": this.orderBy,
3143
},
3244
},
3345
max: this.maxResults,

components/microsoft_outlook/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/microsoft_outlook",
3-
"version": "1.5.2",
3+
"version": "1.5.3",
44
"description": "Pipedream Microsoft Outlook Components",
55
"main": "microsoft_outlook.app.mjs",
66
"keywords": [

pnpm-lock.yaml

Lines changed: 2 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)