You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api-reference/beta/api/businessscenarioplanner-list-tasks.md
+19-85Lines changed: 19 additions & 85 deletions
Original file line number
Diff line number
Diff line change
@@ -30,12 +30,16 @@ Choose the permission or permissions marked as least privileged for this API. Us
30
30
}
31
31
-->
32
32
```http
33
-
GET /solutions/businessScenarios/{businessScenarioId}/planner/tasks
33
+
GET /solutions/businessScenarios/{businessScenarioId}/planner/tasks?$filter=businessScenarioProperties/externalObjectId eq '{externalObjectId}'
34
+
GET /solutions/businessScenarios/{businessScenarioId}/planner/tasks?$filter=businessScenarioProperties/externalContextId eq '{externalContextId}'
35
+
GET /solutions/businessScenarios/{businessScenarioId}/planner/tasks?$filter=target/microsoft.graph.businessScenarioGroupTarget/groupId eq '{groupId}'
34
36
```
35
37
36
-
## Optional query parameters
38
+
## Query parameters
37
39
38
-
This method supports some of the OData query parameters to help customize the response. For general information, see [OData query parameters](/graph/query-parameters). You can query tasks with their context ID or location as filters.
40
+
This method requires the `$filter` (`eq`) query parameter to scope the request to an **externalObjectId**, **externalContextId**, or a **groupId**.
41
+
42
+
This method supports some of the OData query parameters to help customize the response. For general information, see [OData query parameters](/graph/query-parameters).
39
43
40
44
## Request headers
41
45
@@ -53,59 +57,24 @@ If successful, this method returns a `200 OK` response code and a collection of
53
57
54
58
## Examples
55
59
56
-
### Example 1: Get all tasks for a scenario
60
+
### Example 1: Get tasks associated with a specific externalObjectId
57
61
58
-
The following example shows a request that gets all tasks related to a scenario.
62
+
The following example shows a request that gets all tasks associated with a specific external ID.
GET https://graph.microsoft.com/beta/solutions/businessScenarios/c5d514e6c6864911ac46c720affb6e4d/planner/tasks
75
+
GET https://graph.microsoft.com/beta/solutions/businessScenarios/c5d514e6c6864911ac46c720affb6e4d/planner/tasks?$filter=businessScenarioProperties/externalObjectId eq 'Order#12010'
GET https://graph.microsoft.com/beta/solutions/businessScenarios/c5d514e6c6864911ac46c720affb6e4d/planner/tasks?$filter=location/microsoft.graph.businessScenarioGroupTarget/groupId eq '7a339254-4b2b-4410-b295-c890a16776ee'
224
+
GET https://graph.microsoft.com/beta/solutions/businessScenarios/c5d514e6c6864911ac46c720affb6e4d/planner/tasks?$filter=target/microsoft.graph.businessScenarioGroupTarget/groupId eq '7a339254-4b2b-4410-b295-c890a16776ee'
[List Planner plans](/graph/api/teamschannelplanner-list-plans?view=graph-rest-beta&preserve-view=true) owned by a shared channel in Teams.
61
+
-[List Planner plans](/graph/api/teamschannelplanner-list-plans?view=graph-rest-beta&preserve-view=true) owned by a shared channel in Teams.
62
+
- Updated the request URL of the [List businessScenarioTasks](/graph/api/businessscenarioplanner-list-tasks?view=graph-rest-beta&preserve-view=true) method to require the `$filter` query parameter to scope the request to an **externalObjectId**, **externalContextId**, or a **groupId**.
0 commit comments