[ARCHIVED] replaceResult LTI request returns success without recording grade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2020
12:52 PM
I'm trying to make an LTI 1.0 spec replaceResult post to Canvas in order to record a grade.
Sample request:
<?xml version="1.0" encoding="UTF-8"?>
<imsx_POXEnvelopeRequest xmlns="http://www.imsglobal.org/services/ltiv1p1/xsd/imsoms_v1p0">
<imsx_POXHeader>
<imsx_POXRequestHeaderInfo>
<imsx_version>V1.0</imsx_version>
<imsx_messageIdentifier>uuid goes here</imsx_messageIdentifier>
</imsx_POXRequestHeaderInfo>
</imsx_POXHeader>
<imsx_POXBody>
<replaceResultRequest>
<resultRecord>
<sourcedGUID>
<sourcedId>stuff goes here</sourcedId>
</sourcedGUID>
<result>
<resultScore>
<language>en</language>
<textString>0.70</textString>
</resultScore>
</result>
</resultRecord>
</replaceResultRequest>
</imsx_POXBody>
</imsx_POXEnvelopeRequest>
Canvas is returning a 200 response with a imsx_codeMajor of "success" and an empty imsx_description node. Looking at the Assignment in the Canvas Student View after submission continues to show 0 points on the Assignment. Putting a value greater than 1 into the resultScore gets an error response, so it seems like Canvas is looking at the field and just not saving it.
Any help would be appreciated.
Solved! Go to Solution.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2020
01:14 PM
Answered it; you have to define the max points for the assignment in Canvas. If it's 0, Canvas won't display the grade.
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.