nonagon
nonagon

Reputation: 1

D2L Valence: Retrieve Final Grades

Is there a way to get both the Final Calculated Grade and the Final Adjusted Grade? I would like to be able to compare them.

Upvotes: 0

Views: 395

Answers (3)

Barry Beattie
Barry Beattie

Reputation: 11

I'm wondering:

GET /d2l/api/le/(version)/(orgUnitId)/grades/values/(userId)/

Retrieve all the grade objects for a particular user assigned in an org unit.

Return. This action returns a JSON array of GradeValue blocks.

Grade.GradeValue{

"DisplayedGrade": <string>,
"GradeObjectIdentifier": <string:D2LID>,
"GradeObjectName": <string>,
"GradeObjectType": <number:GRADEOBJ_T>,
"GradeObjectTypeName": <string>|null,
"PointsNumerator": <number>|null,
"PointsDenominator": <number>|null,
"WeightedDenominator": <number>|null,
"WeightedNumerator": <number>|null

}

and then look at the "GradeObjectType" for "7" or "8"?

Grade object type / Value

FinalCalculated / 7 ^

FinalAdjusted / 8 ^

(I wonder what is meant by "^ Direct creation of these types through these APIs is not supported.")

Upvotes: 1

Viktor Haag
Viktor Haag

Reputation: 3418

I believe that there currently is no way to retrieve the final adjusted grade value through the Valence Learning Framework API, only the final calculated grade value. Additionally, end-user type callers can only see the final grade when the grade gets released: up until that point, only users capable of setting a final grade value (or perhaps releasing it?) can see the final grade value for a user.

Upvotes: 0

nonagon
nonagon

Reputation: 1

It seems the best solution (or workaround) is to retrieve the final grade, determine what column it's coming from, and then subtract or add (+1 / -1) to the objectID to get the corresponding Calculated or Adjusted column.

Upvotes: 0

Related Questions