How to access value of grading item computed by formula from API?
Using
, specificallyGET /d2l/api/le/(version)/(orgUnitId)/grades/(gradeObjectId)/values/
I am able to access the score each student sees in their own grading system from the API (so I can ensure that I give them the according grades).
However, I have a final formula that computes how many bonus points they are entitled to, and "formula" is not an allowed GradeType for this query.
Does anyone know how I can access the values computed by the formula through the api?
Best, Morten
Answers
-
Hi Morten,
According to the Note in the documentation for this API, "Valid grade object types for this route are Numeric, PassFail and SelectBox.", which means that Formula items are not supported at this time.
I was able to retrieve a Formula grade item using this endpoint for a specific user:
GET /d2l/api/le/(version)/(orgUnitId)/grades/(gradeObjectId)/values/(userId)
I hope this meets your needs.
Best Regards,
Victor