I am currently working on a use case to look up assigned training for a coworker. However, I am running into an issue with the query provided in the Moveworks documentation.
The problem is that an assigned training course does not appear in the HTTP action results until the user manually enrolls in the course by clicking it in the Workday portal. Even though the training is already assigned and visible to the user as something they need to complete, it is not returned by the query until after they interact with it.
Is there another query or endpoint that I can use to retrieve all assigned training courses for a user without requiring them to first click or enroll in the training within Workday? My goal is to return all assigned training, including courses that have not yet been opened or interacted with by the user.
Use Case:Â Plugin | Look up Assigned Trainings
API: /ccx/api/wql/v1/{{tenat}}/data
Body:Â
{
 "query": "SELECT enrolledContent as Course, learner, registrationStatus, completionStatus, learningAssignment{dueDate1} as learningAssignment FROM learningEnrollments WHERE learner = \"{{{worker_id}}}\" AND completionStatus IN (\"{{status_id_1}}\", \"{{status_id_2}}\")"
}