List outcomes
Namespace: microsoft.graph
Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation.
A submission for a credit assignment (one that has no point value and no rubric) has an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.)
A submission for a points assignment (one that has a point value assigned) has both an educationFeedbackOutcome and an educationPointsOutcome.
A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), has an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.)
A submission for an assignment with an attached rubric, if the rubric is a points rubric, has an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome.
A submission for a feedback resource has an educationFeedbackResourceOutcome.
All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student.
This API is available in the following national cloud deployments.
Global service | US Government L4 | US Government L5 (DOD) | China operated by 21Vianet |
---|---|---|---|
✅ | ❌ | ❌ | ❌ |
Permissions
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
Permission type | Least privileged permissions | Higher privileged permissions |
---|---|---|
Delegated (work or school account) | EduAssignments.Read | EduAssignments.ReadWrite |
Delegated (personal Microsoft account) | Not supported. | Not supported. |
Application | EduAssignments.Read.All | EduAssignments.ReadWrite.All |
HTTP request
GET /education/classes/{classId}/assignments/{assignmentId}/submissions/{submissionId}/outcomes
Optional query parameters
This method supports the $top
, $filter
, and $select
OData query parameters to help customize the response. For general information, see OData query parameters.
All properties are supported for the query parameters $filter
and $orderby
.
Request headers
Name | Description |
---|---|
Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Request body
Don't supply a request body for this method.
Response
If successful, this method returns a 200 OK
response code and a collection of educationOutcome objects in the response body.
Examples
Example 1: Get all outcomes
The following example shows how to retrieve all outcomes.
Request
The following example shows a request.
GET https://graph.microsoft.com/v1.0/education/classes/bf1f1963-05f6-4cba-903c-5892b4ce3bd7/assignments/db8e6b0b-dba4-4c69-81b2-9ba7313c0b7a/submissions/4bca096a-7de3-8675-5e86-2fa149923860/outcomes
Response
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-type: application/json
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#education/classes('bf1f1963-05f6-4cba-903c-5892b4ce3bd7')/assignments('db8e6b0b-dba4-4c69-81b2-9ba7313c0b7a')/submissions('4bca096a-7de3-8675-5e86-2fa149923860')/outcomes",
"value": [
{
"@odata.type": "#microsoft.graph.educationFeedbackOutcome",
"lastModifiedDateTime": null,
"id": "ca05367a-b292-42d5-aff7-5d279feeace8",
"lastModifiedBy": null,
"feedback": null,
"publishedFeedback": null
},
{
"@odata.type": "#microsoft.graph.educationPointsOutcome",
"lastModifiedDateTime": null,
"id": "ea1351f6-ba33-4940-b2cb-6a7254af2dc8",
"lastModifiedBy": null,
"points": null,
"publishedPoints": null
},
{
"@odata.type": "#microsoft.graph.educationRubricOutcome",
"lastModifiedDateTime": "2024-08-14T05:47:41.8399565Z",
"id": "65a46d78-1a2b-4a7e-bcf8-78a22ac2611b",
"lastModifiedBy": {
"application": null,
"device": null,
"user": {
"id": null,
"displayName": null
}
},
"rubricQualityFeedback": [
{
"qualityId": "6b9eccdd-ae31-474d-9ab5-33ba885873f9",
"feedback": null
},
{
"qualityId": "0fdf030a-2e52-4ea4-b321-74091cef90b0",
"feedback": null
},
{
"qualityId": "8fdacfb6-0e28-4bce-9153-3196fbcc0eaa",
"feedback": null
}
],
"rubricQualitySelectedLevels": [
{
"qualityId": "6b9eccdd-ae31-474d-9ab5-33ba885873f9",
"columnId": null
},
{
"qualityId": "0fdf030a-2e52-4ea4-b321-74091cef90b0",
"columnId": null
},
{
"qualityId": "8fdacfb6-0e28-4bce-9153-3196fbcc0eaa",
"columnId": null
}
],
"publishedRubricQualityFeedback": [
{
"qualityId": "6b9eccdd-ae31-474d-9ab5-33ba885873f9",
"feedback": null
},
{
"qualityId": "0fdf030a-2e52-4ea4-b321-74091cef90b0",
"feedback": null
},
{
"qualityId": "8fdacfb6-0e28-4bce-9153-3196fbcc0eaa",
"feedback": null
}
],
"publishedRubricQualitySelectedLevels": [
{
"qualityId": "6b9eccdd-ae31-474d-9ab5-33ba885873f9",
"columnId": null
},
{
"qualityId": "0fdf030a-2e52-4ea4-b321-74091cef90b0",
"columnId": null
},
{
"qualityId": "8fdacfb6-0e28-4bce-9153-3196fbcc0eaa",
"columnId": null
}
]
}
]
}
Example 2: Get outcomes filtered by outcome type
Request
The following example shows a request.
GET https://graph.microsoft.com/v1.0/education/classes/37d99af7-cfc5-4e3b-8566-f7d40e4a2070/assignments/a3cce0ba-2008-4c4d-bf62-079408562d96/submissions/2185e6d7-2924-4ed1-dde1-269f89e29184/outcomes?$filter=isof('microsoft.graph.educationFeedbackResourceOutcome')
Response
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-type: application/json
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#education/classes('37d99af7-cfc5-4e3b-8566-f7d40e4a2070')/assignments('a3cce0ba-2008-4c4d-bf62-079408562d96')/submissions('2185e6d7-2924-4ed1-dde1-269f89e29184')/outcomes",
"@microsoft.graph.tips": "Use $select to choose only the properties your app needs, as this can lead to performance improvements. For example: GET education/classes('<guid>')/assignments('<guid>')/submissions('<guid>')/outcomes?$select=lastModifiedBy,lastModifiedDateTime",
"value": [
{
"@odata.type": "#microsoft.graph.educationFeedbackResourceOutcome",
"lastModifiedDateTime": "2022-05-06T00:52:17.3180275Z",
"id": "0710aeea-590d-46b4-9eb8-1c08b6549677",
"resourceStatus": "notPublished",
"lastModifiedBy": {
"application": null,
"device": null,
"user": {
"id": "cb1a4af3-0aba-4679-aa12-9f99bab0b61a",
"displayName": null
}
},
"feedbackResource": {
"@odata.type": "#microsoft.graph.educationWordResource",
"displayName": "Document3.docx",
"createdDateTime": "2022-05-06T00:52:17.3180176Z",
"lastModifiedDateTime": "2022-05-06T00:52:17.3180275Z",
"fileUrl": "https://graph.microsoft.com/v1.0/drives/b!-Ik2sRPLDEWy_bR8l75jfeDcpXQcRKVOmcml10NQLQ1F8CNZWU38SarWxPyWM7jx/items/01VANVJQ563EMEMHRTBBH2SOZ4GDSNEUZK",
"createdBy": {
"application": null,
"device": null,
"user": {
"id": "cb1a4af3-0aba-4679-aa12-9f99bab0b61a",
"displayName": null
}
},
"lastModifiedBy": {
"application": null,
"device": null,
"user": {
"id": "cb1a4af3-0aba-4679-aa12-9f99bab0b61a",
"displayName": null
}
}
}
},
{
"@odata.type": "#microsoft.graph.educationFeedbackResourceOutcome",
"lastModifiedDateTime": "2022-05-06T00:52:21.8011514Z",
"id": "4176c991-c263-4772-9b01-5a27d55e123e",
"resourceStatus": "notPublished",
"lastModifiedBy": {
"application": null,
"device": null,
"user": {
"id": "cb1a4af3-0aba-4679-aa12-9f99bab0b61a",
"displayName": null
}
},
"feedbackResource": {
"@odata.type": "#microsoft.graph.educationWordResource",
"displayName": "Document4.docx",
"createdDateTime": "2022-05-06T00:52:21.8011302Z",
"lastModifiedDateTime": "2022-05-06T00:52:21.8011514Z",
"fileUrl": "https://graph.microsoft.com/v1.0/drives/b!-Ik2sRPLDEWy_bR8l75jfeDcpXQcRKVOmcml10NQLQ1F8CNZWU38SarWxPyWM7jx/items/01VANVJQ3OHVMMZAEQPRC3LQJLBEQQY4BI",
"createdBy": {
"application": null,
"device": null,
"user": {
"id": "cb1a4af3-0aba-4679-aa12-9f99bab0b61a",
"displayName": null
}
},
"lastModifiedBy": {
"application": null,
"device": null,
"user": {
"id": "cb1a4af3-0aba-4679-aa12-9f99bab0b61a",
"displayName": null
}
}
}
}
]
}
Example 3: Using $orderby
to get outcomes
Request
The following example shows a request.
GET https://graph.microsoft.com/v1.0/education/classes/37d99af7-cfc5-4e3b-8566-f7d40e4a2070/assignments/a3cce0ba-2008-4c4d-bf62-079408562d96/submissions/2185e6d7-2924-4ed1-dde1-269f89e29184/outcomes?$orderby=id
Response
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-type: application/json
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#education/classes('37d99af7-cfc5-4e3b-8566-f7d40e4a2070')/assignments('a3cce0ba-2008-4c4d-bf62-079408562d96')/submissions('2185e6d7-2924-4ed1-dde1-269f89e29184')/outcomes",
"value": [
{
"@odata.type": "#microsoft.graph.educationFeedbackResourceOutcome",
"lastModifiedDateTime": "2022-05-06T00:52:17.3180275Z",
"id": "0710aeea-590d-46b4-9eb8-1c08b6549677",
"resourceStatus": "notPublished",
"lastModifiedBy": {
"application": null,
"device": null,
"user": {
"id": "cb1a4af3-0aba-4679-aa12-9f99bab0b61a",
"displayName": null
}
},
"feedbackResource": {
"@odata.type": "#microsoft.graph.educationWordResource",
"displayName": "Document3.docx",
"createdDateTime": "2022-05-06T00:52:17.3180176Z",
"lastModifiedDateTime": "2022-05-06T00:52:17.3180275Z",
"fileUrl": "https://graph.microsoft.com/v1.0/drives/b!-Ik2sRPLDEWy_bR8l75jfeDcpXQcRKVOmcml10NQLQ1F8CNZWU38SarWxPyWM7jx/items/01VANVJQ563EMEMHRTBBH2SOZ4GDSNEUZK",
"createdBy": {
"application": null,
"device": null,
"user": {
"id": "cb1a4af3-0aba-4679-aa12-9f99bab0b61a",
"displayName": null
}
},
"lastModifiedBy": {
"application": null,
"device": null,
"user": {
"id": "cb1a4af3-0aba-4679-aa12-9f99bab0b61a",
"displayName": null
}
}
}
}
]
}